L'outil de gestion de stock de composants électroniques du Tetalab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
4.2 KiB

  1. {% extends "index.html" %}
  2. {% block bodyheader %}
  3. <body onload="javascript:update_componants();">
  4. {% endblock %}
  5. {% block title %}Liste des composants{% endblock %}
  6. {% block top_menu %}
  7. <span class='top_menu_item_selected' onclick='javascript:document.location="/componants";'>Gestion des composants</span>
  8. <span class='top_menu_item' onclick='javascript:document.location="/componants/in";'>Entrée de stock</span>
  9. <span class='top_menu_item' onclick='javascript:document.location="/componants/out";'>Sortie de stock</span>
  10. {% endblock %}
  11. {% block left_menu %}
  12. <div class='left_menu_item' onclick='javascript:document.location="/";'>
  13. Accueil
  14. </div>
  15. <div class='left_menu_item_selected' onclick='javascript:document.location="/componants";'>
  16. Composants
  17. </div>
  18. <div class='left_menu_item' onclick='javascript:document.location="/kits";'>
  19. Kits
  20. </div>
  21. <div class='left_menu_item' onclick='javascript:document.location="/providers";'>
  22. Fournisseurs
  23. </div>
  24. {% endblock %}
  25. {% block content %}
  26. <!-- ----------------------------------------------------
  27. Recherche
  28. ----------------------------------------------------- -->
  29. <div id='search' class='main_block'>
  30. <text>Recherche:</text>
  31. <div class='input_block'>
  32. <label>Référence (unique)</label>
  33. <input
  34. id='reference'
  35. type='text'
  36. onkeyup='javascript:search_componants_by_reference(this, "text");'
  37. maxlength='20'
  38. title='Référence interne unique (max. 20)'
  39. placeholder='Référence interne unique (max. 20)'
  40. value='{{ reference }}' />
  41. </div>
  42. <div class='input_block'>
  43. <label>Désignation</label>
  44. <input
  45. id='designation'
  46. type='text'
  47. onkeyup='javascript:search_componants_by_designation(this, "text");'
  48. maxlength='50'
  49. title='Désignation (max. 50)'
  50. placeholder='Désignation (max. 50)'
  51. value='{{ designation }}' />
  52. </div>
  53. <div class='input_block'>
  54. <label>Emplacement</label>
  55. <input
  56. id='place'
  57. type='text'
  58. onkeyup='javascript:search_componants_by_place(this, "text");'
  59. maxlength='15'
  60. title='Emplacement (max. 15)'
  61. placeholder='Emplacement (max. 15)'
  62. value='{{ place }}' />
  63. </div>
  64. <div class='input_block'>
  65. <label>Fournisseur</label>
  66. <select
  67. id='provider_id'
  68. onchange='javascript:search_componants_by_provider(this, "numeric");'
  69. title='Fournisseur'>
  70. {% for prov in providers %}
  71. {% set selected = '' %}
  72. {% if prov.id == provider_id %}
  73. {% set selected = 'selected' %}
  74. {% endif %}
  75. <option value='{{ prov.id }}' {{ selected }}>{{ prov.name }}</option>
  76. {% endfor %}
  77. </select>
  78. </div>
  79. <div class='button_block'>
  80. <input
  81. type='image'
  82. src='/static/images/search.png'
  83. title='Rechercher'
  84. onclick='javascript:update_componants("reference");'/>
  85. <input
  86. type='image'
  87. src='/static/images/save.png'
  88. title='Enregistrer'
  89. onclick='javascript:new_componant();'/>
  90. </div>
  91. </div>
  92. <!-- ----------------------------------------------------
  93. Resultat
  94. ----------------------------------------------------- -->
  95. <div id='result_container' class='main_block'>
  96. </div>
  97. {% endblock %}