-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Add Checked Out To first and last name to Generate Labels #7005
Comments
If you want to add custom info to your label you can edit the following file that outputs the label template. Bare in mind that this file maybe overwritten when you update your installation. /your-snipe-it-install/resources/views/hardware/labels.blade.php You can add the following code to the labels.blade.php to output the first & last name. This will only display on the label when the asset is Checked out to a user
You may have to add some custom CSS to style the label to suit your label size. The size of your label might mean you have to compromise the amount of info you put there. |
Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. |
This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it. |
Got this working. Thanks for the help. I wanted to add a feature that would allow the user to input what the starting label is when printing the labels in case they are using a partially used label sheet. I was thinking I could add an option for "start at label" field on the Settings > Labels > Update Label Settings page, and then code the starting label into labels.blade.php. Does this sound like the right way to attack this? |
Server (please complete the following information):
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
How can the First and Last name of the Checked Out To user for an asset be added as an option to show on Generate Labels? It looks as though the snipeit\resources\views\hardware\labels.blade.php file gets passed the Snipe internal id of the Checked Out To user but does not have access to the first and last name of that user. Also, can an option be added to ask for a starting label when printing? i.e. if a sheet of labels has 10 rows of 3 labels and the first 3 rows of the sheet of labels you will be printing on are already used, can you put in a starting label # of 10 to start the printing at the left most label of the 4th row on the sheet of labels?
Describe alternatives you've considered
Exporting the assets to a CSV file and using that as the source for a mail merged word file.
Additional context
The text was updated successfully, but these errors were encountered: