edit.html 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <div class="modal" tabindex="-1" role="dialog">
  2. <div class="modal-dialog">
  3. <div class="card">
  4. <div class="header" dragable-header>
  5. <button type="button" class="close" ng-click="$hide()">&times;</button>
  6. <h3 class="modal-title">{{params.title}}</h3>
  7. </div>
  8. <div activate-input activate-select class="body">
  9. <form class="form-horizontal" role="form" id="dicItemform"
  10. name="dicItemform" ng-submit="saveData(dicItemform.$valid)" novalidate>
  11. <div class="dj-formtable">
  12. <table class="gt-table gt-table-bordered">
  13. <tr>
  14. <th>字典类型:</th>
  15. <td ng-class="{ 'has-error' : dicItemform.selectedDic.$invalid && (dicItemform.$submitted) }">
  16. <label class="input-group input-group-search">
  17. <input name="selectedDic" type="text" ng-model="selectDictionaryParams.selectedLabeData" class="form-control"
  18. required value={{selectDictionaryParams.selectedLabeData}} ng-readonly="true"/>
  19. <span class="input-group-addon" data-dataoptions="selectDictionaryParams" bsselectdata-pro ng-hide="readonly">
  20. <i class="glyphicon glyphicon-zoom-in" ></i>
  21. </span>
  22. </label>
  23. <span ng-show="dicItemform.selectedDic.$invalid && (dicItemform.$submitted)"
  24. class="help-block">请选择字典类型</span>
  25. </td>
  26. </tr>
  27. <tr>
  28. <th>元素名称:</th>
  29. <td colspan="3" ng-class="{ 'has-error' : this.dicItemform.name.$invalid && this.dicItemform.$submitted}">
  30. <input type="text"
  31. name="name" ng-model="dicItem.Name"
  32. class="form-control" ng-required="true" />
  33. <span ng-show="this.dicItemform.name.$invalid && this.dicItemform.$submitted"
  34. class="error">必填.</span>
  35. </td>
  36. </tr>
  37. <tr>
  38. <th>元素值:</th>
  39. <td colspan="3" ng-class="{ 'has-error' : this.dicItemform.value.$invalid && this.dicItemform.$submitted}">
  40. <input type="number"
  41. name="value" ng-model="dicItem.Value"
  42. class="form-control" ng-required="true" ng-readonly="readonly"/>
  43. <span ng-show="this.dicItemform.value.$invalid && this.dicItemform.$submitted"
  44. class="error">必填.</span>
  45. </td>
  46. </tr>
  47. <tr>
  48. <th>排序:</th>
  49. <td colspan="3" ng-class="{ 'has-error' : this.dicItemform.orderNo.$invalid && this.dicItemform.$submitted}">
  50. <input type="number"
  51. name="orderNo" ng-model="dicItem.OrderNo"
  52. class="form-control" ng-required="true" ng-readonly="readonly"/>
  53. <span ng-show="this.dicItemform.orderNo.$invalid && this.dicItemform.$submitted"
  54. class="error">必填.</span>
  55. </td>
  56. </tr>
  57. </table>
  58. </div>
  59. <div class="form_foot">
  60. <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
  61. <button type="submit" class="btn btn-primary" form="dicItemform">保存</button>
  62. </div>
  63. </form>
  64. </div>
  65. </div>
  66. </div>
  67. </div>