Advertisement
evgeniy-bublik

Untitled

Mar 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.10 KB | None | 0 0
  1. <div class="panel panel-default form-periods">
  2. <div class="panel-body">
  3. <div class="row">
  4. <div class="col-lg-12">
  5. {!! Form::label('periods', 'Periods') !!}
  6. </div>
  7. </div>
  8. <div class="row">
  9. <div class="col-lg-12">
  10. <table class="table table-condensed list-periods">
  11. <tbody>
  12. <tr class="hidden" id="template-period-tr">
  13. <td>
  14. {!! Form::text(null, null, [
  15. 'class' => 'form-control',
  16. 'data-name' => 'period_from',
  17. 'placeholder' => 'From',
  18. ]) !!}
  19. </td>
  20. <td>
  21. {!! Form::text(null, null, [
  22. 'class' => 'form-control',
  23. 'data-name' => 'period_to',
  24. 'placeholder' => 'To',
  25. ]) !!}
  26. </td>
  27. <td>
  28. {!! Form::select(null, $listResultPeriods, null, ['class' => 'form-control', 'data-name' => 'allow']) !!}
  29. </td>
  30. <td>
  31. {!! Form::text(null, null, [
  32. 'class' => 'form-control',
  33. 'data-name' => 'comment',
  34. 'placeholder' => 'Comment',
  35. ]) !!}
  36. </td>
  37. <td>
  38. <span class="glyphicon glyphicon-remove fa-lg text-danger button-delete-period" style="cursor: pointer; padding-top: 9px;"></span>
  39. </td>
  40. </tr>
  41.  
  42. @if (@old('period_from'))
  43. @include('backend.product.product.old_periods')
  44. @else
  45.  
  46. @foreach($product->periods as $period)
  47.  
  48. <tr>
  49. <td>
  50. {!! Form::text('period_from[]', $period->from, [
  51. 'class' => 'form-control',
  52. 'placeholder' => 'From',
  53. ]) !!}
  54. </td>
  55. <td>
  56. {!! Form::text('period_to[]', $period->to, [
  57. 'class' => 'form-control',
  58. 'placeholder' => 'To',
  59. ]) !!}
  60. </td>
  61. <td>
  62. {!! Form::select('allow[]', $listResultPeriods, $period->allow, [
  63. 'class' => 'form-control input-select-2-period',
  64. ]) !!}
  65. </td>
  66. <td>
  67. {!! Form::text('comment[]', $period->comment, ['class' => 'form-control', 'placeholder' => 'Comment']) !!}
  68. </td>
  69. <td>
  70. <span class="glyphicon glyphicon-remove fa-lg text-danger button-delete-period" style="cursor: pointer; padding-top: 9px;"></span>
  71. </td>
  72. </tr>
  73.  
  74. @endforeach
  75. @endif
  76. </tbody>
  77. </table>
  78. </div>
  79. </div>
  80. <div class="row">
  81. <div class="col-lg-12 text-right">
  82. <button type="button" class="btn btn-success" id="button-add-period" style="margin-right: 15px">Add</button>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement