12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- {% load crispy_forms_tags %}
- <div class="modal-dialog modal-lg" role="document">
- <div class="modal-content">
- {% if item.GES_OK == True and item.GES_Date_Sup and item.GES_SUP == True%}
- <div class="modal-header border-danger bg-danger">
- {% elif item.GES_OK == True and item.GES_Date_Sup%}
- <div class="modal-header border-warning bg-warning">
- {% elif item.GES_OK == True %}
- <div class="modal-header border-success bg-success">
- {% else%}
- <div class="modal-header">
- {% endif %}
- <h5 class="modal-title">Détail d'un utilisateur</h5>
- <button type="button" class="btn btn-sm btn-dark close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- <table class="table table-sm">
- <tr><td>Nom : </td><td><input type="text" readonly="readonly" value="{{item.GES_Nom}}"/></td></tr>
- <tr><td>Prénom : </td><td><input type="text" readonly="readonly" value="{{item.GES_Prenom}}"/></td></tr>
- <tr><td>Site : </td><td> {{item.GES_Site}} </td></tr>
- <tr><td>Service : </td><td> {{item.GES_Service}} </td></tr>
- <tr><td>Fonction : </td><td> {{item.GES_Fonction}} </td></tr>
- {% if item.GES_Date %}<tr><td>Date d'arrivée : </td><td> {% if item.GES_Date %}{{item.GES_Date}}{% else %} {% endif %} </td></tr>{% endif %}
- {% if item.GES_Date_Sup %}<tr><td>Date de départ : </td><td> {% if item.GES_Date_Sup %}{{item.GES_Date_Sup}}{% else %} {% endif %} </td></tr>{% endif %}
- </table>
- <h4>Liste des applications sélectionnées avec le profil</h4>
- <table class="table table-sm">
- <tr>
- <th scope="col">Nom de l'application</th>
- <th scope="col">Login</th>
- <th scope="col">Mot de passe</th>
- <th scope="col">Crée ?</th>
- <th scope="col">Outils</th>
- </tr>
- {% for apps in item.apps %}
- {% spaceless %}
- {% if apps.GES_APPLink_Create == True %}
- <tr class="table-success">
- {% else %}
- <tr>
- {% endif %}
- <td>{{apps.GES_APPLink_APP.GESAP_Nom}}</td>
- <td><input type="text" readonly="readonly" value="{{apps.GES_APPLink_Login}}"/></td>
- <td><input type="text" readonly="readonly" value="{{apps.GES_APPLink_MDP}}"/></td>
- <td onmouseover="this.style.cursor='pointer';" onclick="bt_switch_app_status({{apps.id}})">{% if apps.GES_APPLink_Create == True %} <span class="text-success"><i class="fas fa-clipboard-check" title="[ Crée ]"></i></span>{% else %}<i class="fas fa-clipboard-list" title="[ A Faire ]"></i> {% endif %}</td>
- <td onmouseover="this.style.cursor='pointer';">
- {% if apps.GES_APPLink_APP.GESAP_Procedure != "" %}<span style="color: blue;"><a class="text-reset" target="_blank" href="{{ apps.GES_APPLink_APP.GESAP_Procedure }}"><i class="fas fa-info-circle"></i></a></span> {% endif %}
- <span onclick="bt_edit_app_info({{apps.id}})"><i class="fas fa-tools"></i></span>
- <span {% if apps.GES_APPLink_Create == False %}style="color: red;"{% endif %}{% if apps.GES_APPLink_Create == False %} onclick="bt_app_remove({{apps.id}})"{% endif %}><i class="fas fa-minus-square" {% if apps.GES_APPLink_Create == True %}title="Attention - La création de l'application doit étre annulé"{% endif %}></i></span>
- </td>
- </tr>
- {% endspaceless %}
- {% empty %}
- <tr><td></td><td colspan='4'><i>Pas d'application d'associé</i></td></tr>
- {% endfor %}
- <tr><td>Ajout d'un application</td><td>{{item.apps_form.GES_APPLink_APP}}</td><td><button type="button" class="btn btn-success btn-sm" onclick="bt_app_add({{item.id}})"><i class="fas fa-plus-square"></i> Ajouté</button><td></tr>
- </table>
- <table class="table table-sm">
- {% for apps in item.apps %}
- {% if apps.GES_APPLink_APP.GESAP_Sup_Nom != "" %}
- <tr>
- <td><b> {{apps.GES_APPLink_APP.GESAP_Nom}} </b></td>
- <td><b> {{apps.GES_APPLink_APP.GESAP_Sup_Nom}} </b></td>
- <td>{% if apps.GES_APPLink_Sup != ""%} {{apps.GES_APPLink_Sup}} {% else %}{% endif %}</td>
-
- </tr>
- {% endif %}
- {% endfor %}
- </table>
- <p><i class="fas fa-share-alt"></i> http://srv-gparc.intra.stjacques/user/liste?get_id={{item.id}}</p>
- </div>
- <div class="modal-footer">
- {% if item.isok == 1 and item.GES_OK == False %}<button type="button" class="btn btn-success" onclick="bt_edit_complete({{item.id}})"><i class="fas fa-check"></i> Finaliser</button>{% endif %}
- {% if item.GES_OK == True and item.GES_Date_Sup and item.GES_SUP == False %}<button type="button" class="btn btn-danger" onclick="bt_edit_close({{item.id}})"><i class="fas fa-check"></i> Compte cloturé</button>{% endif %}
- <a class="btn btn-dark" target="_blank" href="{% url 'gest_user_api_user_get_for_send' item.id %}" role="button"><i class="fa fa-print"></i> Pour impression</a>
- <button type="button" class="btn btn-dark" onclick="bt_edit_info({{item.id}})"><i class="far fa-edit"></i> Mise à jour</button>
- </div>
- </div>
- </div>
|