-
Notifications
You must be signed in to change notification settings - Fork 0
/
manage_addzmssqldbform.zpt
62 lines (62 loc) · 3.45 KB
/
manage_addzmssqldbform.zpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<tal:block tal:define="global
dummy0 python:request.set('ZMS_INSERT','ZMSSqlDb');
dummy0 python:request.set('fmName',request.get('fmName','form0'));
dummy0 python:here.zmi_page_request(here,request)">
<form class="form-horizontal form-insert" id="form0" name="form0" tal:attributes="action python:'%s/manage_addZMSSqlDb'%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="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']" />
<div class="form-group" id="tr_connection_id">
<label for="connection_id" class="col-lg-2 control-label mandatory">
<span>Connection ID</span>
</label>
<div class="col-lg-10">
<div class="btn-group">
<input type="hidden" id="connection_id" name="connection_id" tal:attributes="value python:getattr(here,'connection_id','')"/>
<button type="button" class="btn btn-default"
tal:attributes="onclick python:'var url=$(\'span\',this).attr(\'data-url\')\073if(typeof url!=\'undefined\')window.open(url+\'/manage_main\')'"
tal:content="python:here.getZMILangStr('ACTION_SELECT')%'Connection ID'">Select option
</button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<tal:block tal:repeat="SQLConnectionID python:here.SQLConnectionIDs()">
<li>
<a href="#" tal:attributes="onclick python:'javascript:$(\'#connection_id\').val(\'%s\')\073$(\'button:first\',$(this).parents(\'.btn-group\')).html($(this).html())'%SQLConnectionID[1]">
<span tal:attributes="data-url python:getattr(here,SQLConnectionID[1]).absolute_url()">
<i class="icon-table fas fa-database"></i>
<tal:block tal:content="python:SQLConnectionID[1]">SQLConnectionID</tal:block>
</span>
</a>
</li>
</tal:block>
</ul>
</div><!-- .btn-group -->
</div><!-- .col-lg-10 -->
</div><!-- .form-group -->
<div class="form-group" id="tr_charset">
<label for="charset" class="col-lg-2 control-label mandatory">
<span>Charset</span>
</label>
<div class="col-lg-10">
<select class="form-control" name="charset">
<tal:block tal:repeat="charset python:here.enumManager.getValues('charset')">
<option tal:attributes="value python:charset[0]; selected python:['','selected'][int(charset[0]=='utf-8')]" tal:content="python:charset[1]">the charset</option>
</tal:block>
</select>
</div><!-- .col-lg-10 -->
</div><!-- .form-group -->
<div class="form-group" id="tr_model">
<label for="model" class="col-lg-2 control-label mandatory">
<span>Model</span>
</label>
<div class="col-lg-10">
<textarea class="form-control" name="model" tal:content="python:here.toXmlString([])">the model</textarea>
</div><!-- .col-lg-10 -->
</div><!-- .form-group -->
</form><!-- .form-horizontal -->
</tal:block>