mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Merge pull request #14791 from Godmartinz/label-option-limit
Added some style changes in label field selector for the `DefaultLabel` template
This commit is contained in:
commit
6cbdbcb1f1
|
@ -261,13 +261,18 @@
|
|||
<h1 class="l2fd-title" style="grid-area: fields-title">Fields</h1>
|
||||
<div class="l2fd-list" style="grid-area: fields-list">
|
||||
<template x-for="(field, index) in fields">
|
||||
<div
|
||||
x-bind:key="'field-' + index"
|
||||
<div
|
||||
x-data="{
|
||||
template: '{{ $template }}'
|
||||
}"
|
||||
x-bind:key="'field-' + index"
|
||||
x-bind:class="{
|
||||
'l2fd-listitem': true,
|
||||
'selected': selectedField === field
|
||||
}"
|
||||
x-on:click="selectedField = field" >
|
||||
x-bind:style="index < 4 && template === 'DefaultLabel' ? 'background-color:#EEEEEE;' : 'background-color:#FFF;'"
|
||||
x-on:click="selectedField = field"
|
||||
>
|
||||
<label><span x-text="index+1"></span>: <span x-text="getFieldLabel(field)"></span></label>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -220,7 +220,7 @@
|
|||
{{ Form::label('label2_fields', trans('admin/settings/general.label2_fields')) }}
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
@include('partials.label2-field-definitions', [ 'name' => 'label2_fields', 'value' => old('label2_fields', $setting->label2_fields), 'customFields' => $customFields ])
|
||||
@include('partials.label2-field-definitions', [ 'name' => 'label2_fields', 'value' => old('label2_fields', $setting->label2_fields), 'customFields' => $customFields, 'template' => $setting->label2_template])
|
||||
{!! $errors->first('label2_fields', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||
<p class="help-block">{{ trans('admin/settings/general.label2_fields_help') }}</p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue