renew_form.blade.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. @extends('admin/layout')
  2. @section('content')
  3. <body class="gray-bg">
  4. <div class="wrapper wrapper-content animated fadeInRight">
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <div class="ibox float-e-margins">
  8. <div class="ibox-content">
  9. <form class="form-horizontal" id="form">
  10. <div class="form-group">
  11. <label class="col-sm-3 control-label" for="contract_deadline">
  12. <span class="red">* </span>合同期限:
  13. </label>
  14. <div class="col-sm-6">
  15. <input type="text" class="form-control" value="" id="contract_deadline"
  16. name="contract_deadline">
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label class="col-sm-3 control-label" for="contract_amount">
  21. <span class="red">* </span>合同金额:
  22. </label>
  23. <div class="col-sm-6">
  24. <input type="text" class="form-control" value="" id="contract_amount"
  25. name="contract_amount">
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="col-sm-3 control-label" for="keyword_goal">
  30. <span class="red">* </span>关键词达标数:
  31. </label>
  32. <div class="col-sm-6">
  33. <input type="text" class="form-control" value="" id="keyword_goal"
  34. name="keyword_goal">
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label class="col-sm-3 control-label" for="article_goal">
  39. <span class="red">* </span>软文达标数:
  40. </label>
  41. <div class="col-sm-6">
  42. <input type="text" class="form-control" value="" id="article_goal"
  43. name="article_goal">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="col-sm-3 control-label" for="link_goal">
  48. <span class="red">* </span>外链平台数:
  49. </label>
  50. <div class="col-sm-6">
  51. <input type="text" class="form-control" value="" id="link_goal" name="link_goal">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="col-sm-3 control-label" for="other_demand">
  56. 补充内容:
  57. </label>
  58. <div class="col-sm-6">
  59. <input type="text" class="form-control" value="" id="other_demand"
  60. name="other_demand">
  61. </div>
  62. </div>
  63. <div class="form-group">
  64. <div class="col-sm-offset-3 col-sm-8">
  65. <button class="btn btn-sm btn-primary" type="button" onclick="units.save()">提交
  66. </button>
  67. <button class="btn btn-sm btn-white closeLayer" type="button">取消</button>
  68. </div>
  69. </div>
  70. </form>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </body>
  77. @endsection
  78. @section('footer')
  79. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  80. <script>
  81. laydate.render({
  82. elem: '#contract_deadline', //指定元素
  83. type: 'date'
  84. });
  85. var units = {
  86. save: function () {
  87. var data = tips.getFormValues("#form");
  88. var config = {
  89. url: '/admin/process/renew-form/' + "{{$siteProcessId}}",
  90. type: 'post',
  91. data: data
  92. };
  93. config.success = function (result) {
  94. layer.msg(result.message, {icon: 6, time: 1500}, function () {
  95. tips.closeParentLayer();
  96. });
  97. };
  98. tips.ajax(config);
  99. }
  100. };
  101. </script>
  102. @endsection