deal.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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('deal')}" class="form-horizontal">
  8. <input type="hidden" name="id" value="{$info['id']}">
  9. <div class="form-group">
  10. <label class="col-sm-2 control-label">操作</label>
  11. <div class="col-sm-6" id="radio-box">
  12. <label class="cr-inline">
  13. <input type="radio" value="1" checked name="status">同意&nbsp;&nbsp;
  14. </label>
  15. <label class="cr-inline">
  16. <input type="radio" value="2" name="status">拒绝
  17. </label>
  18. </div>
  19. </div>
  20. <div class="form-group" id="dateTime">
  21. <label class="col-sm-2 control-label">延期时间<span class="text-danger">*</span></label>
  22. <div class="col-sm-6">
  23. <input class="form-control" id="date" readonly name="end_time" value="{$info.end_time|default=''}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="col-sm-2 control-label">意见</label>
  28. <div class="col-sm-6">
  29. <textarea name="remark" class="form-control" rows="3"></textarea>
  30. </div>
  31. </div>
  32. <div class="hr-line-dashed"></div>
  33. <div class="form-group">
  34. <div class="col-sm-6 col-sm-offset-2">
  35. <button class="btn btn-primary ajax-post" data-layer="1" target-form="form-horizontal" type="submit">确 定</button>
  36. </div>
  37. </div>
  38. </form>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. {/block}
  44. {block name="script"}
  45. <script type="text/javascript" src="/static/layDate-v5.0.9/laydate.js"></script>
  46. <script>
  47. //日期时间选择器
  48. laydate.render({
  49. elem: '#date',
  50. type: 'datetime',
  51. format:'yyyy-MM-dd HH:mm:ss',
  52. trigger: 'click' ,
  53. theme:'#148d8f'
  54. // value:dateFormat(),
  55. });
  56. $('#radio-box').change(function (){
  57. var status = $('input:radio[name="status"]:checked').val();
  58. if(status == 2){
  59. $('#dateTime').css({'display':'none'});
  60. }else {
  61. $('#dateTime').css({'display':'block'});
  62. }
  63. })
  64. </script>
  65. {/block}