54 lines
2.4 KiB
HTML
54 lines
2.4 KiB
HTML
|
|
{% if is_blank_row %}
|
|
<tr class="{{ model.FLAG_ROW_NEW }} {{ model.FLAG_USER }}" {{ model.ATTR_ID_USER }}>
|
|
<td class="{{ model.FLAG_COMPANY }}">
|
|
{{ model.user.company.name }}
|
|
</td>
|
|
<td class="{{ model.FLAG_ROLE }} {{ model.FLAG_DDL_PREVIEW }}">
|
|
{% include 'components/user/_preview_DDL_role.html' %}
|
|
</td>
|
|
<td class="{{ model.FLAG_FIRSTNAME }}">
|
|
<input type="text"
|
|
class="{{ model.FLAG_FIRSTNAME }}"
|
|
{{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }} />
|
|
</td>
|
|
<td class="{{ model.FLAG_SURNAME }}">
|
|
<input type="text"
|
|
class="{{ model.FLAG_SURNAME }}"
|
|
{{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }} />
|
|
</td>
|
|
{% include 'components/dog/_td_notes.html' %}
|
|
{% set active = True %}
|
|
{% include 'components/dog/_td_active.html' %}
|
|
</tr>
|
|
{% else %}
|
|
<tr class="{{ model.FLAG_USER }}" {{ model.ATTR_ID_USER }}="{{ user.id_user }}">
|
|
{% set company = user.company %}
|
|
<td class="{{ model.FLAG_COMPANY }}">
|
|
{{ company.name }}
|
|
</td>
|
|
{% set role_preview = user.role %}
|
|
<td class="{{ model.FLAG_ROLE }} {{ model.FLAG_DDL_PREVIEW }}">
|
|
{% include 'components/user/_preview_DDL_role.html' %}
|
|
</td>
|
|
<td class="{{ model.FLAG_FIRSTNAME }}">
|
|
<input type="text"
|
|
class="{{ model.FLAG_FIRSTNAME }}"
|
|
{{ model.ATTR_VALUE_CURRENT }}="{{ model.format_null_string_as_blank(user.firstname)|escape }}"
|
|
{{ model.ATTR_VALUE_PREVIOUS }}="{{ model.format_null_string_as_blank(user.firstname)|escape }}"
|
|
value="{{ model.format_null_string_as_blank(user.firstname) }}" />
|
|
</td>
|
|
<td class="{{ model.FLAG_SURNAME }}">
|
|
<input type="text"
|
|
class="{{ model.FLAG_SURNAME }}"
|
|
{{ model.ATTR_VALUE_CURRENT }}="{{ model.format_null_string_as_blank(user.surname)|escape }}"
|
|
{{ model.ATTR_VALUE_PREVIOUS }}="{{ model.format_null_string_as_blank(user.surname)|escape }}"
|
|
value="{{ model.format_null_string_as_blank(user.surname) }}" />
|
|
</td>
|
|
{% set notes = user.notes %}
|
|
{% include 'components/dog/_td_notes.html' %}
|
|
{% set active = user.active %}
|
|
{% include 'components/dog/_td_active.html' %}
|
|
</tr>
|
|
{% endif %}
|