Feature: Added data type context for select options with "URL:" and "Data:" labels, including translations
This commit is contained in:
parent
e22296fd79
commit
f96b7c5056
2 changed files with 7 additions and 6 deletions
|
@ -360,12 +360,13 @@ return [
|
||||||
'label2_2d_type' => '2D Barcode Type',
|
'label2_2d_type' => '2D Barcode Type',
|
||||||
'label2_2d_type_help' => 'Format for 2D barcodes',
|
'label2_2d_type_help' => 'Format for 2D barcodes',
|
||||||
'label2_2d_target' => '2D Barcode Target',
|
'label2_2d_target' => '2D Barcode Target',
|
||||||
'label2_2d_target_help' => 'The URL the 2D barcode points to when scanned',
|
'label2_2d_target_help' => 'The data that will be contained in the 2D barcode',
|
||||||
'label2_fields' => 'Field Definitions',
|
'label2_fields' => 'Field Definitions',
|
||||||
'label2_fields_help' => 'Fields can be added, removed, and reordered in the left column. For each field, multiple options for Label and DataSource can be added, removed, and reordered in the right column.',
|
'label2_fields_help' => 'Fields can be added, removed, and reordered in the left column. For each field, multiple options for Label and DataSource can be added, removed, and reordered in the right column.',
|
||||||
'help_asterisk_bold' => 'Text entered as <code>**text**</code> will be displayed as bold',
|
'help_asterisk_bold' => 'Text entered as <code>**text**</code> will be displayed as bold',
|
||||||
'help_blank_to_use' => 'Leave blank to use the value from <code>:setting_name</code>',
|
'help_blank_to_use' => 'Leave blank to use the value from <code>:setting_name</code>',
|
||||||
'help_default_will_use' => '<code>:default</code> will use the value from <code>:setting_name</code>. <br>Note that the value of the barcodes must comply with the respective barcode spec in order to be successfully generated. Please see <a href="https://snipe-it.readme.io/docs/barcodes">the documentation <i class="fa fa-external-link"></i></a> for more details. ',
|
'help_default_will_use' => '<code>:default</code> will use the value from <code>:setting_name</code>. <br>Note that the value of the barcodes must comply with the respective barcode spec in order to be successfully generated. Please see <a href="https://snipe-it.readme.io/docs/barcodes">the documentation <i class="fa fa-external-link"></i></a> for more details. ',
|
||||||
|
'data' => 'Data',
|
||||||
'default' => 'Default',
|
'default' => 'Default',
|
||||||
'none' => 'None',
|
'none' => 'None',
|
||||||
'google_callback_help' => 'This should be entered as the callback URL in your Google OAuth app settings in your organization's <strong><a href="https://console.cloud.google.com/" target="_blank">Google developer console <i class="fa fa-external-link" aria-hidden="true"></i></a></strong>.',
|
'google_callback_help' => 'This should be entered as the callback URL in your Google OAuth app settings in your organization's <strong><a href="https://console.cloud.google.com/" target="_blank">Google developer console <i class="fa fa-external-link" aria-hidden="true"></i></a></strong>.',
|
||||||
|
|
|
@ -205,10 +205,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
{{ Form::select('label2_2d_target', [
|
{{ Form::select('label2_2d_target', [
|
||||||
'hardware_id' => '/hardware/{id} ('.trans('admin/settings/general.default').')',
|
'hardware_id' => trans('general.url') .': /hardware/{id} ('.trans('admin/settings/general.default').')',
|
||||||
'ht_tag' => '/ht/{asset_tag}',
|
'ht_tag' => trans('general.url') .': /ht/{asset_tag}',
|
||||||
'plain_asset_tag' => trans('general.asset_tag'),
|
'plain_asset_tag' => trans('admin/settings/general.data') .': '. trans('general.asset_tag') .' {asset_tag}',
|
||||||
'plain_serial_number' => trans('general.serial_number'),
|
'plain_serial_number' => trans('admin/settings/general.data') .': '. trans('general.serial_number') .' {serial}',
|
||||||
], old('label2_2d_target', $setting->label2_2d_target), [ 'class'=>'select2 col-md-4', 'aria-label'=>'label2_2d_target' ]) }}
|
], old('label2_2d_target', $setting->label2_2d_target), [ 'class'=>'select2 col-md-4', 'aria-label'=>'label2_2d_target' ]) }}
|
||||||
{!! $errors->first('label2_2d_target', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
{!! $errors->first('label2_2d_target', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
<p class="help-block">{{ trans('admin/settings/general.label2_2d_target_help') }}</p>
|
<p class="help-block">{{ trans('admin/settings/general.label2_2d_target_help') }}</p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue