diff --git a/app/View/Label.php b/app/View/Label.php index de955afffa..99da449827 100644 --- a/app/View/Label.php +++ b/app/View/Label.php @@ -88,7 +88,7 @@ class Label implements View if ($template->getSupportTitle()) { $title = !empty($settings->label2_title) ? - str_ireplace(':company', $asset->company->name, $settings->label2_title) : + str_ireplace('{COMPANY}', $asset->company->name, $settings->label2_title) : $settings->qr_text; if (!empty($title)) $assetData->put('title', $title); } diff --git a/resources/lang/en/admin/settings/general.php b/resources/lang/en/admin/settings/general.php index 9c038a87be..a3b64996d5 100644 --- a/resources/lang/en/admin/settings/general.php +++ b/resources/lang/en/admin/settings/general.php @@ -336,7 +336,7 @@ return [ 'label2_template_help' => 'Select which template to use for label generation', 'label2_title' => 'Title', 'label2_title_help' => 'The title to show on labels that support it', - 'label2_title_help_phold' => 'The placeholder :company will be replaced with the asset's company name', + 'label2_title_help_phold' => 'The placeholder {COMPANY} will be replaced with the asset's company name', 'label2_asset_logo' => 'Use Asset Logo', 'label2_asset_logo_help' => 'Use the logo of the asset's assigned company, rather than the value at :setting_name', 'label2_1d_type' => '1D Barcode Type', diff --git a/resources/views/settings/labels.blade.php b/resources/views/settings/labels.blade.php index 38c2d29e72..32dda8118f 100644 --- a/resources/views/settings/labels.blade.php +++ b/resources/views/settings/labels.blade.php @@ -41,17 +41,22 @@
has('label2_enable') ? 'error' : '' }}"> -
-
@@ -118,15 +123,17 @@
-
-
- {{ Form::label('label2_asset_logo', trans('admin/settings/general.label2_asset_logo'), ['class'=>'control-label']) }} -
-
- {{ Form::checkbox('label2_asset_logo', '1', old('label2_asset_logo', $setting->label2_asset_logo, [ 'class'=>'minimal', 'aria-label'=>'label2_asset_logo' ])) }} - {{ trans('general.yes') }} - {!! $errors->first('label2_asset_logo', '') !!} -

{!! trans('admin/settings/general.label2_asset_logo_help', ['setting_name' => trans('admin/settings/general.brand').' > '.trans('admin/settings/general.label_logo')]) !!}

+
has('label2_asset_logo') ? 'error' : '' }}"> +
+ + +

+ {!! trans('admin/settings/general.label2_asset_logo_help', ['setting_name' => trans('admin/settings/general.brand').' > '.trans('admin/settings/general.label_logo')]) !!} +

+