manage_regular_shifts.html 4.34 KB
Newer Older
Félicie committed
1 2
{% extends "base.html" %}
{% load static %}
3
{% block body_class %}manage_regular_shifts{% endblock %}
Félicie committed
4 5 6 7 8 9 10 11 12 13
{% block additionnal_css %}
<link rel="stylesheet" href="{% static 'css/datatables/datatables.min.css' %}">
<link rel="stylesheet" href="{% static 'css/admin/manage_regular_shifts.css' %}">
<link rel="stylesheet" href="{% static 'jquery-ui-1.12.1/jquery-ui.min.css' %}">

{% endblock %}

{% block additionnal_scripts %}
  <script type="text/javascript" src="{% static 'jquery-ui-1.12.1/jquery-ui.min.js' %}"></script>
  <script type="text/javascript" src="{% static 'js/datatables/datatables.min.js' %}"></script>
14
  <script type="text/javascript" src="{% static 'js/notify.min.js' %}?v=1651853225"></script>
Félicie committed
15 16 17 18
{% endblock %}

{% block content %}

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
<div class="page_body">
  <div id="back_to_admin_index">
    <button type="button" class="btn--danger"><i class="fas fa-arrow-left"></i>&nbsp; Retour</button>
  </div>
  <div class="login_area">
    {% include "common/conn_admin.html" %}
  </div>
  <div class="header txtcenter">
    <h1>Gestion des Créneaux</h1>
  </div>
  
  <div class="page_content">
    <div id="search_member_area">
      <div id="search_member_form_area">
        <h4>Rechercher un.e membre</h4>
        <form id="search_member_form" action="javascript:;" method="post">
          <input type="text" id="search_member_input" value="" placeholder="Nom ou numéro du coop..." required>
          <button type="submit" class="btn--primary" id="search_member_button">Recherche</button>
        </form>
      </div>
      <div class="search_member_results_area" style="display:none;">
        <div class="search_results_text">
          <p><i>Choisissez parmi les membres trouvés :</i></p>
        </div>
        <div class="search_member_results"></div>
      </div>
    </div>
46 47 48 49 50 51 52 53
    <div id="partner_data_area">
      <h4 class="member_name_container">
        <i class="fas fa-user member_name_icon"></i>
        <span class="member_info member_name"></span>
      </h4>
      <p class="shift_name_container">Créneau : <span class="member_info member_shift"></span></p>
      <p class="status_container">Statut : <span class="member_info member_status"></span></p>
      <p class="makeups_container">Nb rattrapage(s) : <span class="member_info member_makeups"></span></p>
54 55 56 57
      <div id="actions_on_member">
        <button class="btn--primary" id="remove_shift_template_button">
          Désinscrire du créneau
        </button>
58 59 60
        <button class="btn--primary" id="change_shift_template_button">
          Changer de créneau
        </button>
61 62 63 64
        <button class="btn--primary" id="subscribe_to_shift_template_button">
          Réinscrire à un créneau
        </button>
      </div>
65
      </div>
66
    </div>
67 68
  </div>

69 70 71 72
  <div id="shifts_calendar_area">
    {% include "members/shift_template_choice.html" %}
  </div>

73 74 75 76 77 78 79 80
  <div id="templates" style="display:none;">
    <div id="modal_remove_shift_template">
      <p>Voulez vraiment désinscrire ce membre du créneau <span class="shift_template_name"></span> ?</p>
      <div class="checkbox_area">
        <input type="checkbox" id="permanent_unsuscribe" name="permanent_unsuscribe">
        <label for="permanent_unsuscribe">Désinscription définitive</label>
      </div>
    </div>
81
    <div id="modal_error_change_shift_template">
82
      <h3 class="error_modal_title">Action impossible</h3>
83 84 85 86 87
      <p>
        Le ou la membre est inscrit.e à un rattrapage sur le créneau choisi (<span class="shift_template_name"></span>), cela empêche de l'inscrire sur ce créneau.
      </p>
      <p>Vous pouvez essayer de l'inscrire sur ce créneau une autre semaine.</p>
    </div>
88
  </div>
89
</div>
Félicie committed
90

91 92 93 94 95 96 97
<script src="{% static "js/pouchdb.min.js" %}"></script>
<script type="text/javascript">
  var type = 2;
  var has_committe_shift = '{{has_committe_shift}}'
  var max_begin_hour = '{{max_begin_hour}}'
  var couchdb_dbname = '{{db}}';
  var couchdb_server = '{{couchdb_server}}' + couchdb_dbname;
98
  var committees_shift_id = '{{committees_shift_id}}';
99
  var exemptions_shift_id = '{{exemptions_shift_id}}';
100
  const committees_shift_name = '{{committees_shift_name}}';
101
  var ASSOCIATE_MEMBER_SHIFT = '{{ASSOCIATE_MEMBER_SHIFT}}';
102
</script>
103 104 105
<script src='{% static "js/common.js" %}?v=1651853225'></script>
<script src='{% static "js/all_common.js" %}?v=1651853225'></script>
<script src='{% static "js/admin/manage_regular_shifts.js" %}?v=1651853225'></script>
Félicie committed
106
{% endblock %}