46 lines
2.3 KiB
HTML
46 lines
2.3 KiB
HTML
|
|
{% if is_blank_row %}
|
|
<tr class="{{ model.FLAG_ROW_NEW }} {{ model.FLAG_DOG }}" {{ model.ATTR_ID_DOG }}>
|
|
<td class="{{ model.FLAG_NAME }}">
|
|
<input type="text" class="{{ model.FLAG_NAME }}"
|
|
{{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }} />
|
|
</td>
|
|
<td class="{{ model.FLAG_APPEARANCE }}">
|
|
<textarea class="{{ model.FLAG_APPEARANCE }}"
|
|
{{ model.ATTR_VALUE_CURRENT }}="" {{ model.ATTR_VALUE_PREVIOUS }}=""
|
|
></textarea>
|
|
</td>
|
|
<td class="{{ model.FLAG_MASS_KG }}">
|
|
<input type="number" min="0" step="0.001" class="{{ model.FLAG_MASS_KG }}"
|
|
{{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }} />
|
|
</td>
|
|
{% include 'components/dog/_td_notes.html' %}
|
|
{% set active = True %}
|
|
{% include 'components/dog/_td_active.html' %}
|
|
</tr>
|
|
{% else %}
|
|
<tr class="{{ model.FLAG_DOG }}" {{ model.ATTR_ID_DOG }}="{{ dog.id_dog }}">
|
|
<td class="{{ model.FLAG_NAME }}">
|
|
<input type="text" class="{{ model.FLAG_NAME }}"
|
|
{{ model.ATTR_VALUE_CURRENT }}="{{ model.format_null_string_as_blank(dog.name)|escape }}"
|
|
{{ model.ATTR_VALUE_PREVIOUS }}="{{ model.format_null_string_as_blank(dog.name)|escape }}"
|
|
value="{{ model.format_null_string_as_blank(dog.name) }}" />
|
|
</td>
|
|
<td class="{{ model.FLAG_APPEARANCE }}">
|
|
<textarea class="{{ model.FLAG_APPEARANCE }}"
|
|
{{ model.ATTR_VALUE_CURRENT }}="{{ model.format_null_string_as_blank(dog.appearance)|escape }}" {{ model.ATTR_VALUE_PREVIOUS }}="{{ model.format_null_string_as_blank(dog.appearance)|escape }}"
|
|
>{{ model.format_null_string_as_blank(dog.appearance) }}</textarea>
|
|
</td>
|
|
<td class="{{ model.FLAG_MASS_KG }}">
|
|
<input type="number" min="0" step="0.001" class="{{ model.FLAG_MASS_KG }}"
|
|
{{ model.ATTR_VALUE_CURRENT }}="{{ dog.mass_kg }}"
|
|
{{ model.ATTR_VALUE_PREVIOUS }}="{{ dog.mass_kg }}"
|
|
value="{{ dog.mass_kg }}" />
|
|
</td>
|
|
{% set notes = dog.notes %}
|
|
{% include 'components/dog/_td_notes.html' %}
|
|
{% set active = dog.active %}
|
|
{% include 'components/dog/_td_active.html' %}
|
|
</tr>
|
|
{% endif %}
|