diff --git a/resources/views/hardware/labels.blade.php b/resources/views/hardware/labels.blade.php index b0a83031c5..5df4c507ef 100644 --- a/resources/views/hardware/labels.blade.php +++ b/resources/views/hardware/labels.blade.php @@ -1,175 +1,181 @@ - - Labels + + Labels - labels_width = $settings->labels_width - $settings->labels_display_sgutter; - $settings->labels_height = $settings->labels_height - $settings->labels_display_bgutter; - // Leave space on bottom for 1D barcode if necessary - $qr_size = ($settings->alt_barcode_enabled=='1') && ($settings->alt_barcode!='') ? $settings->labels_height - .3 : $settings->labels_height - .3; - // Leave space on left for QR code if necessary - $qr_txt_size = ($settings->qr_code=='1' ? $settings->labels_width - $qr_size - .1: $settings->labels_width); - ?> +labels_width = $settings->labels_width - $settings->labels_display_sgutter; +$settings->labels_height = $settings->labels_height - $settings->labels_display_bgutter; +// Leave space on bottom for 1D barcode if necessary +$qr_size = ($settings->alt_barcode_enabled=='1') && ($settings->alt_barcode!='') ? $settings->labels_height - .3 : $settings->labels_height - .3; +// Leave space on left for QR code if necessary +$qr_txt_size = ($settings->qr_code=='1' ? $settings->labels_width - $qr_size - .1: $settings->labels_width); +?> - + float: left; + display: inline-flex; + padding-right: .15in; + } + img.qr_img { -@foreach ($assets as $asset) - -
+ width: 130.79%; + height: 130.79%; + margin-top: -6.9%; + margin-left: -6.9%; + padding-bottom: .04in; + } + img.barcode { + display:block; - @if ($settings->qr_code=='1') -
- -
- @endif + padding-top: .11in; + width: 100%; + } -
- @if ($settings->qr_text!='') -
- {{ $settings->qr_text }} -
-
- @endif - @if (($settings->labels_display_company_name=='1') && ($asset->company)) -
- C: {{ $asset->company->name }} -
- @endif - @if (($settings->labels_display_name=='1') && ($asset->name!='')) -
- N: {{ $asset->name }} -
- @endif - @if (($settings->labels_display_tag=='1') && ($asset->asset_tag!='')) -
- T: {{ $asset->asset_tag }} -
- @endif - @if (($settings->labels_display_serial=='1') && ($asset->serial!='')) -
- S: {{ $asset->serial }} -
- @endif - @if (($settings->labels_display_model=='1') && ($asset->model->name!='')) -
- M: {{ $asset->model->name }} {{ $asset->model->model_number }} -
- @endif + .qr_text { + width: 100%; + height: auto; + padding-top: {{$settings->labels_display_bgutter}}in; + font-family: arial, helvetica, sans-serif; + padding-right: .01in; + overflow: hidden !important; + display: inline; + word-wrap: break-word; + word-break: break-all; + } -
+ div.barcode_container { - @if ((($settings->alt_barcode_enabled=='1') && $settings->alt_barcode!='')) -
- -
+ width: 100%; + display: inline; + overflow: hidden; + } + + .next-padding { + margin: {{ $settings->labels_pmargin_top }}in {{ $settings->labels_pmargin_right }}in {{ $settings->labels_pmargin_bottom }}in {{ $settings->labels_pmargin_left }}in; + } + + + + @media print { + .noprint { + display: none !important; + } + .next-padding { + margin: {{ $settings->labels_pmargin_top }}in {{ $settings->labels_pmargin_right }}in {{ $settings->labels_pmargin_bottom }}in {{ $settings->labels_pmargin_left }}in; + font-size: 0; + } + } + + @media screen { + .label { + outline: .02in black solid; /* outline doesn't occupy space like border does */ + } + .noprint { + font-size: 13px; + padding-bottom: 15px; + } + } + + @if ($snipeSettings->custom_css) + {{ $snipeSettings->show_custom_css() }} @endif + + +@foreach ($assets as $asset) + +
+ + @if ($settings->qr_code=='1') +
+ +
+ @endif + +
+ @if ($settings->qr_text!='') +
+ {{ $settings->qr_text }} +
+
+ @endif + @if (($settings->labels_display_company_name=='1') && ($asset->company)) +
+ C: {{ $asset->company->name }} +
+ @endif + @if (($settings->labels_display_name=='1') && ($asset->name!='')) +
+ N: {{ $asset->name }} +
+ @endif + @if (($settings->labels_display_tag=='1') && ($asset->asset_tag!='')) +
+ T: {{ $asset->asset_tag }} +
+ @endif + @if (($settings->labels_display_serial=='1') && ($asset->serial!='')) +
+ S: {{ $asset->serial }} +
+ @endif + @if (($settings->labels_display_model=='1') && ($asset->model->name!='')) +
+ M: {{ $asset->model->name }} {{ $asset->model->model_number }} +
+ @endif + +
+ + @if ((($settings->alt_barcode_enabled=='1') && $settings->alt_barcode!='')) +
+ +
+ @endif -
-@if ($count % $settings->labels_per_page == 0) -
-
 
-@endif +
+ + @if ($count % $settings->labels_per_page == 0) +
+
 
+ @endif @endforeach - + \ No newline at end of file