Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed crud\inc\form_save_buttons.blade.php file code alignment issue #3305

Merged
merged 1 commit into from
Nov 8, 2020
Merged
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
37 changes: 19 additions & 18 deletions src/resources/views/crud/inc/form_save_buttons.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@if(isset($saveAction['active']) && !is_null($saveAction['active']['value']))
<div id="saveActions" class="form-group">
<div id="saveActions" class="form-group">

<input type="hidden" name="save_action" value="{{ $saveAction['active']['value'] }}">
@if(!empty($saveAction['options']))
<div class="btn-group" role="group">
<input type="hidden" name="save_action" value="{{ $saveAction['active']['value'] }}">
@if(!empty($saveAction['options']))
<div class="btn-group" role="group">
@endif

<button type="submit" class="btn btn-success">
Expand All @@ -13,22 +13,23 @@

<div class="btn-group" role="group">
@if(!empty($saveAction['options']))
<button id="btnGroupDrop1" type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="caret"></span><span class="sr-only">&#x25BC;</span></button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
@foreach( $saveAction['options'] as $value => $label)
<a class="dropdown-item" href="javascript:void(0);" data-value="{{ $value }}">{{ $label }}</a>
@endforeach
<button id="btnGroupDrop1" type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="caret"></span><span class="sr-only">&#x25BC;</span></button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
@foreach( $saveAction['options'] as $value => $label)
<a class="dropdown-item" href="javascript:void(0);" data-value="{{ $value }}">{{ $label }}</a>
@endforeach
</div>
@endif
</div>

@if(!empty($saveAction['options']))
</div>
@endif

@endif
</div>
@if(!empty($saveAction['options']))
</div>
@endif
@if(!$crud->hasOperationSetting('showCancelButton') || $crud->getOperationSetting('showCancelButton') == true)
<a href="{{ $crud->hasAccess('list') ? url($crud->route) : url()->previous() }}" class="btn btn-default"><span class="la la-ban"></span> &nbsp;{{ trans('backpack::crud.cancel') }}</a>
@endif
@if(!$crud->hasOperationSetting('showCancelButton') || $crud->getOperationSetting('showCancelButton') == true)
<a href="{{ $crud->hasAccess('list') ? url($crud->route) : url()->previous() }}" class="btn btn-default"><span class="la la-ban"></span> &nbsp;{{ trans('backpack::crud.cancel') }}</a>
@endif

</div>
</div>
@endif