load data fields for type selected by default option on form startup

This commit is contained in:
Helmut Merz 2011-06-24 16:09:24 +02:00
parent 5b87a574c4
commit fc1c071ad8

View file

@ -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">