capacity_form.html
1.08 KB
{% extends "base_page.html" %}
{# Make link with form_manager #}
{% set capacity = object_struct %}
{# Set the title that will be used in base_page #}
{% if capacity['id'] and capacity['id'] != '' %}
{% set subtitle = "Modifier la fonction "+ capacity['name'] %}
{% else %}
{% set subtitle = "Ajouter une nouvelle fonction" %}
{% endif %}
{% block content %}
<!-- Invisible span to define wich ul and a in the navbar are actived -->
<span id="nav_actived" style="display: none">admin,capacity_edit</span>
<form id="capacity_form" class="pdc-form" action="{{ url_for('main.capacity_edit',
capacity_id=capacity['id']) }}" method="post">
{% if capacity['id'] and capacity['id'] != '' %}
<input class="form-control" id="capacity_id" name="capacity_id" type="hidden" value="{{ capacity['id'] }}">
{% endif %}
<div class="form-group">
<label for="name">Nom</label>
<input class="form-control" id="name" name="name" type="text" value="{{ capacity['name'] }}">
</div>
<input class="pdc-form-submit" type="submit" value="Valider">
</form>
{% endblock %}