68 lines
2.8 KiB
HTML
68 lines
2.8 KiB
HTML
<form action="{{ url_for('update_permission', uuid=instance.id) }}" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
|
<input type="hidden" name="_next" value="{{ _next or request.args.get('_next') or url_for('get_permission', uuid=instance.id) }}"/>
|
|
<table>
|
|
{% if "subject" not in disabled_columns %}
|
|
<tr {% if "subject" in hidden_columns %}style="display: none;"{% endif %}><td>
|
|
<label for="input-permission-subject">{{ _("subject") }}</label>:
|
|
</td><td>
|
|
<input id="input-permission-subject"
|
|
value="{{ instance.subject }}"
|
|
type="text" name="subject" autocomplete="off"
|
|
/>
|
|
</td></tr>
|
|
{% endif %}
|
|
{% if "subject_id" not in disabled_columns %}
|
|
<tr {% if "subject_id" in hidden_columns %}style="display: none;"{% endif %}><td>
|
|
<label for="input-permission-subject_id">{{ _("subject_id") }}</label>:
|
|
</td><td>
|
|
<input id="input-permission-subject_id"
|
|
value="{{ instance.subject_id }}"
|
|
type="number" name="subject_id"
|
|
/>
|
|
</td></tr>
|
|
{% endif %}
|
|
{% if "action" not in disabled_columns %}
|
|
<tr {% if "action" in hidden_columns %}style="display: none;"{% endif %}><td>
|
|
<label for="input-permission-action">{{ _("action") }}</label>:
|
|
</td><td>
|
|
<input id="input-permission-action"
|
|
value="{{ instance.action }}"
|
|
type="text" name="action" autocomplete="off"
|
|
/>
|
|
</td></tr>
|
|
{% endif %}
|
|
{% if "object" not in disabled_columns %}
|
|
<tr {% if "object" in hidden_columns %}style="display: none;"{% endif %}><td>
|
|
<label for="input-permission-object">{{ _("object") }}</label>:
|
|
</td><td>
|
|
<input id="input-permission-object"
|
|
value="{{ instance.object }}"
|
|
type="text" name="object" autocomplete="off"
|
|
/>
|
|
</td></tr>
|
|
{% endif %}
|
|
{% if "object_id" not in disabled_columns %}
|
|
<tr {% if "object_id" in hidden_columns %}style="display: none;"{% endif %}><td>
|
|
<label for="input-permission-object_id">{{ _("object_id") }}</label>:
|
|
</td><td>
|
|
<input id="input-permission-object_id"
|
|
value="{{ instance.object_id }}"
|
|
type="number" name="object_id"
|
|
/>
|
|
</td></tr>
|
|
{% endif %}
|
|
{% if "is_allowed" not in disabled_columns %}
|
|
<tr {% if "is_allowed" in hidden_columns %}style="display: none;"{% endif %}><td>
|
|
<label for="input-permission-is_allowed">{{ _("is_allowed") }}</label>:
|
|
</td><td>
|
|
<input type="hidden" name="_is_allowed" value="0" />
|
|
<input id="input-permission-is_allowed"
|
|
type="checkbox" name="_is_allowed" {% if instance.is_allowed %}checked=checked{% endif %}
|
|
value="1"
|
|
/>
|
|
</td></tr>
|
|
{% endif %}
|
|
</table>
|
|
<input type="submit">
|
|
</form> |