send.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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('send')}" class="form-horizontal">
  8. <input type="hidden" name="id" value="{$id}">
  9. <div class="form-group">
  10. <label class="col-sm-2 control-label">执行护工</label>
  11. <div class="col-sm-6">
  12. {:widget('common/multiselect',['name'=>'uids','lists' => $workers, 'val' => []])}
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="col-sm-2 control-label">开始时间</label>
  17. <div class="col-sm-6">
  18. <input type="text" placeholder="请选择" class="form-control" readonly id="start" name="start" value="{$info.start|default=date('Y-m-d H:i:s')}">
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="col-sm-2 control-label">备注</label>
  23. <div class="col-sm-6">
  24. <textarea name="remark" class="form-control"></textarea>
  25. </div>
  26. </div>
  27. <div class="hr-line-dashed"></div>
  28. <div class="form-group">
  29. <div class="col-sm-4 col-sm-offset-2">
  30. <button class="btn btn-primary ajax-post" data-layer="1" target-form="form-horizontal" type="submit">确 定</button>
  31. <button class="btn cancel-btn btn-default" type="button">取 消</button>
  32. </div>
  33. </div>
  34. </form>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. {/block}
  40. {block name="script"}
  41. <script type="text/javascript" src="/static/layDate-v5.0.9/laydate.js"></script>
  42. <script>
  43. laydate.render({
  44. elem: '#start',
  45. //设置开始日期、日期日期的 input 选择器
  46. //数组格式为 5.3.0 开始新增,之前版本直接配置 true 或任意分割字符即可
  47. type: 'datetime',
  48. trigger: 'click',
  49. theme: '#284a94'
  50. });
  51. </script>
  52. {/block}