pageDetail.ftl 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. #parse("content/base/back/common/head.vm")
  4. <body style='overflow:scroll;overflow-x:hidden'>
  5. <div class="container bs-docs-container" style="width:100%;">
  6. <div class="row">
  7. <div class="panel panel-default">
  8. <div class="panel-heading">详情</div>
  9. <div class="panel-body">
  10. <form class="form-horizontal" role="form" id="dailogForm" action="$!{basePath}/${projectName}/${lowerName}.do?doEdit" method="POST">
  11. <fieldset disabled>
  12. <input type="hidden" id="btn_sub" class="btn_sub" />
  13. <input type="hidden" value="$!{${lowerName}.id}" name="id" id="id" />
  14. <#list columnDatas as item>
  15. <#if item.domainPropertyName != 'id'>
  16. <#if item.columnType == "datetime" ||item.columnType == "date" || item.columnType == "timestamp">
  17. <div class="form-group mno">
  18. <label for="inputEmail3" class="col-sm-2 control-label" style="text-align:left;">${item.columnComment}</label>
  19. <div class="col-sm-8">
  20. <input type="text" value="$!dateTool.format("yyyy-MM-dd",$!{${lowerName}.${item.domainPropertyName}})" name="${item.domainPropertyName}" id="${item.domainPropertyName}" class="form-control" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="background: url('$!{basePath}/plug-in-ui/images/datetime.png') no-repeat scroll right center transparent;" <#if item.nullable != 'Y'> datatype="*" </#if> />
  21. </div>
  22. </div>
  23. <#else>
  24. <div class="form-group mno">
  25. <label for="inputEmail3" class="col-sm-2 control-label" style="text-align:left;">${item.columnComment}</label>
  26. <div class="col-sm-8">
  27. <input type="text" value="$!{${lowerName}.${item.domainPropertyName}}" name="${item.domainPropertyName}" id="${item.domainPropertyName}" class="form-control" <#if item.nullable != 'Y'> datatype="*" </#if>/>
  28. </div>
  29. </div>
  30. </#if>
  31. </#if>
  32. </#list>
  33. <div class="form-group mno">
  34. <ul id="tab_menu" class="nav nav-tabs">
  35. <#list subEntityList as sub>
  36. <li <#if sub_index == 0> class="active"</#if>>
  37. <a href="#${sub.paramData.lowerName}" data-toggle="tab">
  38. ${sub.paramData.codeName}
  39. </a>
  40. </li>
  41. </#list>
  42. </ul>
  43. <div id="tab_menu_content" class="tab-content">
  44. <#list subEntityList as sub>
  45. <div class="tab-pane fade in <#if sub_index == 0>active</#if>" id="${sub.paramData.lowerName}">
  46. <#-- update--begin--author:zhangjiaqiang date:20170524 for:美化p3列表页面的按钮 -->
  47. <button type="button" id="${sub.paramData.lowerName}_add" class="btn btn-primary"><i class="fa fa-plus"></i> 添加</button>
  48. <button type="button" id="${sub.paramData.lowerName}_del" class="btn btn-danger"><i class="fa fa-trash-o"></i> 删除</button>
  49. <#-- update--end--author:zhangjiaqiang date:20170524 for:美化p3列表页面的按钮 -->
  50. <table class="table table-striped" id="${sub.paramData.lowerName}_table" style="margin-top:15px;">
  51. <thead>
  52. <th>ID</th>
  53. <#list sub.paramData.columnDatas as item>
  54. <#if item.domainPropertyName != 'id'>
  55. <th>${item.columnComment}</th>
  56. </#if>
  57. </#list>
  58. </thead>
  59. <tbody>
  60. #if($!{${sub.paramData.lowerName}Entities})
  61. #foreach($!{${sub.paramData.lowerName}} in $!{${sub.paramData.lowerName}Entities})
  62. #set($count = $!{velocityCount} - 1)
  63. <tr>
  64. <#-- update--begin--author:zhangjiaqiang date:20170616 for:修订checkbox在IE下的兼容性 -->
  65. <td>
  66. <input type="hidden" value="$!{${sub.paramData.lowerName}.id}" name="${sub.paramData.lowerName}Entities[$count].id" id="${sub.paramData.lowerName}Entities[$count].id"/>
  67. <input type="checkbox" name="${sub.paramData.lowerName}Entities[$count].idCheck" id="${sub.paramData.lowerName}Entities$count_idCheck"/>
  68. </td>
  69. <#-- update--end--author:zhangjiaqiang date:20170616 for:修订checkbox在IE下的兼容性 -->
  70. <#list sub.paramData.columnDatas as item>
  71. <#if item.domainPropertyName != 'id'>
  72. <#if item.columnType == "datetime" ||item.columnType == "date" || item.columnType == "timestamp">
  73. <td>
  74. <input type="text" value="$!dateTool.format("yyyy-MM-dd",$!{${sub.paramData.lowerName}.${item.domainPropertyName}})" name="${sub.paramData.lowerName}Entities[$count].${item.domainPropertyName}" maxlength="16" id="${sub.paramData.lowerName}Entities[$count].${item.domainPropertyName}" class="form-control" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="background: url('$!{basePath}/plug-in-ui/images/datetime.png') no-repeat scroll right center transparent;" <#if item.nullable != 'Y'> datatype="*" </#if>/>
  75. </td>
  76. <#else>
  77. <td>
  78. <input type="text" value="$!{${sub.paramData.lowerName}.${item.domainPropertyName}}" name="${sub.paramData.lowerName}Entities[$count].${item.domainPropertyName}" maxlength="16" id="${sub.paramData.lowerName}Entities[$count].${item.domainPropertyName}" class="form-control" <#if item.nullable != 'Y'> datatype="*" </#if>/>
  79. </td>
  80. </#if>
  81. </#if>
  82. </#list>
  83. </tr>
  84. #end
  85. #end
  86. </tbody>
  87. </table>
  88. </div>
  89. </#list>
  90. </div>
  91. </div>
  92. </fieldset>
  93. <div class="form-group mno">
  94. <div class="col-sm-offset-1 col-sm-6">
  95. <#-- update--begin--author:zhangjiaqiang date:20170524 for:美化p3列表页面的按钮 -->
  96. <button type="button" class="btn btn-default" id="formReturn" data-dismiss="modal" onclick="doUrl('$!{basePath}/${projectName}/${lowerName}.do?list')"><i class="fa fa-arrow-circle-left"></i> 返回</button>
  97. <#-- update--end--author:zhangjiaqiang date:20170524 for:美化p3列表页面的按钮 -->
  98. </div>
  99. </div>
  100. </form>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </body>
  106. </html>