72 lines
3.6 KiB
HTML
72 lines
3.6 KiB
HTML
|
|
{% if is_blank_row %}
|
|
<tr class="{{ model.FLAG_ROW_NEW }} {{ model.FLAG_ASSESSMENT }}" {{ model.ATTR_ID_ASSESSMENT }}>
|
|
<td class="{{ model.FLAG_DETAIL }}">
|
|
<button class="{{ model.FLAG_DETAIL }} {{ model.FLAG_ASSESSMENT }}">Detail</button>
|
|
</td>
|
|
<td class="{{ model.FLAG_WEATHER }} {{ model.FLAG_DDL_PREVIEW }}">
|
|
{% include 'components/dog/_preview_DDL_weather.html' %}
|
|
</td>
|
|
<td class="{{ model.FLAG_LIGHTING_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
|
{% include 'components/dog/_preview_DDL_lighting_level.html' %}
|
|
</td>
|
|
<td class="{{ model.FLAG_TEMPERATURE_CELCIUS }}">
|
|
<input type="number" min="-273" step="0.1"
|
|
class="{{ model.FLAG_TEMPERATURE_CELCIUS }}"
|
|
{{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }} value="22"/>
|
|
</td>
|
|
<td class="{{ model.FLAG_LOCATION }} {{ model.FLAG_DDL_PREVIEW }}">
|
|
{% include 'components/dog/_preview_DDL_location.html' %}
|
|
</td>
|
|
{% set attribute_text = model.FLAG_USER_HANDLER %}
|
|
<td class="{{ model.FLAG_USER_HANDLER }} {{ model.FLAG_DDL_PREVIEW }}">
|
|
{% include 'components/dog/_preview_DDL_user.html' %}
|
|
</td>
|
|
{% include 'components/dog/_td_notes.html' %}
|
|
<td class="{{ model.FLAG_START_ON }}"></td>
|
|
{% set active = True %}
|
|
{% include 'components/dog/_td_active.html' %}
|
|
</tr>
|
|
{% else %}
|
|
<tr class="{{ model.FLAG_ASSESSMENT }}" {{ model.ATTR_ID_ASSESSMENT }}="{{ assessment.id_assessment }}">
|
|
<td class="{{ model.FLAG_DETAIL }}">
|
|
<button class="{{ model.FLAG_DETAIL }} {{ model.FLAG_ASSESSMENT }}">Detail</button>
|
|
</td>
|
|
{% set assessment_type_preview = assessment.assessment_type %}
|
|
<td class="{{ model.FLAG_ASSESSMENT_TYPE }} {{ model.FLAG_DDL_PREVIEW }}">
|
|
{% include 'components/dog/_preview_DDL_assessment_type.html' %}
|
|
</td>
|
|
{#
|
|
{% set weather_preview = assessment.weather %}
|
|
<td class="{{ model.FLAG_WEATHER }} {{ model.FLAG_DDL_PREVIEW }}">
|
|
{% include 'components/dog/_preview_DDL_weather.html' %}
|
|
</td>
|
|
{% set lighting_level_preview = assessment.lighting_level %}
|
|
<td class="{{ model.FLAG_LIGHTING_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
|
{% include 'components/dog/_preview_DDL_lighting_level.html' %}
|
|
</td>
|
|
<td class="{{ model.FLAG_TEMPERATURE_CELCIUS }}">
|
|
<input type="number" min="-273" step="0.1"
|
|
class="{{ model.FLAG_TEMPERATURE_CELCIUS }}"
|
|
{{ model.ATTR_VALUE_CURRENT }}="{{ assessment.temperature_celcius }}"
|
|
{{ model.ATTR_VALUE_PREVIOUS }}="{{ assessment.temperature_celcius }}"
|
|
value="{{ assessment.temperature_celcius }}" />
|
|
</td>
|
|
#}
|
|
{% set location_preview = assessment.location %}
|
|
<td class="{{ model.FLAG_LOCATION }} {{ model.FLAG_DDL_PREVIEW }}">
|
|
{% include 'components/dog/_preview_DDL_location.html' %}
|
|
</td>
|
|
{% set user_preview = assessment.user_handler %}
|
|
{% set attribute_text = model.FLAG_USER_HANDLER %}
|
|
<td class="{{ model.FLAG_USER_HANDLER }} {{ model.FLAG_DDL_PREVIEW }}">
|
|
{% include 'components/dog/_preview_DDL_user.html' %}
|
|
</td>
|
|
{% set notes = assessment.notes %}
|
|
{% include 'components/dog/_td_notes.html' %}
|
|
<td class="{{ model.FLAG_START_ON }}">{{ model.format_datetime_text(assessment.start_on) }}</td>
|
|
{% set active = assessment.active %}
|
|
{% include 'components/dog/_td_active.html' %}
|
|
</tr>
|
|
{% endif %}
|