mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-01 21:02:15 +00:00
Set arrays to start empty in edit interface
This commit is contained in:
@@ -21,10 +21,11 @@
|
|||||||
<form name="theForm" ng-submit="onSubmit(theForm)">
|
<form name="theForm" ng-submit="onSubmit(theForm)">
|
||||||
|
|
||||||
<div sf-schema="schema" sf-form="form" sf-model="model"
|
<div sf-schema="schema" sf-form="form" sf-model="model"
|
||||||
|
sf-options=" { formDefaults: { startEmpty: true,
|
||||||
{% if not edit %}
|
{% if not edit %}
|
||||||
sf-options="{ formDefaults: { readonly: true } }"
|
readonly: true,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
></div>
|
} }"></div>
|
||||||
|
|
||||||
{% if edit %}
|
{% if edit %}
|
||||||
<input class="btn btn-primary" type="submit" value="Save">
|
<input class="btn btn-primary" type="submit" value="Save">
|
||||||
|
|||||||
Reference in New Issue
Block a user