edit.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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">{:__('Company_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Uc_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-uc_id" data-rule="required" data-source="user/company/index" class="form-control selectpage" name="row[uc_id]" type="text" value="{$row.uc_id|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Worker_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-worker_id" data-rule="required" data-source="worker/index" class="form-control selectpage" name="row[worker_id]" type="text" value="{$row.worker_id|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Bianhao')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-bianhao" class="form-control" name="row[bianhao]" type="text" value="{$row.bianhao|htmlentities}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <div class="radio">
  30. {foreach name="statusList" item="vo"}
  31. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  32. {/foreach}
  33. </div>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Jiance_number')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-jiance_number" class="form-control" name="row[jiance_number]" type="number" value="{$row.jiance_number|htmlentities}">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Project_ids')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-project_ids" data-rule="required" data-source="project/index" data-multiple="true" class="form-control selectpage" name="row[project_ids]" type="text" value="{$row.project_ids|htmlentities}">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Tongjitime')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-tongjitime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[tongjitime]" type="text" value="{:$row.tongjitime?datetime($row.tongjitime):''}">
  52. </div>
  53. </div>
  54. <div class="form-group layer-footer">
  55. <label class="control-label col-xs-12 col-sm-2"></label>
  56. <div class="col-xs-12 col-sm-8">
  57. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  58. </div>
  59. </div>
  60. </form>