add.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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">{:__('Decorate_type')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <select id="c-decorate_type" class="form-control selectpicker" name="row[decorate_type]">
  18. {foreach name="decorateTypeList" item="vo"}
  19. <option value="{$key}" {in name="key" value="1"}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">{:__('Is_using')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <select id="c-is_using" class="form-control selectpicker" name="row[is_using]">
  28. {foreach name="isUsingList" item="vo"}
  29. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  30. {/foreach}
  31. </select>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <input id="c-end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  38. </div>
  39. </div>
  40. <div class="form-group layer-footer">
  41. <label class="control-label col-xs-12 col-sm-2"></label>
  42. <div class="col-xs-12 col-sm-8">
  43. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  44. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  45. </div>
  46. </div>
  47. </form>