parc_info_api_user_get_imp.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <table class="table table-hover">
  2. <thead class="thead-dark">
  3. <tr>
  4. <th scope="col">&nbsp;</th>
  5. <th scope="col">Site</th>
  6. <th scope="col" >Service</th>
  7. <th scope="col" >Nom NETBIOS</th>
  8. <th scope="col" >Marque et Modèle</th>
  9. <th scope="col">Adresse IP</th>
  10. <th scope="col">Numéro de série</th>
  11. <th scope="col">Commentaires</th>
  12. <th scope="col">&nbsp;</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. {% for item in data_query %}
  17. {% if item.PIC_L_Statut == "PREPROD" %}
  18. <tr class="table-success">
  19. {% elif item.PIC_L_Statut == "EN STOCK" %}
  20. <tr class="table-info">
  21. {% elif item.PIC_L_Statut == "HS" %}
  22. <tr class="table-warning">
  23. {% elif item.PIC_L_Statut == "ADEPROD" %}
  24. <tr class="table-danger">
  25. {% else%}
  26. <tr>
  27. {% endif %}
  28. <td><i class="fas fa-print" title="[IMP]"></i></td>
  29. <td>{% if item.PIC_Site != none %}{{item.PIC_Site}}{% else %}&nbsp;{% endif %}</td>
  30. <td>{% if item.PIC_Service != none %}{{item.PIC_Service}}{% else %}&nbsp;{% endif %}</td>
  31. <td>{% if item.PIC_Nom_netbios != none %}<span onmouseover="this.style.cursor='pointer';" onclick="bt_get_user_info({{item.id}})">{{item.PIC_Nom_netbios}}</span>{% else %}&nbsp;{% endif %}</td>
  32. <td>{% if item.PIC_Marque != none or item.PIC_Type != none%}{{item.PIC_Marque}}<br>{{item.PIC_Type}}{% else %}&nbsp;{% endif %}</td>
  33. <td>{% if item.PIC_Adresse_IP != none %}{{item.PIC_Adresse_IP}}{% else %}&nbsp;{% endif %}</td>
  34. <td>{% if item.PIC_SN != none %}{{item.PIC_SN}}{% else %}&nbsp;{% endif %}{% if item.PIC_SN != none and item.PIC_Precisions != none%}<br>{% endif %}{% if item.PIC_Precisions != none %}{{item.PIC_Precisions}}{% else %}&nbsp;{% endif %}</td>
  35. <td>{% if item.PIC_Commentaires != none %}{{item.PIC_Commentaires}}{% else %}&nbsp;{% endif %}</td>
  36. <td onmouseover="this.style.cursor='pointer';">
  37. {% if item.PIC_L_Chassi_Type == "IMP" and item.PIC_Adresse_IP != none %}<a href="http://{{item.PIC_Adresse_IP}}" class="text-reset" target="_blank" title="[Web admin]"><i class="fas fa-external-link-alt"></i></a>&nbsp;{% endif %}
  38. <i class="fas fa-search-plus" onclick="bt_get_user_info({{item.id}})" title="[Détail]"></i>&nbsp;
  39. <i class="fas fa-history" onclick="bt_get_user_hist({{item.id}})" title="[Historique]"></i>&nbsp;
  40. <i class="far fa-edit" onclick="bt_edit_user_info({{item.id}})" title="[Modifier]"></i>&nbsp;
  41. <i class="fas fa-tasks" onclick="bt_edit_user_statut({{item.id}})" title="[Option supplémentaire]"></i>
  42. </td>
  43. </tr>
  44. {% endfor %}
  45. </tbody>
  46. </table>