agent_edit.html 1.62 KB
{% extends "base_page.html" %}
{% block content %}
{% if agent %}
Modifier l'agent {{ agent.name}}.
{% else %}
Ajouter un nouvel agent.
{% endif %}
<form action="{{url_for('main.agent_edit')}}" method="post">
  {% if agent %}
  <input class="form-control" id="agent_id" name="agent_id" type="hidden" value="{{agent.id}}">
  {% endif %}
  <div class="form-group">
    <label for="firstname">Nom</label>
    <input class="form-control" id="firstname" name="firstname" type="text" value="{{agent.firstname}}">
  </div>
  <div class="form-group">
    <label for="secondname">Prénom</label>
    <input class="form-control" id="secondname" name="secondname" type="text" value="{{agent.secondname}}">
  </div>
  <div class="form-group">
    <label for="virtual">Virtuel</label>
    <input class="form-control" id="virtual" name="virtual" type="text" value="{{agent.virtual}}">
  </div>
  <div class="form-group">
    <label for="company">Structure</label>
    <input class="form-control" id="company" name="company" type="text" value="{{agent.company.name}}">
  </div>
  <div class="form-group">
    <label for="grade">Grade</label>
    <input class="form-control" id="grade" name="grade" type="text" value="{{agent.grade.name}}">
  </div>
  <div class="form-group">
    <label for="status">Statut</label>
    <input class="form-control" id="status" name="status" type="text" value="{{agent.status.name}}">
  </div>
  <div class="form-group">
    <label for="bap">Bap</label>
    <input class="form-control" id="bap" name="bap" type="text" value="{{agent.bap.name}}">
  </div>
  <input class="btn btn-dark" type="submit" value="Valider">
</form>
{% endblock %}