62 lines
3.6 KiB
HTML
62 lines
3.6 KiB
HTML
{% extends 'layouts/layout_dog.html' %}
|
|
|
|
{% block page_body %}
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/dog_assessments.bundle.css') }}">
|
|
|
|
{% set user = model.users[0] %}
|
|
<div class="{{ model.FLAG_USER }} {{ model.FLAG_CARD }} {{ model.FLAG_CONTAINER }} {{ model.FLAG_COLUMN }}" {{ model.ATTR_ID_USER }}="{{ user.id_user }}">
|
|
<div class="{{ model.FLAG_CONTAINER }}">
|
|
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_ROW }}">
|
|
<div class="{{ model.FLAG_CONTAINER_INPUT }} {{ model.FLAG_COLUMN }}">
|
|
<label for="{{ model.FLAG_FIRSTNAME }}">Firstname</label>
|
|
<input type="text" id="{{ model.FLAG_FIRSTNAME }}" name="{{ model.FLAG_FIRSTNAME }}" value="{{ user.firstname }}" />
|
|
</div>
|
|
</div>
|
|
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_ROW }}">
|
|
<div class="{{ model.FLAG_CONTAINER_INPUT }} {{ model.FLAG_COLUMN }}">
|
|
<label for="{{ model.FLAG_SURNAME }}">Surname</label>
|
|
<input type="text" id="{{ model.FLAG_SURNAME }}" name="{{ model.FLAG_SURNAME }}" value="{{ user.surname }}" />
|
|
</div>
|
|
</div>
|
|
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_ROW }}">
|
|
<div class="{{ model.FLAG_CONTAINER_INPUT }} {{ model.FLAG_COLUMN }}">
|
|
<label for="{{ model.FLAG_EMAIL }}">Email</label>
|
|
<input type="email" id="{{ model.FLAG_EMAIL }}" name="{{ model.FLAG_EMAIL }}" value="{{ user.email }}" />
|
|
</div>
|
|
</div>
|
|
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_ROW }}">
|
|
<div class="{{ model.FLAG_CONTAINER_INPUT }} {{ model.FLAG_COLUMN }}">
|
|
<label for="{{ model.ATTR_ID_COMPANY }}">Company</label>
|
|
<div class="{{ model.ATTR_ID_COMPANY }}" {{ model.ATTR_VALUE_CURRENT }}="{{ user.id_company }}" {{ model.ATTR_VALUE_PREVIOUS }}="{{ user.id_company }}">
|
|
{{ user.company.name }} - {{ user.company.website }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% include 'components/common/temporary/_overlay_confirm.html' %}
|
|
{% include 'components/common/temporary/_overlay_error.html' %}
|
|
|
|
<div id="{{ model.ID_CONTAINER_TEMPLATE_ELEMENTS }}">
|
|
<!-- Active column -->
|
|
<!-- Delete -->
|
|
{% set class_name = '' %}
|
|
{% include 'components/common/buttons/_icon_trash.html' %}
|
|
<!-- Undelete -->
|
|
{% set class_name = model.FLAG_ACTIVE %}
|
|
{% set attribute_text = '' %}
|
|
{% include 'components/common/buttons/_icon_add.html' %}
|
|
</div>
|
|
|
|
<script>
|
|
var assessments = {{ model.convert_list_objects_to_dict_json_by_attribute_key_default(model.assessments) | tojson | safe }};
|
|
var filterLightingLevels = {{ model.convert_list_objects_to_dict_json_by_attribute_key_default(model.filter_lighting_levels) | tojson | safe }};
|
|
var filterLocations = {{ model.convert_list_objects_to_dict_json_by_attribute_key_default(model.filter_locations) | tojson | safe }};
|
|
var filterUserHandlers = {{ model.convert_list_objects_to_dict_json_by_attribute_key_default(model.filter_user_handlers) | tojson | safe }};
|
|
var filterWeathers = {{ model.convert_list_objects_to_dict_json_by_attribute_key_default(model.filter_weathers) | tojson | safe }};
|
|
var flagTemperatureCelcius = "{{ model.FLAG_TEMPERATURE_CELCIUS }}";
|
|
var flagUserHandler = "{{ model.FLAG_USER_HANDLER }}";
|
|
</script>
|
|
{% endblock %}
|