add.html 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-content">
  7. <form method="post" action="{:url('add')}" class="form-horizontal">
  8. <input type="hidden" name="id" value="{$info['id']|default='0'}">
  9. <div class="form-group">
  10. <label class="col-sm-2 control-label">姓名<span class="text-danger">*</span></label>
  11. <div class="col-sm-6">
  12. <input type="text" class="form-control" name="name" value="{$info.name|default=''}">
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="col-sm-2 control-label">联系电话<span class="text-danger">*</span></label>
  17. <div class="col-sm-6">
  18. <input type="text" class="form-control" name="phone" value="{$info.phone|default=''}">
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="col-sm-2 control-label">身份证号<span class="text-danger">*</span></label>
  23. <div class="col-sm-6">
  24. <input type="text" class="form-control" name="card" value="{$info.card|default=''}">
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-sm-2 control-label">预存款</label>
  29. <div class="col-sm-6">
  30. <input type="text" class="form-control" name="money" value="{$info.money|default=''}">
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="col-sm-2 control-label">备注</label>
  35. <div class="col-sm-6">
  36. <input type="text" class="form-control" name="remark" value="{$info.remark|default=''}">
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="col-sm-2 control-label">类型</label>
  41. <div class="col-sm-6">
  42. <label class="cr-inline">
  43. <input type="radio" value="1" name="type">住户&nbsp;&nbsp;
  44. </label>
  45. <label class="cr-inline">
  46. <input type="radio" value="2" name="type">租户
  47. </label>
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="col-sm-2 control-label">状态</label>
  52. <div class="col-sm-6">
  53. <label class="cr-inline">
  54. <input type="radio" value="1" name="enable">正常&nbsp;&nbsp;
  55. </label>
  56. <label class="cr-inline">
  57. <input type="radio" value="0" name="enable">禁用
  58. </label>
  59. </div>
  60. </div>
  61. <div class="hr-line-dashed"></div>
  62. <div class="form-group">
  63. <div class="col-sm-6 col-sm-offset-2">
  64. <button class="btn btn-primary ajax-post" data-layer="1" target-form="form-horizontal" type="submit">确 定</button>
  65. <button class="btn cancel-btn btn-default" type="button">取 消</button>
  66. </div>
  67. </div>
  68. </form>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. {/block}
  74. {block name="script"}
  75. <script>
  76. $(document).ready(function(){
  77. formSetValue("enable", {$info.enable|default=1});
  78. formSetValue("type", {$info.type|default=1});
  79. });
  80. </script>
  81. {/block}