load data fields for type selected by default option on form startup
This commit is contained in:
parent
5b87a574c4
commit
fc1c071ad8
1 changed files with 6 additions and 2 deletions
|
@ -104,14 +104,18 @@
|
|||
view.getTypesVocabulary((qualifier,))"
|
||||
tal:content="type/title"
|
||||
tal:attributes="value type/token;
|
||||
selected python:
|
||||
type.token == typeToken">
|
||||
selected python:type.token == typeToken">
|
||||
Note
|
||||
</option>
|
||||
</select>
|
||||
<input type="hidden" name="form.type"
|
||||
tal:condition="fixedType"
|
||||
tal:attributes="value typeToken" />
|
||||
<script type="text/javascript"
|
||||
tal:content="string:replaceFieldsNode(
|
||||
'form.fields', 'form.type',
|
||||
'${view/url}/$innerForm')">
|
||||
</script>
|
||||
</th></tr></tbody>
|
||||
|
||||
<tbody><tr><td colspan="5">
|
||||
|
|
Loading…
Add table
Reference in a new issue