您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

64 行
3.0 KiB

  1. {% extends 'base.html.twig' %}
  2. {% block title %}MPP-Tool{% endblock %}
  3. {% block body %}
  4. <h1>MPP-Tool</h1>
  5. <p id="instruction">Bitte füllen sie alle Felder aus, um eine Risikoanalyse zu erstellen.</p>
  6. <form method="post" class="form form--catalogue">
  7. <label for="asset">Bitte wählen sie eine Anlage.</label>
  8. <select name="asset" id="asset">
  9. {% for asset in dinAssets %}
  10. <option value="{{ asset.id }}">{{ asset.dinNumber }} - {{ asset.name }}</option>
  11. {% endfor %}
  12. </select>
  13. <div id="no-benchmark-data" class="denk-dir-was-aus-flo" style="color: #6D0507; display: {% if benchmarkValues|length < 1 %} block {% else %} none {% endif %}" >Für sind Anlage leider keine Benchmark-Daten vorhanden!</div>
  14. <h2>Risikoanalyse</h2>
  15. <label for="failure">Wie hoch ist die Ausfallwahrscheinlichkeit?:</label>
  16. <select name="failure" id="failure">
  17. {% for key, failure in riskFailure %}
  18. <option value="{{ key }}">{{ failure[0] }}</option>
  19. {% endfor %}
  20. </select>
  21. <label for="costs">Wie hoch ist der Schaden bei Ausfall?</label>
  22. <select name="costs" id="costs">
  23. {% for key, costs in riskCosts %}
  24. <option value="{{ key }}">{{ costs[0] }}</option>
  25. {% endfor %}
  26. </select>
  27. <h2>Optimierungsckeck</h2>
  28. <label for="maintenance">Wird durch die Wartung der Abnutzungsvorrat positiv beeinflusst?</label>
  29. <select name="maintenance" id="maintenance">
  30. <option value="-">-</option>
  31. <option value="0">Nein</option>
  32. <option value="1">Ja</option>
  33. </select>
  34. <label for="inspection">Kann durch eine Inspektion der Zustand der Anlage erkannt werden?</label>
  35. <select name="inspection" id="inspection">
  36. <option value="-">-</option>
  37. <option value="0">Nein</option>
  38. <option value="1">Ja</option>
  39. </select>
  40. <label for="check">Genügt eine einfache Sichtkontrolle im Rahmen des regelmäßigen Rundgangs?</label>
  41. <select name="check" id="check">
  42. <option value="-">-</option>
  43. <option value="0">Nein</option>
  44. <option value="1">Ja</option>
  45. </select>
  46. <label for="cycle">Aktueller Zyklus (in Monaten)</label>
  47. {% if initialDinAsset is not null %}
  48. <input name="cycle" type="number" id="cycle" value="{{ initialDinAsset.cycleMonthsRecommended }}" min="{{ initialDinAsset.cycleMonthsMin }}" max ="{{ initialDinAsset.cycleMonthsMax }}">
  49. {% else %}
  50. <input name="cycle" type="number" id="cycle" disabled>
  51. {% endif %}
  52. <label for="bandwidth">Bandbreite Anlage</label>
  53. <select name="bandwidth" id="bandwidth">
  54. {% for key, benchmarkValue in benchmarkValues %}
  55. <option value="{{ key }}">{{ benchmarkValue }}</option>
  56. {% endfor %}
  57. </select>
  58. </form>
  59. {% endblock %}