86 lines
4.5 KiB
HTML
86 lines
4.5 KiB
HTML
{% extends 'layouts/layout_dog.html' %}
|
|
|
|
{% block page_body %}
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/user_company.bundle.css') }}">
|
|
|
|
{% set company = model.companies[0] %}
|
|
|
|
<form id="{{ model.ID_FORM_FILTERS }}" class="{{ model.FLAG_FILTER }} {{ model.FLAG_ROW }} {{ model.FLAG_CARD }}">
|
|
{{ model.form_filters.hidden_tag() }}
|
|
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_COLUMN }}">
|
|
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_ROW }}">
|
|
<div class="{{ model.FLAG_CONTAINER_INPUT }} {{ model.FLAG_COLUMN }} {{ model.FLAG_FILTER }} {{ model.FLAG_SEARCH }}">
|
|
{{ model.form_filters.search.label }}
|
|
{{ model.form_filters.search() }}
|
|
{% for error in model.form_filters.search.errors %}
|
|
<p class="error">{{ error }}</p>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="{{ model.FLAG_CONTAINER_INPUT }} {{ model.FLAG_COLUMN }} {{ model.FLAG_FILTER }} {{ model.FLAG_ACTIVE_ONLY }}" {{ model.ATTR_VALUE_PREVIOUS }}="{{ model.form_filters.active_only.data }}">
|
|
{{ model.form_filters.active_only.label }}
|
|
{{ model.form_filters.active_only() }}
|
|
{% for error in model.form_filters.active_only.errors %}
|
|
<p class="error">{{ error }}</p>
|
|
{% endfor %}
|
|
{% set class_name = model.FLAG_FILTER + ' ' + model.FLAG_ACTIVE_ONLY + ' ' + model.FLAG_CHECKBOX %}
|
|
{% include 'components/common/buttons/_icon_checkbox.html' %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<div class="{{ model.FLAG_SAVE }} {{ model.FLAG_CANCEL }} {{ model.FLAG_CONTAINER }} {{ model.FLAG_COLUMN }}">
|
|
<div class="{{ model.FLAG_ROW }}">
|
|
<div class="{{ model.FLAG_COLUMN }}">
|
|
<div class="{{ model.FLAG_CONTAINER_INPUT }}">
|
|
{% set block_id = 'button_save' %}
|
|
{% include 'components/common/buttons/_buttons_save_cancel.html' %}
|
|
</div>
|
|
</div>
|
|
<div class="{{ model.FLAG_COLUMN }}">
|
|
<div class="{{ model.FLAG_CONTAINER_INPUT }}">
|
|
{% set block_id = 'button_cancel' %}
|
|
{% include 'components/common/buttons/_buttons_save_cancel.html' %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="{{ model.FLAG_USER }} {{ model.FLAG_CARD }} {{ model.FLAG_CONTAINER }} {{ model.FLAG_COLUMN }}" {{ model.ATTR_ID_COMPANY }}="{{ company.id_company }}">
|
|
<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_NAME }}">Name</label>
|
|
<input type="text" id="{{ model.FLAG_NAME }}" name="{{ model.FLAG_NAME }}" value="{{ company.name }}"
|
|
{{ model.ATTR_VALUE_PREVIOUS }}="{{ company.name }}" {{ model.ATTR_VALUE_CURRENT }}="{{ company.name }}" />
|
|
</div>
|
|
</div>
|
|
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_ROW }}">
|
|
<div class="{{ model.FLAG_CONTAINER_INPUT }} {{ model.FLAG_COLUMN }}">
|
|
<label for="{{ model.FLAG_WEBSITE }}">Website</label>
|
|
<textarea id="{{ model.FLAG_WEBSITE }}" name="{{ model.FLAG_WEBSITE }}" rows="4"
|
|
{{ model.ATTR_VALUE_PREVIOUS }}="{{ model.format_null_string_as_blank(company.website)|escape }}" {{ model.ATTR_VALUE_CURRENT }}="{{ model.format_null_string_as_blank(company.website)|escape }}"
|
|
>{{ model.format_null_string_as_blank(company.website) }}</textarea>
|
|
</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>
|
|
</script>
|
|
{% endblock %}
|