-
Notifications
You must be signed in to change notification settings - Fork 0
/
manage_addzmscustomform.zpt
22 lines (22 loc) · 1.49 KB
/
manage_addzmscustomform.zpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<tal:block tal:define="global
meta_id python:here.getMetaobjId(request['custom']);
metaObj python:here.getMetaobj(meta_id);
metaObjIds python:here.getMetaobjIds();
dummy0 python:request.set('ZMS_INSERT',meta_id);
dummy0 python:request.set('fmName',request.get('fmName','form0'));
dummy0 python:here.zmi_page_request(here,request)">
<div class="zmi properties">
<form class="form-horizontal form-insert" id="form0" name="form0" tal:attributes="action python:'%s/manage_addZMSCustom'%request['URL1'][len(request['BASE0']):]" method="post" enctype="multipart/form-data">
<input type="hidden" id="lang" name="lang" tal:attributes="value python:request['lang']" />
<input type="hidden" id="preview" name="preview" tal:attributes="value python:request['preview']" />
<input type="hidden" name="meta_id" tal:attributes="value python:meta_id" />
<input type="hidden" name="form_id" tal:attributes="value python:DateTime().timeTime()" />
<input type="hidden" name="id_prefix" tal:attributes="value python:request['id_prefix']" />
<input type="hidden" name="_sort_id:int" tal:attributes="value python:request['_sort_id']" />
<input type="hidden" name="ZMS_INSERT" tal:attributes="value python:request['ZMS_INSERT']" />
<tal:block tal:condition="not:python:metaObj['type']=='ZMSRecordSet'" tal:content="structure python:here.obj_input_fields(action='insert',meta_id=meta_id)">
the input-fields
</tal:block>
</form><!-- .form-horizontal -->
</div><!-- .zmi.properties -->
</tal:block>