OOTextarea.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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.showIcon}}:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="showIcon" value="yes" text{($.showIcon=='yes')?'checked':''}/>{{$.lp.yes}}
  20. <input type="radio" name="showIcon" value="no" text{($.showIcon!=='yes')?'checked':''}/>{{$.lp.no}}
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="editTableTitle">{{$.lp.showMode}}:</td>
  25. <td class="editTableValue">
  26. <label><input type="radio" name="showMode" value="editable" text{($.showMode!=='readonlyMode' && $.showMode!=='disabled' && $.showMode!=='read')?'checked':''}/>{{$.lp.editable}}</label>
  27. <label><input type="radio" name="showMode" value="readonlyMode" text{($.showMode==='readonlyMode')?'checked':''}/>{{$.lp.readonlyMode}}</label>
  28. <label><input type="radio" name="showMode" value="disabled" text{($.showMode==='disabled')?'checked':''}/>{{$.lp.disabled}}</label>
  29. <label><input type="radio" name="showMode" value="read" text{($.showMode==='read')?'checked':''}/>{{$.lp.read}}</label>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td class="editTableTitle">{{$.lp.required}}:</td>
  34. <td class="editTableValue">
  35. <input type="radio" name="required" value="true" text{($.required==true)?'checked':''}/>{{$.lp.yes}}
  36. <input type="radio" name="required" value="false" text{($.required!=true)?'checked':''}/>{{$.lp.no}}
  37. </td>
  38. </tr>
  39. <tr>
  40. <td colspan="2"><b>{{$.lp.readModeEvents}}:</b>
  41. <input type="radio" name="readModeEvents" value="yes" text{($.readModeEvents=='yes')?'checked':''}/>{{$.lp.yes}}
  42. <input type="radio" name="readModeEvents" value="no" text{($.readModeEvents!=='yes')?'checked':''}/>{{$.lp.no}}
  43. </td>
  44. </tr>
  45. <!-- <tr>-->
  46. <!-- <td class="editTableTitle">{{$.lp.readonly}}:</td>-->
  47. <!-- <td class="editTableValue">-->
  48. <!-- <input type="radio" name="readonly" value="true" text{($.readonly)?'checked':''}/>{{$.lp.yes}}-->
  49. <!-- <input type="radio" name="readonly" value="false" text{(!$.readonly)?'checked':''}/>{{$.lp.no}}-->
  50. <!-- </td>-->
  51. <!-- </tr>-->
  52. <!-- <tr>-->
  53. <!-- <td class="editTableTitle">{{$.lp.el_disabled}}:</td>-->
  54. <!-- <td class="editTableValue">-->
  55. <!-- <input type="radio" name="disabled" value="true" text{($.disabled)?'checked':''}/>{{$.lp.yes}}-->
  56. <!-- <input type="radio" name="disabled" value="false" text{(!$.disabled)?'checked':''}/>{{$.lp.no}}-->
  57. <!-- </td>-->
  58. <!-- </tr>-->
  59. <tr>
  60. <td class="editTableTitle">{{$.lp.title}}:</td>
  61. <td class="editTableValue" id="text{$.pid}isTitleArea">
  62. <input type="text" name="label" value="text{$.label}" class="editTableInput"/>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td class="editTableTitle">{{$.lp.autosize}}:</td>
  67. <td class="editTableValue">
  68. <div>
  69. <label><input type="radio" name="autoSize" value="yes" text{($.autoSize!=='no')?'checked':''}/>{{$.lp.yes}}</label>
  70. <label><input type="radio" name="autoSize" value="no" text{($.autoSize==='no')?'checked':''}/>{{$.lp.no}}</label>
  71. </div>
  72. </td>
  73. </tr>
  74. </table>
  75. <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
  76. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  77. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  78. <tr>
  79. <td class="editTableTitle">{{$.lp.compute}}:</td>
  80. <td class="editTableValue">
  81. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
  82. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
  83. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
  84. </td>
  85. </tr>
  86. </table>
  87. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  88. <div class="MWFValidation" name="validationConfig"></div>
  89. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  90. </div>
  91. <div title="{{$.lp.section}}" class="MWFTab">
  92. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  93. <tr>
  94. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  95. <td class="editTableValue">
  96. <input onclick="if (this.checked){
  97. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  98. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  99. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  100. <input onclick="if (this.checked){
  101. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  102. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  103. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  104. </td>
  105. </tr>
  106. </table>
  107. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  108. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  109. <tr>
  110. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  111. <td class="editTableValue">
  112. <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/>
  113. <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/>
  114. <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/>
  115. <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/>
  116. <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/>
  117. </td>
  118. </tr>
  119. </table>
  120. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  121. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  122. </div>
  123. </div>
  124. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  125. </div>
  126. <div title="{{$.lp.event}}" class="MWFTab">
  127. <div class="MWFEventsArea" name="events"></div>
  128. </div>
  129. <div title="HTML" class="MWFTab">
  130. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  131. </div>
  132. <div title="JSON" class="MWFTab">
  133. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  134. </div>
  135. </div>