123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- {% if item.PIC_L_Statut == "PREPROD" %}
- <div class="modal-header border-success bg-success">
- {% elif item.PIC_L_Statut == "EN STOCK" %}
- <div class="modal-header border-info bg-info">
- {% elif item.PIC_L_Statut == "HS" %}
- <div class="modal-header border-warning bg-warning">
- {% elif item.PIC_L_Statut == "ADEPROD" %}
- <div class="modal-header border-danger bg-danger">
- {% else%}
- <div class="modal-header">
- {% endif %}
-
- <h5 class="modal-title">Détail d'un poste 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>Site : </td><td>{{item.PIC_Site}}</td></tr>
- <tr><td>Type de chassi : </td><td>{{item.get_PIC_L_Chassi_Type_display}}</td></tr>
- <tr><td>Service : </td><td>{{item.PIC_Service}}</td></tr>
- <tr><td>Nom NETBIOS : </td><td>{{item.PIC_Nom_netbios}}</td></tr>
- <tr><td>Utilisateur : </td><td>{{item.PIC_Utilisateur}}</td></tr>
- {%if item.PIC_OS != None %}<tr><td>OS : </td><td>{{item.PIC_OS}}</td></tr>{% endif %}
- <tr><td>Adresse IP : </td><td>{{item.PIC_Adresse_IP}}</td></tr>
- {%if item.PIC_L_Chassi_Type != "IMP" %}<tr><td>Adresse MAC : </td><td>{{item.PIC_Adresse_Mac}}</td></tr>{% endif %}
- {%if item.PIC_Marque != "" %}<tr><td>Marque : </td><td>{{item.PIC_Marque}}</td></tr>{% endif %}
- {%if item.PIC_Type != "" %}<tr><td>Modèle : </td><td>{{item.PIC_Type}}</td></tr>{% endif %}
- {%if item.PIC_SN != "" %}<tr><td>SN : </td><td>{{item.PIC_SN}}</td></tr>{% endif %}
- {%if item.PIC_CPU != None %}<tr><td>CPU : </td><td>{{item.PIC_CPU}}</td></tr>{% endif %}
- {%if item.PIC_RAM != 0 %}<tr><td>RAM : </td><td>{{item.PIC_RAM}} Go</td></tr>{% endif %}
- <tr><td>Localisation : </td><td>{{item.PIC_Local}}</td></tr>
- {%if item.PIC_Precisions != "" %}<tr><td>Precisions : </td><td>{{item.PIC_Precisions}}</td></tr>{% endif %}
- {%if item.PIC_Commentaires != "" %}<tr><td>Commentaires : </td><td>{{item.PIS_Commentaires}}</td></tr>{% endif %}
- </table>
- {% if item.accessoir %}
- <h6>Accessoires lié au poste</h6>
- <table class="table table-sm">
- {% for accessoir in item.accessoir %}
- <tr>
- <td>
- {% if accessoir.Accessory_N_slugify == "double-ecrans"%}
- <i class="{{accessoir.Accessory_icone}}"></i><i class="{{accessoir.Accessory_icone}}"></i>
- {% else %}
- <i class="{{accessoir.Accessory_icone}}"></i>
- {% endif %}
- </td>
- <td>{{accessoir.Accessory_Nom}}</td>
- </tr>
- {% endfor %}
- </table>
- {% endif %}
- </div>
- {% if item.PIC_L_Statut == "PREPROD" %}
- <div class="modal-footer border-success bg-success">
- {% elif item.PIC_L_Statut == "EN STOCK" %}
- <div class="modal-footer border-info bg-info">
- {% elif item.PIC_L_Statut == "HS" %}
- <div class="modal-footer border-warning bg-warning">
- {% elif item.PIC_L_Statut == "ADEPROD" %}
- <div class="modal-footer border-danger bg-danger">
- {% else%}
- <div class="modal-footer">
- {% endif %}
- {% if item.PIC_L_Chassi_Type == "IMP" and item.PIC_Adresse_IP != none %}<a class="btn btn-dark" href="http://{{item.PIC_Adresse_IP}}" target="_blank" role="button"><i class="fas fa-external-link-alt"></i> WebAdmin</a>{% endif %}
- <button type="button" class="btn btn-dark" onclick="bt_get_user_hist({{item.id}})"><i class="fas fa-history"></i> Historiques</button>
- <button type="button" class="btn btn-dark" onclick="bt_edit_user_info({{item.id}})"><i class="far fa-edit"></i> Mise à jour</button>
- <button type="button" class="btn btn-dark" onclick="bt_edit_user_statut({{item.id}})"><i class="fas fa-tasks"></i> Changer Status</button>
- </div>
- </div>
- </div>
|