{# s_default.html if request.user.id not in [1] and rd_only and k.column in rd_only s_cru.html if (request.user.id in [1]) or (rd_only and k not in rd_only) #} {% if restrict %} {% set rstr = 'd-none' if (not request.user.is_superuser and request.user.id not in restrict) else None %} {% else %} {% set rstr = ''%} {% endif %}
| {% if rel_form %} {% for k in rel_form.data._meta.fields %} {% set dis = k.name in rel_form.fields or k.column in rel_form.fields %} {% if not request.user.is_superuser and rd_only and k.column in rd_only %} {% set dis = 'false' %} {% endif %} | {{ k.name.title() | replace('_', ' ') }} | {% endfor %} {% endif %} {% for k in mdl_form.data._meta.fields %} {% set dis = k.name in mdl_form.fields or k.column in mdl_form.fields %} {% if not request.user.is_superuser and rd_only and k.column in rd_only %} {% set dis = 'false' %} {% endif %}{{ k.name.title() | replace('_', ' ') }} | {% endfor %}
|---|