Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Company name on labels #4374

Closed
danielr34 opened this issue Nov 3, 2017 · 1 comment
Closed

Feature Request: Company name on labels #4374

danielr34 opened this issue Nov 3, 2017 · 1 comment

Comments

@danielr34
Copy link

danielr34 commented Nov 3, 2017

Expected Behavior (or desired behavior if a feature request)

Currently we can select asset name, serial & asset tag but not company. I know with the QR code you can enter text for it but that doesn't help when asset tagging for multiple companies (I look after 4 different companies in a single office). Adding the company field would make life much easier being able to see which company owns a device at a glance.

thanks


@Jhamende
Copy link

Jhamende commented Nov 7, 2017

in the meantime you can add it yourselve in /resources/views/hardware/labels.blade.php and add follwing where you want in your label within div with class=label

<div class="pull-left"> @if ($asset->company) {{ $asset->company->name }} @endif </div>

This needs to be done on every update until feature is added, if so.

snipe pushed a commit that referenced this issue Nov 9, 2017
* Migration - Labels Display Company Name setting

* Add Company Name to Labels

Add company name if it is turned on in settings and asset has a valid company

* Add Company Name checkbox to Label settings

* Add Company Name Lang

* Add display company name to postLabels

* Revert Add Company Name Lang

* Fix display company name in postLabels

* Change tinyInt to boolean for display company name

* Simplify checking for company and getting the name

* Change to square brackets for array notation

* Move divs inside if statements on optional fields
@snipe snipe closed this as completed Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants