Skip to content

Commit 00cea3e

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 060c59b + 19b52a2 commit 00cea3e

File tree

3 files changed

+29
-22
lines changed

3 files changed

+29
-22
lines changed

resources/lang/en-US/general.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,5 +502,6 @@
502502
'action_source' => 'Action Source',
503503
'or' => 'or',
504504
'url' => 'URL',
505+
'edit_fieldset' => 'Edit fieldset fields and options',
505506

506507
];

resources/views/custom_fields/fieldsets/view.blade.php

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
@can('update', $custom_fieldset)
7878
<form method="post" action="{{ route('fields.disassociate', [$field, $custom_fieldset->id]) }}">
7979
@csrf
80-
<button type="submit" class="btn btn-sm btn-danger">{{ trans('button.remove') }}</button>
80+
<button type="submit" class="btn btn-sm btn-danger"><i class="fa fa-trash icon-white" aria-hidden="true"></i></button>
8181
</form>
8282
@endcan
8383
</td>
@@ -90,35 +90,34 @@
9090
<td colspan="8">
9191
{{ Form::open(['route' =>
9292
["fieldsets.associate",$custom_fieldset->id],
93-
'class'=>'form-horizontal',
93+
'class'=>'form-inline',
9494
'id' => 'ordering']) }}
9595

9696

97-
<div class="form-group col-md-4">
97+
<div class="form-group">
9898
<label for="field_id" class="sr-only">
9999
{{ trans('admin/custom-field/general.add_field_to_fieldset')}}
100100
</label>
101-
{{ Form::select("field_id",$custom_fields_list,"",['aria-label'=>'field_id', 'class'=>'select2']) }}
101+
{{ Form::select("field_id",$custom_fields_list,"",['aria-label'=>'field_id', 'class'=>'select2', 'style' => 'min-width:400px;']) }}
102102

103103
</div>
104104

105-
<div class="form-group col-md-2" style="vertical-align: middle;">
106-
107-
<label class="form-control">
108-
{{ Form::checkbox('required', 'on', old('required'), array('aria-label'=>'required')) }}
109-
{{ trans('admin/custom_fields/general.required') }}
110-
</label>
111-
105+
<div class="form-group" style="display: none;">
106+
{{ Form::text('order', $maxid, array('aria-label'=>'order', 'maxlength'=>'3', 'size'=>'3')) }}
107+
<label for="order">{{ trans('admin/custom_fields/general.order') }}</label>
112108
</div>
113-
<div class="form-group col-md-2" style="display: none;">
114109

115-
{{ Form::text('order', $maxid, array('class' => 'form-control col-sm-1 col-md-1', 'style'=> 'width: 80px; padding-;right: 10px;', 'aria-label'=>'order', 'maxlength'=>'3', 'size'=>'3')) }}
116-
<label for="order">{{ trans('admin/custom_fields/general.order') }}</label>
110+
<div class="checkbox-inline">
111+
<label>
112+
{{ Form::checkbox('required', 'on', old('required')) }}
113+
<span style="padding-left: 10px;">{{ trans('admin/custom_fields/general.required') }}</span>
114+
</label>
117115
</div>
118116

119-
<div class="form-group col-md-3">
117+
<span style="padding-left: 10px;">
120118
<button type="submit" class="btn btn-primary"> {{ trans('general.save') }}</button>
121-
</div>
119+
</span>
120+
122121
{{ Form::close() }}
123122

124123
</td>

resources/views/custom_fields/index.blade.php

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,14 @@ class="table table-striped snipe-table"
7373
<nobr>
7474

7575
@can('update', $fieldset)
76-
<a href="{{ route('fieldsets.edit', $fieldset->id) }}" class="btn btn-warning btn-sm">
76+
77+
<a href="{{ route('fieldsets.show', ['fieldset' => $fieldset->id]) }}" data-tooltip="true" title="{{ trans('general.edit_fieldset') }}">
78+
<button type="submit" class="btn btn-info btn-sm">
79+
<i class="fa-regular fa-rectangle-list"></i>
80+
</button>
81+
</a>
82+
83+
<a href="{{ route('fieldsets.edit', $fieldset->id) }}" class="btn btn-warning btn-sm" data-tooltip="true" title="{{ trans('general.update') }}">
7784
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
7885
<span class="sr-only">{{ trans('button.edit') }}</span>
7986
</a>
@@ -82,9 +89,9 @@ class="table table-striped snipe-table"
8289
@can('delete', $fieldset)
8390
{{ Form::open(['route' => array('fieldsets.destroy', $fieldset->id), 'method' => 'delete','style' => 'display:inline-block']) }}
8491
@if($fieldset->models->count() > 0)
85-
<button type="submit" class="btn btn-danger btn-sm disabled" disabled><i class="fas fa-trash"></i></button>
92+
<button type="submit" class="btn btn-danger btn-sm disabled" data-tooltip="true" title="{{ trans('general.cannot_be_deleted') }}" disabled><i class="fas fa-trash"></i></button>
8693
@else
87-
<button type="submit" class="btn btn-danger btn-sm"><i class="fas fa-trash"></i></button>
94+
<button type="submit" class="btn btn-danger btn-sm" data-tooltip="true" title="{{ trans('general.delete') }}"><i class="fas fa-trash"></i></button>
8895
@endif
8996
{{ Form::close() }}
9097
@endcan
@@ -188,7 +195,7 @@ class="table table-striped snipe-table"
188195
<nobr>
189196
{{ Form::open(array('route' => array('fields.destroy', $field->id), 'method' => 'delete', 'style' => 'display:inline-block')) }}
190197
@can('update', $field)
191-
<a href="{{ route('fields.edit', $field->id) }}" class="btn btn-warning btn-sm">
198+
<a href="{{ route('fields.edit', $field->id) }}" class="btn btn-warning btn-sm" data-tooltip="true" title="{{ trans('general.update') }}">
192199
<i class="fas fa-pencil-alt" aria-hidden="true"></i>
193200
<span class="sr-only">{{ trans('button.edit') }}</span>
194201
</a>
@@ -197,11 +204,11 @@ class="table table-striped snipe-table"
197204
@can('delete', $field)
198205

199206
@if($field->fieldset->count()>0)
200-
<button type="submit" class="btn btn-danger btn-sm disabled" disabled>
207+
<button type="submit" class="btn btn-danger btn-sm disabled" data-tooltip="true" title="{{ trans('general.cannot_be_deleted') }}" disabled>
201208
<i class="fas fa-trash" aria-hidden="true"></i>
202209
<span class="sr-only">{{ trans('button.delete') }}</span></button>
203210
@else
204-
<button type="submit" class="btn btn-danger btn-sm">
211+
<button type="submit" class="btn btn-danger btn-sm" data-tooltip="true" title="{{ trans('general.delete') }}">
205212
<i class="fas fa-trash" aria-hidden="true"></i>
206213
<span class="sr-only">{{ trans('button.delete') }}</span>
207214
</button>

0 commit comments

Comments
 (0)