This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
devicehub-teal/ereuse_devicehub/templates/inventory/actions.html

55 lines
1.9 KiB
HTML
Raw Permalink Normal View History

2022-01-03 12:40:30 +00:00
<div class="modal fade" id="actionModal" tabindex="-1" style="display: none;" aria-hidden="true">
2022-02-03 10:53:18 +00:00
<div class="modal-dialog modal-lg">
2022-01-03 12:40:30 +00:00
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">New Action <span id="title-action"></span></h5>
2022-01-03 12:40:30 +00:00
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form action="{{ url_for('inventory.action_add') }}" method="post">
{{ form_new_action.csrf_token }}
2022-01-03 12:40:30 +00:00
<div class="modal-body">
{% for field in form_new_action %}
{% if field != form_new_action.csrf_token %}
{% if field == form_new_action.devices %}
2022-02-03 12:58:54 +00:00
<div class="col-12">
{{ field.label(class_="form-label") }}: <span class="devices-count"></span>
2022-02-03 13:05:15 +00:00
{{ field(class_="devicesList") }}
<p class="text-danger pol">
2022-02-03 12:58:54 +00:00
You need select first some device before to do one action
</p>
<p class="enumeration-devices"></p>
</div>
{% elif field == form_new_action.lot %}
{{ field }}
2022-01-10 12:07:05 +00:00
{% elif field == form_new_action.type %}
{{ field }}
{% else %}
<div class="col-12">
{{ field.label(class_="form-label") }}
{{ field(class_="form-control") }}
{% if field.errors %}
<p class="text-danger">
{% for error in field.errors %}
{{ error }}<br/>
{% endfor %}
</p>
{% endif %}
</div>
{% endif %}
{% endif %}
{% endfor %}
2022-01-03 12:40:30 +00:00
</div>
2022-01-03 12:40:30 +00:00
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<input type="submit" class="btn btn-primary" style="display: none;" value="Create" />
2022-01-03 12:40:30 +00:00
</div>
</form>
</div>
</div>
</div>