project_delete_form.html 1.19 KB
{% extends "base_page.html" %}

{# Make link with form_manager #}
{% set project = object_struct %}

{#  Set the title that will be used in base_page #}

{% if project['id'] and project['id'] != '' and project['name'] != None %}
{% set subtitle = "Supprimer le projet " + project['name'] %}
{% else %}
{% set subtitle = "Suppression pour nom de projet None" %}
{% endif %}

{% block content %}

<!-- Invisible span to define wich ul and a in the navbar are actived -->
<span id="nav_actived" style="display: none">admin,project_delete</span>

<form id="project_form" class="pdc-form" action="{{ url_for('main.project_delete') }}" method="post"
  onSubmit="return confirm('Etes vous sur de vouloir supprimer ce projet ?');">
  {% if project['id'] and project['id'] != '' %}
  <input class="form-control" id="project_id" name="project_id" type="hidden" value="{{ project['id'] }}">
  {% endif %}

  <div class="form-group">
    <label for="name">Nom</label>
    <input class="form-control" id="name" name="name" type="text" placeholder="Nom de Projet"
      value="{{ project['name'] if project['name'] }}">
  </div>
  <input id="deleteButton" class="pdc-form-submit" type="submit" value="Valider">
</form>
{% endblock %}