Set arrays to start empty in edit interface

This commit is contained in:
David Taylor
2015-08-10 18:05:09 +03:00
committed by Tom Price
parent 33958d0670
commit 45c020828f

View File

@@ -21,10 +21,11 @@
<form name="theForm" ng-submit="onSubmit(theForm)">
<div sf-schema="schema" sf-form="form" sf-model="model"
sf-options=" { formDefaults: { startEmpty: true,
{% if not edit %}
sf-options="{ formDefaults: { readonly: true } }"
readonly: true,
{% endif %}
></div>
} }"></div>
{% if edit %}
<input class="btn btn-primary" type="submit" value="Save">