batchdelay.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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('batchdelay',[],'')}/id/{$id}" class="form-horizontal">
  8. <div id="type1">
  9. <div class="form-group">
  10. <label class="col-sm-2 control-label">延迟原因<span class="text-danger">*</span></label>
  11. <div class="col-sm-6">
  12. {:widget('common/select',['name'=>'delay_reason_id','lists'=>$delay_reason,'value'=>''])}
  13. </div>
  14. </div>
  15. </div>
  16. <div class="hr-line-dashed"></div>
  17. <div class="form-group">
  18. <div class="col-sm-6 col-sm-offset-2">
  19. <button class="btn btn-primary ajax-post" data-layer="1" data-reload="1" target-form="form-horizontal" type="submit">确 定</button>
  20. <button class="btn cancel-btn btn-default" type="button">取 消</button>
  21. </div>
  22. </div>
  23. </form>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. {/block}
  29. {block name="script"}
  30. <script>
  31. function setType(val) {
  32. if(val==1){
  33. $("#type1").css('display','block')
  34. $("#type2").css('display','none')
  35. }else {
  36. $("#type2").css('display','block')
  37. $("#type1").css('display','none')
  38. }
  39. }
  40. </script>
  41. {/block}