add.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Decorate_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-decorate_id" data-rule="required" data-source="decorate/index" class="form-control selectpage" name="row[decorate_id]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Is_using')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <select id="c-is_using" class="form-control selectpicker" name="row[is_using]">
  18. {foreach name="isUsingList" item="vo"}
  19. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  20. {/foreach}
  21. </select>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Plat_name')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-plat_name" class="form-control" name="row[plat_name]" type="text" value="">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <div class="radio">
  34. {foreach name="statusList" item="vo"}
  35. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  36. {/foreach}
  37. </div>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Audittime')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-audittime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[audittime]" type="text" value="{:date('Y-m-d H:i:s')}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Auditremark')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-auditremark" class="form-control" name="row[auditremark]" type="text" value="">
  50. </div>
  51. </div>
  52. <div class="form-group layer-footer">
  53. <label class="control-label col-xs-12 col-sm-2"></label>
  54. <div class="col-xs-12 col-sm-8">
  55. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  56. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  57. </div>
  58. </div>
  59. </form>