Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion resources/views/people/debt/add.blade.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
@include('people.debt.form', [
'method' => 'POST',
'action' => route('people.debt.store', $contact)
'action' => route('people.debt.store', $contact),
'update_or_add' =>'add'
])
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion resources/views/people/debt/edit.blade.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
@include('people.debt.form', [
'method' => 'PUT',
'action' => route('people.debt.update', [$contact, $debt])
'action' => route('people.debt.update', [$contact, $debt]),
'update_or_add' =>'edit'
])
</div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion resources/views/people/debt/form.blade.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@
</div>

<div class="form-group actions">
<button type="submit" class="btn btn-primary">{{ trans('people.debt_add_add_cta') }}</button>
<button type="submit" class="btn btn-primary">
@if($update_or_add == 'add')
{{ trans('people.debt_add_add_cta') }}
@elseif ($update_or_add == 'edit')
{{ trans('people.debt_edit_update_cta') }}
@endif
</button>
<a href="{{ route('people.show', $contact) }}" class="btn btn-secondary">{{ trans('app.cancel') }}</a>
</div> <!-- .form-group -->
</form>
Empty file modified storage/app/.gitignore
100644 → 100755
Empty file.
Empty file modified storage/app/public/.gitignore
100644 → 100755
Empty file.
Empty file modified storage/debugbar/.gitignore
100644 → 100755
Empty file.
Empty file modified storage/framework/.gitignore
100644 → 100755
Empty file.
Empty file modified storage/framework/cache/.gitignore
100644 → 100755
Empty file.
Empty file modified storage/framework/sessions/.gitignore
100644 → 100755
Empty file.
Empty file modified storage/framework/views/.gitignore
100644 → 100755
Empty file.
Empty file modified storage/logs/.gitignore
100644 → 100755
Empty file.