Refactor user, room, and inventory models to replace 'full_name' property with 'identifier' for consistency; update related templates and routes accordingly.

This commit is contained in:
Yaro Kasear 2025-07-22 11:49:47 -05:00
parent d12023ecd1
commit 462c077681
13 changed files with 129 additions and 88 deletions

View file

@ -108,7 +108,7 @@
<option>-</option>
{% for supervisor in users %}
<option value="{{ supervisor.id }}"{% if supervisor.id==user.supervisor_id %} selected{% endif %}>
{{ supervisor.full_name }}</option>
{{ supervisor.identifier }}</option>
{% endfor %}
</select>
</div>
@ -119,7 +119,7 @@
<option>-</option>
{% for location in rooms %}
<option value="{{ location.id }}"{% if location.id==user.location_id %} selected{% endif %}>{{
location.full_name }}</option>
location.identifier }}</option>
{% endfor %}
</select>
</div>
@ -142,7 +142,7 @@
{% set inventory_title %}
Assets
{{ links.export_link(
(user.full_name | lower | replace(' ', '_')) + '_user_inventory',
(user.identifier | lower | replace(' ', '_')) + '_user_inventory',
'inventory',
{'ids': id_list}
) }}
@ -157,7 +157,7 @@
{% set worklog_title %}
Work Done
{{ links.export_link(
(user.full_name | lower | replace(' ', '_')) + '_user_worklog',
(user.identifier | lower | replace(' ', '_')) + '_user_worklog',
'worklog',
{'ids': id_list}
) }}