Fix: Hamburger menu styles.
This commit is contained in:
5
templates/components/user/_preview_DDL_role.html
Normal file
5
templates/components/user/_preview_DDL_role.html
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
{% set value_previous = '0' if is_blank_row else role_preview.id_role %}
|
||||
{% set text_previous = '' if is_blank_row else role_preview.name %}
|
||||
|
||||
<div class="{{ model.FLAG_ROLE }}" {{ model.ATTR_VALUE_PREVIOUS }}="{{ value_previous }}" {{ model.ATTR_VALUE_CURRENT }}="{{ value_previous }}">{{ text_previous }}</div>
|
||||
53
templates/components/user/_row_user.html
Normal file
53
templates/components/user/_row_user.html
Normal file
@@ -0,0 +1,53 @@
|
||||
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user