edit.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <form id="edit-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="{$row.user_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Task_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-task_id" data-rule="required" data-source="task/index" class="form-control selectpage" name="row[task_id]" type="text" value="{$row.task_id|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Finish_number')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-finish_number" data-rule="required" class="form-control" name="row[finish_number]" type="number" value="{$row.finish_number|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Pace')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-pace" data-rule="required" class="form-control" name="row[pace]" type="number" value="{$row.pace|htmlentities}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Is_finish')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <select id="c-is_finish" data-rule="required" class="form-control selectpicker" name="row[is_finish]">
  30. {foreach name="isFinishList" item="vo"}
  31. <option value="{$key}" {in name="key" value="$row.is_finish"}selected{/in}>{$vo}</option>
  32. {/foreach}
  33. </select>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Is_reward')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <select id="c-is_reward" data-rule="required" class="form-control selectpicker" name="row[is_reward]">
  40. {foreach name="isRewardList" item="vo"}
  41. <option value="{$key}" {in name="key" value="$row.is_reward"}selected{/in}>{$vo}</option>
  42. {/foreach}
  43. </select>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Finish_date')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-finish_date" class="form-control" name="row[finish_date]" type="text" value="{$row.finish_date|htmlentities}">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Finish_time')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-finish_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[finish_time]" type="text" value="{:$row.finish_time?datetime($row.finish_time):''}">
  56. </div>
  57. </div>
  58. <div class="form-group layer-footer">
  59. <label class="control-label col-xs-12 col-sm-2"></label>
  60. <div class="col-xs-12 col-sm-8">
  61. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  62. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  63. </div>
  64. </div>
  65. </form>