elinput.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="{{$.lp.base}}" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">{{$.lp.id}}:</td>
  6. <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">{{$.lp.name}}:</td>
  10. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">{{$.lp.description}}:</td>
  14. <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">{{$.lp.readonly}}:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
  20. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
  21. </td>
  22. </tr>
  23. </table>
  24. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  25. <tr>
  26. <td class="editTableTitle">{{$.lp.type}}:</td>
  27. <td class="editTableValue">
  28. <div style="width: 140px; float: left"><input onclick="if (this.checked){
  29. $('text{$.pid}textareaOptionArea').setStyle('display', 'none');
  30. $('text{$.pid}resultType').setStyle('display', 'none');
  31. }" type="radio" name="inputType" value="text" text{(!$.inputType || $.inputType=='text')?'checked':''}/>{{$.lp.text}}(text)</div>
  32. <div style="width: 140px; float: left"><input onclick="if (this.checked){
  33. $('text{$.pid}textareaOptionArea').setStyle('display', 'block');
  34. $('text{$.pid}resultType').setStyle('display', 'none');
  35. }" type="radio" name="inputType" value="textarea" text{($.inputType=='textarea')?'checked':''}/>{{$.lp.textarea}}(textarea)</div>
  36. <div style="width: 140px; float: left"><input onclick="if (this.checked){
  37. $('text{$.pid}textareaOptionArea').setStyle('display', 'none');
  38. $('text{$.pid}resultType').setStyle('display', '');
  39. }" type="radio" name="inputType" value="number" text{($.inputType=='number')?'checked':''}/>{{$.lp.number}}(number)</div>
  40. <div style="width: 140px; float: left"><input onclick="if (this.checked){
  41. $('text{$.pid}textareaOptionArea').setStyle('display', 'none');
  42. $('text{$.pid}resultType').setStyle('display', 'none');
  43. }" type="radio" name="inputType" value="password" text{($.inputType=='password')?'checked':''}/>{{$.lp.password}}(password)</div>
  44. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="search" text{($.inputType=='search')?'checked':''}/>{{$.lp.search}}(search)</div>-->
  45. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="color" text{($.inputType=='color')?'checked':''}/>{{$.lp.color}}(color)</div>-->
  46. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="email" text{($.inputType=='email')?'checked':''}/>{{$.lp.email}}(email)</div>-->
  47. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="date" text{($.inputType=='date')?'checked':''}/>{{$.lp.date}}(date)</div>-->
  48. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="month" text{($.inputType=='month')?'checked':''}/>{{$.lp.month}}(month)</div>-->
  49. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="time" text{($.inputType=='time')?'checked':''}/>{{$.lp.time}}(time)</div>-->
  50. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="datetime-local" text{($.inputType=='datetime-local')?'checked':''}/>{{$.lp["datetime-local"]}}(datetime-local)</div>-->
  51. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="week" text{($.inputType=='week')?'checked':''}/>{{$.lp.week}}(week)</div>-->
  52. </td>
  53. </tr>
  54. <tr id="text{$.pid}resultType" style="display: text{($.inputType==='number')?'':'none'}">
  55. <td class="editTableTitle">{{$.lp.resultType}}:</td>
  56. <td class="editTableValue">
  57. <input type="radio" name="resultType" value="string" text{($.resultType!=='number')?'checked':''}/>{{$.lp.text}}
  58. <input type="radio" name="resultType" value="number" text{($.resultType==='number')?'checked':''}/>{{$.lp.number}}
  59. </td>
  60. </tr>
  61. <tr>
  62. <td class="editTableTitle">{{$.lp.maxlength}}:</td>
  63. <td class="editTableValue"><input type="text" name="maxlength" value="text{$.maxlength}" class="editTableInput"/></td>
  64. </tr>
  65. <tr>
  66. <td class="editTableTitle">{{$.lp.wordNumber}}:</td>
  67. <td class="editTableValue">
  68. <input type="radio" name="showWordLimit" value="true" text{($.showWordLimit===true)?'checked':''}/>{{$.lp.yes}}
  69. <input type="radio" name="showWordLimit" value="false" text{($.showWordLimit!==true)?'checked':''}/>{{$.lp.no}}
  70. </td>
  71. </tr>
  72. <tr>
  73. <td class="editTableTitle">{{$.lp.clearable}}:</td>
  74. <td class="editTableValue">
  75. <input type="radio" name="clearable" value="true" text{($.clearable===true)?'checked':''}/>{{$.lp.yes}}
  76. <input type="radio" name="clearable" value="false" text{($.clearable!==true)?'checked':''}/>{{$.lp.no}}
  77. </td>
  78. </tr>
  79. <tr>
  80. <td class="editTableTitle">{{$.lp.size}}:</td>
  81. <td class="editTableValue">
  82. <input type="radio" name="size" value="default" text{(!$.size || $.size==='default')?'checked':''}/>default
  83. <input type="radio" name="size" value="medium" text{($.size==='medium')?'checked':''}/>medium
  84. <input type="radio" name="size" value="small" text{($.size==='small')?'checked':''}/>small
  85. <input type="radio" name="size" value="mini" text{($.size==='mini')?'checked':''}/>mini
  86. </td>
  87. </tr>
  88. </table>
  89. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  90. <tr>
  91. <td class="editTableTitle">{{$.lp.showPassword}}:</td>
  92. <td class="editTableValue">
  93. <input type="radio" name="showPassword" value="true" text{($.showPassword===true)?'checked':''}/>{{$.lp.yes}}
  94. <input type="radio" name="showPassword" value="false" text{($.showPassword!==true)?'checked':''}/>{{$.lp.no}}
  95. </td>
  96. </tr>
  97. </table>
  98. <table id="text{$.pid}textareaOptionArea" style="display: text{($.inputType==='textarea')?'block':'none'}" width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  99. <tr>
  100. <td class="editTableTitle">{{$.lp.textareaRows}}:</td>
  101. <td class="editTableValue">
  102. <input type="text" name="rows" value="text{$.rows || 2}" class="editTableInput"/>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td class="editTableTitle">{{$.lp.autosize}}:</td>
  107. <td class="editTableValue">
  108. <div>
  109. <input onclick="if (this.checked){ $('text{$.pid}autosizeRangeArea').setStyle('display', 'block')}" type="radio" name="autosize" value="true" text{($.autosize===true)?'checked':''}/>{{$.lp.yes}}
  110. <input onclick="if (this.checked){ $('text{$.pid}autosizeRangeArea').setStyle('display', 'none')}" type="radio" name="autosize" value="false" text{($.autosize!==true)?'checked':''}/>{{$.lp.no}}
  111. </div>
  112. <div id="text{$.pid}autosizeRangeArea" style="display: text{($.autosize===true)?'block':'none'}">
  113. {{$.lp.minRows}}: <input style="width: 60px; border: 1px solid #CCCCCC" type="text" name="minRows" value="text{$.minRows}" />
  114. {{$.lp.maxRows}}: <input style="width: 60px; border: 1px solid #CCCCCC" type="text" name="maxRows" value="text{$.maxRows}" />
  115. </div>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td class="editTableTitle">{{$.lp.resize}}:</td>
  120. <td class="editTableValue">
  121. <input type="radio" name="resize" value="none" text{(!$.resize || $.resize==='none')?'checked':''}/>{{$.lp.resizeNone}}
  122. <input type="radio" name="resize" value="both" text{($.resize==='both')?'checked':''}/>{{$.lp.resizeBoth}}
  123. <input type="radio" name="resize" value="horizontal" text{($.resize==='horizontal')?'checked':''}/>{{$.lp.resizeHorizontal}}
  124. <input type="radio" name="resize" value="vertical" text{($.resize==='vertical')?'checked':''}/>{{$.lp.resizeVertical}}
  125. </td>
  126. </tr>
  127. </table>
  128. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;">{{$.lp.prefixIcon}}</div>
  129. <div style="display: text{($.prefixIcon)?'block':'none'}" class="MWFElIcon" name="prefixIcon"></div>
  130. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;">{{$.lp.suffixIcon}}</div>
  131. <div style="display: text{($.suffixIcon)?'block':'none'}" class="MWFElIcon" name="suffixIcon"></div>
  132. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  133. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  134. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  135. <tr>
  136. <td class="editTableTitle">{{$.lp.compute}}:</td>
  137. <td class="editTableValue">
  138. <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}
  139. <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}
  140. <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}
  141. </td>
  142. </tr>
  143. </table>
  144. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  145. <div class="MWFValidation" name="validationConfig"></div>
  146. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  147. </div>
  148. <div title="Vue" class="MWFTab">
  149. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Data</div>
  150. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  151. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Method</div>
  152. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  153. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue CSS</div>
  154. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  155. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Slots</div>
  156. <div style="display: text{($.vueSlot) ? 'block' : 'none'}">
  157. <div class="MWFHtmlEditorArea" name="vueSlot" title="Input Slot (HTML)"></div>
  158. </div>
  159. </div>
  160. <div title="{{$.lp.section}}" class="MWFTab">
  161. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  162. <tr>
  163. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  164. <td class="editTableValue">
  165. <input onclick="if (this.checked){
  166. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  167. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  168. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  169. <input onclick="if (this.checked){
  170. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  171. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  172. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  173. </td>
  174. </tr>
  175. </table>
  176. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  177. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  178. <tr>
  179. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  180. <td class="editTableValue">
  181. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{(($.sectionBy=='person') || ($.sectionBy!='unit' && $.sectionBy!='activity' && $.sectionBy!='script'))?'checked':''} type="radio" value="person"/>{{$.lp.handler}}<br/>
  182. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='unit')?'checked':''} type="radio" value="unit"/>{{$.lp.handlerUnit}}<br/>
  183. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='activity')?'checked':''} type="radio" value="activity"/>{{$.lp.activityId}}<br/>
  184. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='splitValue')?'checked':''} type="radio" value="splitValue"/>{{$.lp.splitValue}}<br/>
  185. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}" name="sectionBy" text{($.sectionBy=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}<br/>
  186. </td>
  187. </tr>
  188. </table>
  189. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  190. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  191. </div>
  192. </div>
  193. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  194. </div>
  195. <div title="{{$.lp.event}}" class="MWFTab">
  196. <div class="MWFEventsArea" name="events"></div>
  197. </div>
  198. <div title="HTML" class="MWFTab">
  199. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  200. </div>
  201. <div title="JSON" class="MWFTab">
  202. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  203. </div>
  204. </div>