0
0

self_add.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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('selfAdd',[],'')}/mode/{$mode}" class="form-horizontal">
  8. {if $mode==0}
  9. <input type="hidden" name="source_type" value="4">
  10. {/if}
  11. <div class="form-group">
  12. <label class="col-sm-2 control-label">任务内容<span class="text-danger">*</span></label>
  13. <div class="col-sm-6">
  14. <textarea name="content" class="form-control" cols="30" rows="3" id="value"></textarea>
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label class="col-sm-2 control-label">所在科室/部门</label>
  19. <div class="col-sm-6">
  20. {:widget('common/select',['name'=>'dep_id','lists'=>$dep_list,'value'=>$dep_id])}
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="col-sm-2 control-label">图片</label>
  25. <div class="col-sm-6">
  26. {:widget('common/upimg',['name'=>'images','multi'=>1,'val'=>''])}
  27. </div>
  28. </div>
  29. {if $mode==1}
  30. <div class="form-group">
  31. <label class="col-sm-2 control-label">报修紧急程度<span class="text-danger">*</span></label>
  32. <div class="col-sm-6">
  33. <select name="repair_priority" class="form-control" >
  34. <option value="2">普通</option>
  35. <option value="1">可延缓</option>
  36. <option value="3">紧急</option>
  37. </select>
  38. </div>
  39. </div>
  40. {/if}
  41. <div class="hr-line-dashed"></div>
  42. <div class="form-group">
  43. <div class="col-sm-6 col-sm-offset-2">
  44. <button class="btn btn-primary ajax-post" data-layer="1" target-form="form-horizontal" type="submit">确 定</button>
  45. <button class="btn cancel-btn btn-default" type="button">取 消</button>
  46. </div>
  47. </div>
  48. </form>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. {/block}
  54. {block name="script"}
  55. <script>
  56. </script>
  57. {/block}