Feat: Assessment page completed with save method combining Assessment, Distraction, Assessment Command Modality Link, and Assessment Response save for creating new complete Assessnent.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
{% if is_blank_row %}
|
||||
<tr class="{{ model.FLAG_ROW_NEW }} {{ model.FLAG_ASSESSMENT_COMMAND_MODALITY_LINK }}" {{ model.ATTR_ID_ASSESSMENT }}>
|
||||
<tr class="{{ model.FLAG_ROW_NEW }} {{ model.FLAG_ASSESSMENT_COMMAND_MODALITY_LINK }}" {{ model.ATTR_ID_ASSESSMENT_COMMAND_MODALITY_LINK }}>
|
||||
<td class="{{ model.FLAG_COMMAND_CATEGORY }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_command_category.html' %}
|
||||
</td>
|
||||
@@ -13,9 +13,9 @@
|
||||
<td class="{{ model.FLAG_BRIBE }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_bribe.html' %}
|
||||
</td>
|
||||
<td class="{{ model.FLAG_DISTANCE_FROM_HANDLER }}">
|
||||
<td class="{{ model.FLAG_DISTANCE_FROM_HANDLER_METRES }}">
|
||||
<input type="number" min="0" step="0.01"
|
||||
class="{{ model.FLAG_DISTANCE_FROM_HANDLER }}"
|
||||
class="{{ model.FLAG_DISTANCE_FROM_HANDLER_METRES }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }}="0" {{ model.ATTR_VALUE_PREVIOUS }}="0"
|
||||
value="0" />
|
||||
</td>
|
||||
@@ -60,7 +60,7 @@
|
||||
{% include 'components/dog/_td_active.html' %}
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr class="{{ model.FLAG_ASSESSMENT_COMMAND_MODALITY_LINK }}" {{ model.ATTR_ID_ASSESSMENT }}="{{ link.id_link }}">
|
||||
<tr class="{{ model.FLAG_ASSESSMENT_COMMAND_MODALITY_LINK }}" {{ model.ATTR_ID_ASSESSMENT_COMMAND_MODALITY_LINK }}="{{ link.id_link }}">
|
||||
{% set command_preview = link.command %}
|
||||
{% set command_category_preview = command_preview.command_category %}
|
||||
<td class="{{ model.FLAG_COMMAND_CATEGORY }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
@@ -77,12 +77,12 @@
|
||||
<td class="{{ model.FLAG_BRIBE }} {{ model.FLAG_DDL_PREVIEW }}">
|
||||
{% include 'components/dog/_preview_DDL_bribe.html' %}
|
||||
</td>
|
||||
<td class="{{ model.FLAG_DISTANCE_FROM_HANDLER }}">
|
||||
<td class="{{ model.FLAG_DISTANCE_FROM_HANDLER_METRES }}">
|
||||
<input type="number" min="0" step="0.01"
|
||||
class="{{ model.FLAG_DISTANCE_FROM_HANDLER }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }}="{{ link.distance_from_handler }}"
|
||||
{{ model.ATTR_VALUE_PREVIOUS }}="{{ link.distance_from_handler }}"
|
||||
value="{{ link.distance_from_handler }}" />
|
||||
class="{{ model.FLAG_DISTANCE_FROM_HANDLER_METRES }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }}="{{ link.distance_from_handler_metres }}"
|
||||
{{ model.ATTR_VALUE_PREVIOUS }}="{{ link.distance_from_handler_metres }}"
|
||||
value="{{ link.distance_from_handler_metres }}" />
|
||||
</td>
|
||||
<td class="{{ model.FLAG_IS_IN_HEARING_RANGE_OF_HANDLER }}">
|
||||
<input type="checkbox"
|
||||
|
||||
Reference in New Issue
Block a user