pageAdd.ftl 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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">
  9. <#-- ## update--begin--author:zhangjiaqiang date:20170524 for:美化p3列表页面的按钮 -->
  10. <button type="button" class="btn btn-primary" id="formSubmit"><span class="fa fa-save"></span> 保存</button>
  11. <button type="button" class="btn btn-default" id="formReturn" data-dismiss="modal" onclick="doUrl('$!{basePath}/${projectName}/${lowerName}.do?list')"><span class="fa fa-arrow-circle-left"></span> 返回</button>
  12. <#-- ## update--end--author:zhangjiaqiang date:20170524 for:美化p3列表页面的按钮 -->
  13. </div>
  14. <div class="panel-body">
  15. <form class="form-horizontal" role="form" id="dailogForm" action="$!{basePath}/${projectName}/${lowerName}.do?doAdd" method="POST">
  16. <input type="hidden" id="btn_sub" class="btn_sub" />
  17. <#list columnDatas as item>
  18. <#if item.domainPropertyName != 'id'>
  19. <#if item.columnType == "datetime" ||item.columnType == "date" || item.columnType == "timestamp">
  20. <div class="form-group mno">
  21. <label for="inputEmail3" class="col-sm-2 control-label" style="text-align:left;">${item.columnComment}</label>
  22. <div class="col-sm-8">
  23. <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>/>
  24. </div>
  25. </div>
  26. <#else>
  27. <div class="form-group mno">
  28. <label for="inputEmail3" class="col-sm-2 control-label" style="text-align:left;">${item.columnComment}</label>
  29. <div class="col-sm-8">
  30. <input type="text" value="$!{${lowerName}.${item.domainPropertyName}}" name="${item.domainPropertyName}" id="${item.domainPropertyName}" class="form-control" <#if item.nullable != 'Y'> datatype="*" </#if>/>
  31. </div>
  32. </div>
  33. </#if>
  34. </#if>
  35. </#list>
  36. </form>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </body>
  42. </html>
  43. <script type="text/javascript" src="$!{basePath}/plug-in-ui/js/Validform_v5.3.2.js"></script>
  44. <script type="text/javascript" src="$!{basePath}/plug-in-ui/js/forminit.p3.js"></script>