Commit 7f346848df493d802e95ff495d6af717eca53628
1 parent
cb9d2ae0ef
Exists in
master
fix text in autolift resume
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
resources/views/workers/resume_autolift.blade.php
1 | @extends('layout.frontend', ['title' => 'Автоподнятие вакансий']) | 1 | @extends('layout.frontend', ['title' => 'Автоподнятие вакансий']) |
2 | @section('scripts') | 2 | @section('scripts') |
3 | <script> | 3 | <script> |
4 | $(document).on('click', '#submit', function () { | 4 | $(document).on('click', '#submit', function () { |
5 | let data = {}; | 5 | let data = {}; |
6 | data.is_enabled = document.querySelector('.js_autoraise_toggle').checked; | 6 | data.is_enabled = document.querySelector('.js_autoraise_toggle').checked; |
7 | data.times_per_day = $('[name="times_per_day"]').chosen().val(); | 7 | data.times_per_day = $('[name="times_per_day"]').chosen().val(); |
8 | data.days_repeat = $('[name="days_repeat"]').chosen().val(); | 8 | data.days_repeat = $('[name="days_repeat"]').chosen().val(); |
9 | data.time_send_first = $('[name="time_send_first"]').val(); | 9 | data.time_send_first = $('[name="time_send_first"]').val(); |
10 | data.time_send_second = $('[name="time_send_second"]').val(); | 10 | data.time_send_second = $('[name="time_send_second"]').val(); |
11 | data.time_send_third = $('[name="time_send_third"]').val(); | 11 | data.time_send_third = $('[name="time_send_third"]').val(); |
12 | data.autolift_site = $('[name="autolift_site"]').val(); | 12 | data.autolift_site = $('[name="autolift_site"]').val(); |
13 | 13 | ||
14 | $.ajax({ | 14 | $.ajax({ |
15 | url: '{{ route('worker.autolift_save') }}', | 15 | url: '{{ route('worker.autolift_save') }}', |
16 | type: 'POST', | 16 | type: 'POST', |
17 | data: data, | 17 | data: data, |
18 | headers: { | 18 | headers: { |
19 | 'X-CSRF-TOKEN': '{{ csrf_token() }}' | 19 | 'X-CSRF-TOKEN': '{{ csrf_token() }}' |
20 | }, | 20 | }, |
21 | success: function (result) { | 21 | success: function (result) { |
22 | location.reload(); | 22 | location.reload(); |
23 | }, | 23 | }, |
24 | error: function (result) { | 24 | error: function (result) { |
25 | //todo пульнуть какуюнить модалку | 25 | //todo пульнуть какуюнить модалку |
26 | }, | 26 | }, |
27 | }); | 27 | }); |
28 | }) | 28 | }) |
29 | </script> | 29 | </script> |
30 | @endsection | 30 | @endsection |
31 | @section('content') | 31 | @section('content') |
32 | <section class="cabinet"> | 32 | <section class="cabinet"> |
33 | <div class="container"> | 33 | <div class="container"> |
34 | <ul class="breadcrumbs cabinet__breadcrumbs"> | 34 | <ul class="breadcrumbs cabinet__breadcrumbs"> |
35 | <li><a href="{{ route('index') }}">Главная</a></li> | 35 | <li><a href="{{ route('index') }}">Главная</a></li> |
36 | <li><b>Личный кабинет</b></li> | 36 | <li><b>Личный кабинет</b></li> |
37 | </ul> | 37 | </ul> |
38 | <div class="cabinet__wrapper"> | 38 | <div class="cabinet__wrapper"> |
39 | <div class="cabinet__side"> | 39 | <div class="cabinet__side"> |
40 | <div class="cabinet__side-toper"> | 40 | <div class="cabinet__side-toper"> |
41 | @include('workers.emblema') | 41 | @include('workers.emblema') |
42 | </div> | 42 | </div> |
43 | @include('workers.menu', ['item' => 15]) | 43 | @include('workers.menu', ['item' => 15]) |
44 | </div> | 44 | </div> |
45 | <form class="cabinet__body"> | 45 | <form class="cabinet__body"> |
46 | @csrf | 46 | @csrf |
47 | <div class="cabinet__body-item"> | 47 | <div class="cabinet__body-item"> |
48 | <h2 class="title cabinet__title">Автоподнятие резюме</h2> | 48 | <h2 class="title cabinet__title">Автоподнятие резюме</h2> |
49 | <div class="cabinet__inputs"> | 49 | <div class="cabinet__inputs"> |
50 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth"> | 50 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth"> |
51 | <?php | 51 | <?php |
52 | $createdAtClone = isset($options->created_at) ? clone($options->created_at) : now(); | 52 | $createdAtClone = isset($options->created_at) ? clone($options->created_at) : now(); |
53 | $diff = $createdAtClone->addDays($options->days_repeat)->diffInDays($options->created_at); | 53 | $diff = $createdAtClone->addDays($options->days_repeat)->diffInDays($options->created_at); |
54 | ?> | 54 | ?> |
55 | <label class="toggle"> | 55 | <label class="toggle"> |
56 | <input name="is_enabled" type="checkbox" @if($options->is_enabled) checked disabled @endif class="toggle__input js_autoraise_toggle"> | 56 | <input name="is_enabled" type="checkbox" @if($options->is_enabled) checked disabled @endif class="toggle__input js_autoraise_toggle"> |
57 | <span class="toggle__icon"></span> | 57 | <span class="toggle__icon"></span> |
58 | <span class="toggle__text">Деактивировано</span> | 58 | <span class="toggle__text">Деактивировано</span> |
59 | <span class="toggle__text">Активировано</span> | 59 | <span class="toggle__text">Активировано</span> |
60 | </label> | 60 | </label> |
61 | <p class="mod js_autoraise_prompt @if($options->is_enabled === 1) hidden @endif">Срок действия автоподнятия резюме истек. Желаете его возобновить?</p> | 61 | <p class="mod js_autoraise_prompt @if($options->is_enabled === 1) hidden @endif">Срок действия автоподнятия резюме истек. Желаете его возобновить?</p> |
62 | <p class="mod js_autoraise_prompt @if($options->is_enabled === 0) hidden @endif">Автоподнятие резюме продолжит действовать в течение следующих дней: <span>{{$diff}}</span></p> | 62 | <p class="mod js_autoraise_prompt @if($options->is_enabled === 0) hidden @endif">Автоподнятие резюме продолжит действовать в течение следующих дней: <span>{{$diff}}</span></p> |
63 | </div> | 63 | </div> |
64 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 64 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
65 | <label class="form-group__label">Сколько раз в день необходимо обновлять | 65 | <label class="form-group__label">Сколько раз в день необходимо обновлять |
66 | вакансии?</label> | 66 | резюме?</label> |
67 | <div class="form-group__item"> | 67 | <div class="form-group__item"> |
68 | <div class="select"> | 68 | <div class="select"> |
69 | <select name="times_per_day" class="js-select2 js_autoraise_select"> | 69 | <select name="times_per_day" class="js-select2 js_autoraise_select"> |
70 | <option @if($options['times_per_day'] === null) selected @endif disabled>Выберите вариант из списка</option> | 70 | <option @if($options['times_per_day'] === null) selected @endif disabled>Выберите вариант из списка</option> |
71 | <option @if($options['times_per_day'] === 1) selected @endif value="1">1 раз</option> | 71 | <option @if($options['times_per_day'] === 1) selected @endif value="1">1 раз</option> |
72 | <option @if($options['times_per_day'] === 2) selected @endif value="2">2 раза</option> | 72 | <option @if($options['times_per_day'] === 2) selected @endif value="2">2 раза</option> |
73 | <option @if($options['times_per_day'] === 3) selected @endif value="3">3 раза</option> | 73 | <option @if($options['times_per_day'] === 3) selected @endif value="3">3 раза</option> |
74 | </select> | 74 | </select> |
75 | </div> | 75 | </div> |
76 | </div> | 76 | </div> |
77 | </div> | 77 | </div> |
78 | <label class="cabinet__inputs-item form-group"> | 78 | <label class="cabinet__inputs-item form-group"> |
79 | <div class="form-group__label">Выберите первое время обновления (по | 79 | <div class="form-group__label">Выберите первое время обновления (по |
80 | МСК)</div> | 80 | МСК)</div> |
81 | <div class="form-group__item"> | 81 | <div class="form-group__item"> |
82 | <span class="form-group__item-icon"> | 82 | <span class="form-group__item-icon"> |
83 | <svg> | 83 | <svg> |
84 | <use xlink:href="images/sprite.svg#date"></use> | 84 | <use xlink:href="images/sprite.svg#date"></use> |
85 | </svg> | 85 | </svg> |
86 | </span> | 86 | </span> |
87 | <input | 87 | <input |
88 | name="time_send_first" | 88 | name="time_send_first" |
89 | type="text" | 89 | type="text" |
90 | class="input js-picker input-picker" | 90 | class="input js-picker input-picker" |
91 | placeholder="Время" | 91 | placeholder="Время" |
92 | value="{{ $options['time_send_first'] }}" | 92 | value="{{ $options['time_send_first'] }}" |
93 | > | 93 | > |
94 | </div> | 94 | </div> |
95 | </label> | 95 | </label> |
96 | <label class="cabinet__inputs-item form-group"> | 96 | <label class="cabinet__inputs-item form-group"> |
97 | <div class="form-group__label">Выберите второе время обновления (по | 97 | <div class="form-group__label">Выберите второе время обновления (по |
98 | МСК)</div> | 98 | МСК)</div> |
99 | <div class="form-group__item"> | 99 | <div class="form-group__item"> |
100 | <span class="form-group__item-icon"> | 100 | <span class="form-group__item-icon"> |
101 | <svg> | 101 | <svg> |
102 | <use xlink:href="images/sprite.svg#date"></use> | 102 | <use xlink:href="images/sprite.svg#date"></use> |
103 | </svg> | 103 | </svg> |
104 | </span> | 104 | </span> |
105 | <input | 105 | <input |
106 | name="time_send_second" | 106 | name="time_send_second" |
107 | type="text" | 107 | type="text" |
108 | class="input js-picker input-picker" | 108 | class="input js-picker input-picker" |
109 | placeholder="Время" | 109 | placeholder="Время" |
110 | value="{{ $options['time_send_second'] }}" | 110 | value="{{ $options['time_send_second'] }}" |
111 | @if($options['times_per_day'] < 2) disabled @endif | 111 | @if($options['times_per_day'] < 2) disabled @endif |
112 | > | 112 | > |
113 | </div> | 113 | </div> |
114 | </label> | 114 | </label> |
115 | <label class="cabinet__inputs-item form-group"> | 115 | <label class="cabinet__inputs-item form-group"> |
116 | <div class="form-group__label">Выберите третье время обновления (по МСК)</div> | 116 | <div class="form-group__label">Выберите третье время обновления (по МСК)</div> |
117 | <div class="form-group__item"> | 117 | <div class="form-group__item"> |
118 | <span class="form-group__item-icon"> | 118 | <span class="form-group__item-icon"> |
119 | <svg> | 119 | <svg> |
120 | <use xlink:href="images/sprite.svg#date"></use> | 120 | <use xlink:href="images/sprite.svg#date"></use> |
121 | </svg> | 121 | </svg> |
122 | </span> | 122 | </span> |
123 | <input | 123 | <input |
124 | name="time_send_third" | 124 | name="time_send_third" |
125 | type="text" | 125 | type="text" |
126 | class="input js-picker input-picker" | 126 | class="input js-picker input-picker" |
127 | placeholder="Время" | 127 | placeholder="Время" |
128 | value="{{ $options['time_send_third'] }}" | 128 | value="{{ $options['time_send_third'] }}" |
129 | @if($options['times_per_day'] < 3) disabled @endif | 129 | @if($options['times_per_day'] < 3) disabled @endif |
130 | > | 130 | > |
131 | </div> | 131 | </div> |
132 | </label> | 132 | </label> |
133 | <div class="cabinet__inputs-item form-group"> | 133 | <div class="cabinet__inputs-item form-group"> |
134 | <label class="form-group__label">Выполнять это действие на протяжении</label> | 134 | <label class="form-group__label">Выполнять это действие на протяжении</label> |
135 | <div class="form-group__item"> | 135 | <div class="form-group__item"> |
136 | <div class="select"> | 136 | <div class="select"> |
137 | <select name="days_repeat" class="js-select2"> | 137 | <select name="days_repeat" class="js-select2"> |
138 | <option @if($options['days_repeat'] === null) selected @endif disabled>Выполнять это действие на протяжении</option> | 138 | <option @if($options['days_repeat'] === null) selected @endif disabled>Выполнять это действие на протяжении</option> |
139 | <option @if($options['days_repeat'] === 1) selected @endif value="1">1 день</option> | 139 | <option @if($options['days_repeat'] === 1) selected @endif value="1">1 день</option> |
140 | <option @if($options['days_repeat'] === 3) selected @endif value="3">3 дня</option> | 140 | <option @if($options['days_repeat'] === 3) selected @endif value="3">3 дня</option> |
141 | <option @if($options['days_repeat'] === 5) selected @endif value="5">5 дней</option> | 141 | <option @if($options['days_repeat'] === 5) selected @endif value="5">5 дней</option> |
142 | <option @if($options['days_repeat'] === 7) selected @endif value="7">7 дней</option> | 142 | <option @if($options['days_repeat'] === 7) selected @endif value="7">7 дней</option> |
143 | <option @if($options['days_repeat'] === 10) selected @endif value="10">10 дней</option> | 143 | <option @if($options['days_repeat'] === 10) selected @endif value="10">10 дней</option> |
144 | <option @if($options['days_repeat'] === 15) selected @endif value="15">15 дней</option> | 144 | <option @if($options['days_repeat'] === 15) selected @endif value="15">15 дней</option> |
145 | <option @if($options['days_repeat'] === 30) selected @endif value="30">30 дней</option> | 145 | <option @if($options['days_repeat'] === 30) selected @endif value="30">30 дней</option> |
146 | </select> | 146 | </select> |
147 | </div> | 147 | </div> |
148 | </div> | 148 | </div> |
149 | </div> | 149 | </div> |
150 | </div> | 150 | </div> |
151 | <div class="table table_spoiler"> | 151 | <div class="table table_spoiler"> |
152 | <div class="table__scroll"> | 152 | <div class="table__scroll"> |
153 | <div class="table__body table__body_min-width"> | 153 | <div class="table__body table__body_min-width"> |
154 | <table> | 154 | <table> |
155 | <thead> | 155 | <thead> |
156 | <tr> | 156 | <tr> |
157 | <th>Название</th> | 157 | <th>Название</th> |
158 | <th>Обновлять на сайте</th> | 158 | <th>Обновлять на сайте</th> |
159 | </tr> | 159 | </tr> |
160 | </thead> | 160 | </thead> |
161 | <tbody> | 161 | <tbody> |
162 | <tr name="resume_table_row" data-id="{{ $worker->id }}"> | 162 | <tr name="resume_table_row" data-id="{{ $worker->id }}"> |
163 | <td>Резюме</td> | 163 | <td>Резюме</td> |
164 | <td > | 164 | <td > |
165 | <span class="checkbox-empty"> | 165 | <span class="checkbox-empty"> |
166 | <label class="checkbox"> | 166 | <label class="checkbox"> |
167 | <input | 167 | <input |
168 | type="checkbox" | 168 | type="checkbox" |
169 | class="checkbox__input" | 169 | class="checkbox__input" |
170 | @if($options->autolift_site) checked @endif | 170 | @if($options->autolift_site) checked @endif |
171 | name="autolift_site" | 171 | name="autolift_site" |
172 | > | 172 | > |
173 | <span class="checkbox__icon"> | 173 | <span class="checkbox__icon"> |
174 | <svg> | 174 | <svg> |
175 | <use xlink:href="{{ asset('images/sprite.svg#v') }}"></use> | 175 | <use xlink:href="{{ asset('images/sprite.svg#v') }}"></use> |
176 | </svg> | 176 | </svg> |
177 | </span> | 177 | </span> |
178 | </label> | 178 | </label> |
179 | </span> | 179 | </span> |
180 | </td> | 180 | </td> |
181 | </tr> | 181 | </tr> |
182 | </tbody> | 182 | </tbody> |
183 | </table> | 183 | </table> |
184 | </div> | 184 | </div> |
185 | </div> | 185 | </div> |
186 | <div class="mrg-wrapper" style="display: flex; justify-content: center; clear: both;"> | 186 | <div class="mrg-wrapper" style="display: flex; justify-content: center; clear: both;"> |
187 | <ins class="mrg-tag" data-ad-client="ad-595528" data-ad-slot="595528" style="display: flex; align-items: center; justify-content: center; width: 300px; z-index: 1;"> | 187 | <ins class="mrg-tag" data-ad-client="ad-595528" data-ad-slot="595528" style="display: flex; align-items: center; justify-content: center; width: 300px; z-index: 1;"> |
188 | 188 | ||
189 | </ins> | 189 | </ins> |
190 | </div> | 190 | </div> |
191 | </div> | 191 | </div> |
192 | <div class="cabinet__inputs"> | 192 | <div class="cabinet__inputs"> |
193 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth"> | 193 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth"> |
194 | <button id="submit" type="button" class="button">Сохранить</button> | 194 | <button id="submit" type="button" class="button">Сохранить</button> |
195 | </div> | 195 | </div> |
196 | </div> | 196 | </div> |
197 | </div> | 197 | </div> |
198 | </form> | 198 | </form> |
199 | </div> | 199 | </div> |
200 | </div> | 200 | </div> |
201 | </section> | 201 | </section> |
202 | </div> | 202 | </div> |
203 | @endsection | 203 | @endsection |
204 | 204 |