|
- {% extends 'base.html.twig' %}
-
- {% block title %}MPP-Tool{% endblock %}
-
- {% block body %}
- <h1>MPP-Tool</h1>
- <p id="instruction">Bitte füllen sie alle Felder aus, um eine Risikoanalyse zu erstellen.</p>
- <form method="post" class="form form--catalogue">
- <label for="asset">Bitte wählen sie eine Anlage.</label>
- <select name="asset" id="asset">
- {% for asset in dinAssets %}
- <option value="{{ asset.id }}">{{ asset.dinNumber }} - {{ asset.name }}</option>
- {% endfor %}
- </select>
- <h2>Risikoanalyse</h2>
- <label for="failure">Wie hoch ist die Ausfallwahrscheinlichkeit?:</label>
- <select name="failure" id="failure">
- {% for key, failure in riskFailure %}
- <option value="{{ key }}">{{ failure[0] }}</option>
- {% endfor %}
- </select>
- <label for="costs">Wie hoch ist der Schaden bei Ausfall?</label>
- <select name="costs" id="costs">
- {% for key, costs in riskCosts %}
- <option value="{{ key }}">{{ costs[0] }}</option>
- {% endfor %}
- </select>
- <h2>Optimierungsckeck</h2>
- <label for="maintenance">Wird durch die Wartung der Abnutzungsvorrat positiv beeinflusst?</label>
- <select name="maintenance" id="maintenance">
- <option value="-">-</option>
- <option value="0">Nein</option>
- <option value="1">Ja</option>
- </select>
- <label for="inspection">Kann durch eine Inspektion der Zustand der Anlage erkannt werden?</label>
- <select name="inspection" id="inspection">
- <option value="-">-</option>
- <option value="0">Nein</option>
- <option value="1">Ja</option>
- </select>
- <label for="check">Genügt eine einfache Sichtkontrolle im Rahmen des regelmäßigen Rundgangs?</label>
- <select name="check" id="check">
- <option value="-">-</option>
- <option value="0">Nein</option>
- <option value="1">Ja</option>
- </select>
- <label for="cycle">Aktueller Zyklus (in Monaten)</label>
- {% if initialDinAsset is not null %}
- <input name="cycle" type="number" id="cycle" value="{{ initialDinAsset.cycleMonthsRecommended }}" min="{{ initialDinAsset.cycleMonthsMin }}" max ="{{ initialDinAsset.cycleMonthsMax }}">
- {% else %}
- <input name="cycle" type="number" id="cycle" disabled>
- {% endif %}
-
- <label for="bandwidth">Bandbreite Anlage</label>
- <select name="bandwidth" id="bandwidth">
- {% for key, benchmarkValue in benchmarkValues %}
- <option value="{{ key }}">{{ benchmarkValue }}</option>
- {% endfor %}
- </select>
-
- </form>
- {% endblock %}
|