add_doc_required.blade.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. @extends('modal_pages.base')
  2. <style>
  3. .listFlag{
  4. height: 20px;
  5. border-radius: 50%;
  6. width: 20px;
  7. margin-right: 5px;
  8. }
  9. .btn1{
  10. background-color: #141639c4 !important;
  11. color:white !important;
  12. border-radius: 20px;
  13. box-shadow:none !important;
  14. }
  15. .btn1:hover{
  16. background: #ffff !important;
  17. color: #141639c4 !important;
  18. border-radius: 20px;
  19. border: 1px solid #141639c4;
  20. }
  21. .box-typical {
  22. font-size: 13px !important;
  23. }
  24. .box-typical {
  25. -webkit-border-radius: 4px;
  26. border-radius: 4px;
  27. background: #fff;
  28. border: solid 1px #d8e2e7;
  29. margin: 0 0 20px;
  30. }
  31. .box-white {
  32. background: #fff;
  33. border-radius: 3px;
  34. padding: 15px 20px;
  35. font-size: 13px;
  36. }
  37. .btn.btn-warning {
  38. background-color: #f29824 !important;
  39. border-color: #f29824 !important;
  40. color: #ffffff !important;
  41. }
  42. .text-right {
  43. text-align: right!important;
  44. }
  45. .cancel_btn_new {
  46. background-color: #ffc107 !important;
  47. border-width: 1px !important;
  48. border-color: #ffc107 !important;
  49. color: #fff !important;
  50. border-radius: 30px !important;
  51. padding: 4px 12px !important;
  52. height: 28px;
  53. display: inline-block;
  54. }
  55. .pretty {
  56. font-size: 14px;
  57. }
  58. .form-group {
  59. margin-bottom: 1rem;
  60. }
  61. .form-label {
  62. color: #5d5d5d !important;
  63. font-size: 12px;
  64. font-weight: 600;
  65. }
  66. .btn.btn-danger {
  67. background-color: #fa424a !important;
  68. border-color: #fa424a !important;
  69. color: #ffffff !important;
  70. }
  71. .row {
  72. display: -ms-flexbox;
  73. display: flex;
  74. -ms-flex-wrap: wrap;
  75. flex-wrap: wrap;
  76. margin-right: -15px;
  77. margin-left: -15px;
  78. }
  79. .form-control {
  80. padding: 5px 0.75rem !important;
  81. }
  82. </style>
  83. @section('main')
  84. <form class="modal-form" action="{{ url()->current() }}" method="POST">
  85. {{ csrf_field() }}
  86. <input type="hidden" name="id" value="{{$std_proposal->id}}">
  87. <input type="hidden" name="requirement_source" value="others"/>
  88. <div class="box-typical" id="others" style="padding: 10px 15px 0px; margin: 10px 15px 15px; border-radius: .25rem;">
  89. <div class="row">
  90. <div class="col">
  91. <span style="font-size: 13px; font-weight: 600; display: block; margin-bottom: 5px;">Add Document requirements</span>
  92. </div>
  93. <div class="col text-right">
  94. <button type="button" class="btn btn-warning btn-sm add_more_div">
  95. Add More
  96. </button>
  97. </div>
  98. </div>
  99. <div class="others_div mt-2" style="border-top: 1px solid #e9f0f3;">
  100. <div class="row">
  101. <input type="hidden" class="index" name="others[1][index]" value="1"/>
  102. <div class="col-md-6 form-group mt-2">
  103. <label class="form-label">Requirement</label>
  104. <textarea class="form-control requirement_title" name="others[1][requirement_title]" rows="1"></textarea>
  105. </div>
  106. <div class="col-md-5 form-group mt-2">
  107. <label class="form-label">Requirement Type</label>
  108. <div class="d-flex">
  109. <div class="pretty p-default p-curve">
  110. <input class="need_upload" type="radio" name="others[1][need_upload]" value="1" />
  111. <div class="state p-primary-o">
  112. <label>
  113. <small>Document</small>
  114. </label>
  115. </div>
  116. </div>
  117. <div class="pretty p-default p-curve">
  118. <input class="need_upload" type="radio" name="others[1][need_upload]" value="0" />
  119. <div class="state p-primary-o">
  120. <label>
  121. <small>Information</small>
  122. </label>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <div class="col-md-1 form-group mt-2">
  128. <button type="button" class="btn btn-danger mt-4 remove_others_div d-none cancel_button" style="padding: 4px 7px; line-height: 0; margin-top: 15px !important;">
  129. <i class="fa fa-close" aria-hidden="true"></i>
  130. </button>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. <div class="row">
  136. <div class="col">
  137. <button type="submit" class="btn btn-inline pull-right submit_button">
  138. Save
  139. </button>
  140. {{-- <button type="button" class="btn btn-inline pull-right btn-submit cancel_btn_new" data-dismiss="modal">
  141. Cancel
  142. </button> --}}
  143. </div>
  144. </div>
  145. </form>
  146. <script>
  147. $(function(){
  148. $('#modal_page_footer').hide();
  149. $('.add_more_div').on('click', function(){
  150. var last_index=$('.others_div').last().index();
  151. var cloned=$('.others_div').last().clone(true);
  152. cloned.find(".remove_others_div" ).removeClass('d-none');
  153. cloned.find(".index" ).attr('name', "others["+(last_index+1)+"][index]").val(last_index+1);
  154. cloned.find(".requirement_title" ).attr('name', "others["+(last_index+1)+"][requirement_title]").val('');
  155. cloned.find(".need_upload" ).attr('name', "others["+(last_index+1)+"][need_upload]").prop('checked', false);
  156. cloned.appendTo( "#others" );
  157. });
  158. $('.remove_others_div').on('click', function(){
  159. $(this).closest('.others_div').remove();
  160. });
  161. });
  162. </script>
  163. @endsection