Skip to content

Commit

Permalink
Improve back button to reduce code duplication and minor UI adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Aug 1, 2023
1 parent 2e4e8fc commit 6dbf08f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions resources/models/review.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@

$config['form']['toolbar'] = [
'buttons' => [
'back' => [
'label' => 'lang:admin::lang.button_icon_back',
'class' => 'btn btn-outline-secondary',
'href' => 'igniter/local/reviews',
],
'save' => [
'label' => 'lang:admin::lang.button_save',
'partial' => 'form/toolbar_save_button',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<input type="hidden" name="areaId" value="{{ $formAreaId }}">
<input type="hidden" data-map-shape {!! $this->getMapShapeAttributes($formWidget->model) !!}>
<div class="modal-body p-3">
<div class="form-fields row g-3">
<div class="form-fields">
@foreach($formWidget->getFields() as $field)
{!! $formWidget->renderField($field) !!}
@endforeach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class="flex-fill text-reset"
>
<i @class([
'fa fa-fw fa-location-dot',
'text-muted' => !$location->is_default,
'text-warning' => $location->is_default
])></i>
<span>{{ $location->location_name }}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Reviews.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Reviews extends \Igniter\Admin\Classes\AdminController
],
'preview' => [
'title' => 'lang:admin::lang.form.preview_title',
'redirect' => 'igniter/local/reviews',
'back' => 'igniter/local/reviews',
],
'delete' => [
'redirect' => 'igniter/local/reviews',
Expand Down

0 comments on commit 6dbf08f

Please sign in to comment.