62 lines
2.6 KiB
HTML
62 lines
2.6 KiB
HTML
|
<form action="{{ url_for('create_permission') }}" 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('list_permission') }}"/>
|
||
|
<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"
|
||
|
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"
|
||
|
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"
|
||
|
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"
|
||
|
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"
|
||
|
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" value="1" name="_is_allowed"
|
||
|
/>
|
||
|
</td></tr>
|
||
|
{% endif %}
|
||
|
</table>
|
||
|
<input type="submit">
|
||
|
</form>
|