media.blade.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <!--- media-search --->
  2. @php $modalClassName = $modalClassName ?? ''; @endphp
  3. <div class="modal fade modal-cyan {{ $modalClassName }}" id="modal-media" aria-hidden="true" data-backdrop="static" style="display: none; z-index: 1060;">
  4. <div class="modal-dialog m-auto pt-4" style="max-width: 1180px !important;">
  5. <div class="modal-content">
  6. <div class="modal-header bg-primary">
  7. <h4 class="modal-title text-white" id="myModalLabel"></h4>
  8. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fas fa-times"></i></button>
  9. </div>
  10. <div class="px-2" style="background-color: #f5f5f5;">
  11. <div class="mt-2 mb-2 card">
  12. <ul class="nav nav-tabs nav-tabs-solid rounded my-0">
  13. <li class="nav-item"><a href="#file-upload" class="nav-link rounded radius-r0 active" data-toggle="tab">미디어 업로드</a></li>
  14. <li class="nav-item"><a href="#media-search" class="nav-link" data-toggle="tab">미디어 붙여넣기</a></li>
  15. </ul>
  16. </div>
  17. <div class="tab-content">
  18. <div class="tab-pane fade active show" id="file-upload">
  19. @include('front.dabory.erp.popup-form1.form-b.media-form', [
  20. 'formB' => $moealSetFile['MediaParameter'],
  21. ])
  22. </div>
  23. <div class="tab-pane fade" id="media-search">
  24. <div class="mb-1 pt-2 text-right btn-groups">
  25. <button type="button" class="btn btn-success btn-sm modal-search position-static media-save-spinner-btn" disabled>
  26. <span class="save-spinner spinner-border spinner-border-sm text-center" role="status" aria-hidden="true"></span>
  27. Loading...
  28. </button>
  29. <button type="button" class="btn btn-success btn-sm icon-search4 modal-search position-static media-search-btn" data-target="media" data-class="{{ $modalClassName }}">
  30. </button>
  31. <div class="btn-group">
  32. <button type="button" class="btn btn-sm btn-primary media-search-act save-button" data-value="save" {{ $moealSetFile['FormVars']['Hidden']['SaveButton'] }}>
  33. {{ $moealSetFile['FormVars']['Title']['SaveButton'] }}
  34. </button>
  35. @include('front.dabory.erp.partial.select-btn-options', [
  36. 'selectBtns' => $moealSetFile['SelectButtonOptions'],
  37. 'eventClassName' => 'media-search-act',
  38. ])
  39. </div>
  40. </div>
  41. <div class="card">
  42. <div class="card-header modal-body my-0 py-2" id="frm">
  43. <div class="row p-0">
  44. {{-- 기본 텍스트 --}}
  45. <div class="col-lg-4 col-md-6 col-12">
  46. <div class="{{ $moealSetFile['FormVars']['Display']['DateRange'] }} flex-column mb-2">
  47. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['DateRange'] }}</label>
  48. <div class="d-flex align-items-center" style="height: 28px;">
  49. @foreach ($moealSetFile['DateRangeOptions'] as $key => $option)
  50. <input autocomplete="off" name="media-date-range" type="radio" value="{{ $option['Value'] }}" id="{{ 'media-date-range-'.($key+1) }}"
  51. {{ $option['Value'] == 'all' ? 'checked' : ''}} onchange="change_media_query_speed()">
  52. <label for="{{ 'media-date-range-'.($key+1) }}" class="w-100 rounded overflow-hidden mr-0 text-nowrap">{{ $option['Caption'] }}
  53. </label>
  54. @endforeach
  55. </div>
  56. </div>
  57. <div class="{{ $moealSetFile['FormVars']['Display']['Date'] }} flex-column">
  58. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['Date'] }}</label>
  59. <div class="d-flex">
  60. <input class="rounded overflow-hidden w-100 text-nowrap" id="media-start-date" type="date" value="1990-01-01">
  61. <label class="btn disabled p-1 text-center">~</label>
  62. <input class="rounded overflow-hidden w-100 text-nowrap" id="media-end-date" type="date" value="3000-12-31">
  63. </div>
  64. </div>
  65. </div>
  66. <div class="col-lg col-md-6 col-12">
  67. <div class="d-flex flex-column mb-2" style="height: 50px;">
  68. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['SlipNo'] }}</label>
  69. <input type="text" id="slip-no-txt" class="rounded w-100" autocomplete="off" {{ $moealSetFile['FormVars']['Hidden']['SlipNo'] }}>
  70. </div>
  71. <div class="d-flex flex-column mb-2" style="height: 50px;">
  72. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['MediaName'] }}</label>
  73. <input type="text" id="media-name-txt" class="rounded w-100" autocomplete="off" {{ $moealSetFile['FormVars']['Hidden']['MediaName'] }}>
  74. </div>
  75. </div>
  76. <div class="col-lg col-md-6 col-12">
  77. <div class="d-flex flex-column mb-2" style="height: 50px;">
  78. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['FileName'] }}</label>
  79. <input type="text" id="file-name-txt" class="rounded w-100" autocomplete="off" {{ $moealSetFile['FormVars']['Hidden']['FileName'] }}>
  80. </div>
  81. <div class="d-flex flex-column" style="height: 50px;">
  82. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['LinkLocation'] }}</label>
  83. <input type="text" id="link-location-txt" class="rounded w-100" autocomplete="off" {{ $moealSetFile['FormVars']['Hidden']['LinkLocation'] }}>
  84. </div>
  85. </div>
  86. <div class="col-lg col-md-6 col-12">
  87. <div class="d-flex flex-column mb-2" style="height: 50px;">
  88. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['UserName'] }}</label>
  89. <input type="text" id="user-name-txt" class="rounded w-100" autocomplete="off" {{ $moealSetFile['FormVars']['Hidden']['UserName'] }}>
  90. </div>
  91. <div class="d-flex flex-column" style="height: 50px;">
  92. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['BranchName'] }}</label>
  93. <input type="text" id="branch-name-txt" class="rounded w-100" autocomplete="off" {{ $moealSetFile['FormVars']['Hidden']['BranchName'] }}>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="card-body modal-footer px-2">
  99. <div class="mt-2 mb-2 table-responsive" style="height: 400px;">
  100. <table class="table-row">
  101. <thead id="table-head">
  102. </thead>
  103. <tbody id="table-body">
  104. </tbody>
  105. </table>
  106. </div>
  107. <div class="px-md-0 px-1 w-100 d-flex justify-content-around align-items-stretch align-items-md-center flex-column flex-md-row">
  108. <select class="modal-line-select mb-md-0 mb-2 rounded" data-target="media" data-class="{{ $modalClassName }}">
  109. @include('front.outline.moption')
  110. </select>
  111. <div class="d-flex mb-md-0 mb-2 flex-column flex-md-row align-items-stretch align-items-md-center">
  112. <label class="m-0 mr-1 w-20 font-weight-bold" id="oderby-label"></label>
  113. <select class="modal-order-by-select w-100 rounded" data-target="media" data-class="{{ $modalClassName }}">
  114. </select>
  115. </div>
  116. <ul class="pagination pagination-sm"></ul>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. @once
  127. <script src="{{ csset('/js/modals-controller/list-type1/media.js') }}"></script>
  128. @endonce