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:
93
templates/components/dog/_row_distraction.html
Normal file
93
templates/components/dog/_row_distraction.html
Normal file
@@ -0,0 +1,93 @@
|
||||
|
||||
{% if is_blank_row %}
|
||||
<tr class="{{ model.FLAG_ROW_NEW }} {{ model.FLAG_DISTRACTION }}" {{ model.ATTR_ID_DISTRACTION }}>
|
||||
<td class="{{ model.FLAG_DISTRACTION_TYPE }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_type.html' %}
|
||||
</td>
|
||||
{% set attribute_text = model.FLAG_DISTRACTION_INTENSITY_LEVEL_EMOTIONAL %}
|
||||
<td class="{{ model.FLAG_DISTRACTION_INTENSITY_LEVEL_EMOTIONAL }} {{ model.FLAG_DISTRACTION_INTENSITY_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_intensity_level.html' %}
|
||||
</td>
|
||||
{% set attribute_text = model.FLAG_DISTRACTION_INTENSITY_LEVEL_SCENT %}
|
||||
<td class="{{ model.FLAG_DISTRACTION_INTENSITY_LEVEL_SCENT }} {{ model.FLAG_DISTRACTION_INTENSITY_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_intensity_level.html' %}
|
||||
</td>
|
||||
{% set attribute_text = model.FLAG_DISTRACTION_INTENSITY_LEVEL_SIGHT %}
|
||||
<td class="{{ model.FLAG_DISTRACTION_INTENSITY_LEVEL_SIGHT }} {{ model.FLAG_DISTRACTION_INTENSITY_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_intensity_level.html' %}
|
||||
</td>
|
||||
{% set attribute_text = model.FLAG_DISTRACTION_INTENSITY_LEVEL_SOUND %}
|
||||
<td class="{{ model.FLAG_DISTRACTION_INTENSITY_LEVEL_SOUND }} {{ model.FLAG_DISTRACTION_INTENSITY_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_intensity_level.html' %}
|
||||
</td>
|
||||
{% set attribute_text = model.FLAG_DISTRACTION_INTENSITY_LEVEL_TOUCH %}
|
||||
<td class="{{ model.FLAG_DISTRACTION_INTENSITY_LEVEL_TOUCH }} {{ model.FLAG_DISTRACTION_INTENSITY_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_intensity_level.html' %}
|
||||
</td>
|
||||
<td class="{{ model.FLAG_QUANTITY }}">
|
||||
<input type="number" min="0" step="1"
|
||||
class="{{ model.FLAG_QUANTITY }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }}="1" {{ model.ATTR_VALUE_PREVIOUS }}="1"
|
||||
value="1" />
|
||||
</td>
|
||||
<td class="{{ model.FLAG_PROXIMITY_METRES }}">
|
||||
<input type="number" min="0" step="1"
|
||||
class="{{ model.FLAG_PROXIMITY_METRES }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }}="0" {{ model.ATTR_VALUE_PREVIOUS }}="0"
|
||||
value="0" />
|
||||
</td>
|
||||
{% include 'components/dog/_td_notes.html' %}
|
||||
{% set active = True %}
|
||||
{% include 'components/dog/_td_active.html' %}
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr class="{{ model.FLAG_DISTRACTION }}" {{ model.ATTR_ID_DISTRACTION }}="{{ distraction.id_distraction }}">
|
||||
{% set distraction_type_preview = distraction.distraction_type %}
|
||||
<td class="{{ model.FLAG_DISTRACTION_TYPE }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_type.html' %}
|
||||
</td>
|
||||
{% set intensity_level_preview = distraction.intensity_level_emotional %}
|
||||
{% set attribute_text = model.FLAG_DISTRACTION_INTENSITY_LEVEL_EMOTIONAL %}
|
||||
<td class="{{ model.FLAG_DISTRACTION_INTENSITY_LEVEL_EMOTIONAL }} {{ model.FLAG_DISTRACTION_INTENSITY_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_intensity_level.html' %}
|
||||
</td>
|
||||
{% set intensity_level_preview = distraction.intensity_level_scent %}
|
||||
{% set attribute_text = model.FLAG_DISTRACTION_INTENSITY_LEVEL_SCENT %}
|
||||
<td class="{{ model.FLAG_DISTRACTION_INTENSITY_LEVEL_SCENT }} {{ model.FLAG_DISTRACTION_INTENSITY_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_intensity_level.html' %}
|
||||
</td>
|
||||
{% set intensity_level_preview = distraction.intensity_level_sight %}
|
||||
{% set attribute_text = model.FLAG_DISTRACTION_INTENSITY_LEVEL_SIGHT %}
|
||||
<td class="{{ model.FLAG_DISTRACTION_INTENSITY_LEVEL_SIGHT }} {{ model.FLAG_DISTRACTION_INTENSITY_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_intensity_level.html' %}
|
||||
</td>
|
||||
{% set intensity_level_preview = distraction.intensity_level_sound %}
|
||||
{% set attribute_text = model.FLAG_DISTRACTION_INTENSITY_LEVEL_SOUND %}
|
||||
<td class="{{ model.FLAG_DISTRACTION_INTENSITY_LEVEL_SOUND }} {{ model.FLAG_DISTRACTION_INTENSITY_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_intensity_level.html' %}
|
||||
</td>
|
||||
{% set intensity_level_preview = distraction.intensity_level_touch %}
|
||||
{% set attribute_text = model.FLAG_DISTRACTION_INTENSITY_LEVEL_TOUCH %}
|
||||
<td class="{{ model.FLAG_DISTRACTION_INTENSITY_LEVEL_TOUCH }} {{ model.FLAG_DISTRACTION_INTENSITY_LEVEL }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_distraction_intensity_level.html' %}
|
||||
</td>
|
||||
<td class="{{ model.FLAG_QUANTITY }}">
|
||||
<input type="number" min="0" step="1"
|
||||
class="{{ model.FLAG_QUANTITY }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }}="{{ distraction.quantity }}"
|
||||
{{ model.ATTR_VALUE_PREVIOUS }}="{{ distraction.quantity }}"
|
||||
value="{{ distraction.quantity }}" />
|
||||
</td>
|
||||
<td class="{{ model.FLAG_PROXIMITY_METRES }}">
|
||||
<input type="number" min="0" step="1"
|
||||
class="{{ model.FLAG_PROXIMITY_METRES }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }}="{{ distraction.proximity_metres }}"
|
||||
{{ model.ATTR_VALUE_PREVIOUS }}="{{ distraction.proximity_metres }}"
|
||||
value="{{ distraction.proximity_metres }}" />
|
||||
</td>
|
||||
{% set notes = distraction.notes %}
|
||||
{% include 'components/dog/_td_notes.html' %}
|
||||
{% set active = distraction.active %}
|
||||
{% include 'components/dog/_td_active.html' %}
|
||||
</tr>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user