Add assigned_to username to label #10228
-
Hi Is there a way to add the username (assigned to the asset) to the label? I've played around with the labls_blade.php file and added the assigned_to field but it returns the ID and not the username. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is how I have mine set up in */resources/views/hardware/labels.blade.php: Under <div class="qr_text!='') add:
Where ever you would like the Assigned to user to appear. It will write it as "First Name Last Name" on the label. I'm trying to figure out from here how to add assignment options based on location/parent assets. If anyone knows how to do this, please reply. |
Beta Was this translation helpful? Give feedback.
-
I just came across this and just wanted to say thank you! Very helpful. |
Beta Was this translation helpful? Give feedback.
This is how I have mine set up in */resources/views/hardware/labels.blade.php:
Under <div class="qr_text!='')
add:
Where ever you would like the Assigned to user to appear. It will write it as "First Name Last Name" on the label.
Example: "Assigned To: John Smith" You can change the "Assigned To:" at the beginning to be Checked Out To: or any other option including removing that part completely. You can also add html before and after such as
<b><u>Assigned To:</u></b>
I'm …