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

72 行
3.3 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" id="form-risk" 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="0">Nein</option>
  31. <option value="1">Ja</option>
  32. </select>
  33. <label for="inspection">Kann durch eine Inspektion der Zustand der Anlage erkannt werden?</label>
  34. <select name="inspection" id="inspection">
  35. <option value="0">Nein</option>
  36. <option value="1">Ja</option>
  37. </select>
  38. <label for="check">Genügt eine einfache Sichtkontrolle im Rahmen des regelmäßigen Rundgangs?</label>
  39. <select name="check" id="check">
  40. <option value="0">Nein</option>
  41. <option value="1">Ja</option>
  42. </select>
  43. <label for="cycle">Aktueller Zyklus (in Monaten)</label>
  44. {% if initialDinAsset is not null %}
  45. <input name="cycle" type="number" id="cycle" value="" min="{{ initialDinAsset.cycleMonthsMin }}" max ="{{ initialDinAsset.cycleMonthsMax }}">
  46. {% else %}
  47. <input name="cycle" type="number" id="cycle" disabled>
  48. {% endif %}
  49. <label for="benchmark">Bandbreite Anlage</label>
  50. <select name="benchmark" id="benchmark">
  51. {% for key, benchmarkValue in benchmarkValues %}
  52. <option value="{{ key }}">{{ benchmarkValue }}</option>
  53. {% endfor %}
  54. </select>
  55. <span class="btn" id="calculate">Berechnen</span>
  56. <dl>
  57. <dt>Inspektion (empfohlener Zyklus in Monaten)</dt>
  58. <dd id="resInspection"></dd>
  59. <dt>Wartung (empfohlener Zyklus in Monaten)</dt>
  60. <dd id="resMaintenance"></dd>
  61. <dt>Kostenersparnis in Prozent</dt>
  62. <dd id="resPercentage"></dd>
  63. <dt>Kostenersparnis in Euro</dt>
  64. <dd id="resEuro"></dd>
  65. </dl>
  66. <span class="btn" id="worksheet">Arbeitskarte erstellen</span>
  67. </form>
  68. {% endblock %}