Feat(SQL, UI): 1. Calc and Get Many Stored Procedures created for Weather, Lighting Level, Assessment, Distraction Type, Distraction Intensity Level, Distraction, Bribe, Assessment Command Modality Link, Response Quality Metric, Obedience Level, and Assessment Response. \n 2. Assessments and Assessment pages created with data loading and hooked up, but not saving.
This commit is contained in:
63
templates/components/dog/_row_assessment.html
Normal file
63
templates/components/dog/_row_assessment.html
Normal file
@@ -0,0 +1,63 @@
|
||||
|
||||
{% 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' %}
|
||||
{% 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 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' %}
|
||||
{% set active = assessment.active %}
|
||||
{% include 'components/dog/_td_active.html' %}
|
||||
</tr>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user