Commit 298bab702d12ef5fbd096e9010885ca104fbabd2
1 parent
23f431cc5e
Exists in
master
fix send employerpopup
Showing 1 changed file with 2 additions and 1 deletions Inline Diff
resources/views/modals/send_employer.blade.php
1 | <script> | 1 | <script> |
2 | $(document).on('change', '#file', function() { | 2 | $(document).on('change', '#file', function() { |
3 | let dirArray = $(this).val().split('\\') | 3 | let dirArray = $(this).val().split('\\') |
4 | $('#this_final_name').html(dirArray[dirArray.length - 1]) | 4 | $('#this_final_name').html(dirArray[dirArray.length - 1]) |
5 | $.fancybox.getInstance().current.$content.find('#div_file').removeClass('d-none') | ||
5 | }); | 6 | }); |
6 | </script> | 7 | </script> |
7 | <div id="send2" class="modal"> | 8 | <div id="send2" class="modal"> |
8 | <div class="modal__body"> | 9 | <div class="modal__body"> |
9 | <div class="modal__title">Отправить сообщение</div> | 10 | <div class="modal__title">Отправить сообщение</div> |
10 | <form class="modal__form" id="form_from_emp" name="form_from_emp" enctype="multipart/form-data" action="{{ route('employer.new_message') }}" method="POST"> | 11 | <form class="modal__form" id="form_from_emp" name="form_from_emp" enctype="multipart/form-data" action="{{ route('employer.new_message') }}" method="POST"> |
11 | @csrf | 12 | @csrf |
12 | <div class="modal__form-item" style="display:none"> | 13 | <div class="modal__form-item" style="display:none"> |
13 | <!-- Отправитель сообщения: --> | 14 | <!-- Отправитель сообщения: --> |
14 | <input type="hidden" id="_user_id" name="_user_id" class="input" placeholder="user_id" value=""> | 15 | <input type="hidden" id="_user_id" name="_user_id" class="input" placeholder="user_id" value=""> |
15 | <!-- Получатель сообщения: --> | 16 | <!-- Получатель сообщения: --> |
16 | <input type="hidden" id="_to_user_id" name="_to_user_id" class="input" placeholder="to_user_id" value=""> | 17 | <input type="hidden" id="_to_user_id" name="_to_user_id" class="input" placeholder="to_user_id" value=""> |
17 | <!-- Вакансия: --> | 18 | <!-- Вакансия: --> |
18 | <input type="hidden" id="_vacancy" name="_vacancy" class="input" placeholder="vacancy" value=""> | 19 | <input type="hidden" id="_vacancy" name="_vacancy" class="input" placeholder="vacancy" value=""> |
19 | </div> | 20 | </div> |
20 | <div class="modal__form-item"> | 21 | <div class="modal__form-item"> |
21 | <input id="i1" type="text" name="title" class="input" placeholder="Тема" required> | 22 | <input id="i1" type="text" name="title" class="input" placeholder="Тема" required> |
22 | <label for="i1">Не заполнено поле</label> | 23 | <label for="i1">Не заполнено поле</label> |
23 | </div> | 24 | </div> |
24 | <div class="modal__form-item"> | 25 | <div class="modal__form-item"> |
25 | <textarea id="i2" class="textarea" name="text" placeholder="Напишите текст с предложением о работе" required></textarea> | 26 | <textarea id="i2" class="textarea" name="text" placeholder="Напишите текст с предложением о работе" required></textarea> |
26 | <label for="i2">Не заполнено поле</label> | 27 | <label for="i2">Не заполнено поле</label> |
27 | </div> | 28 | </div> |
28 | <div class="modal__form-item"> | 29 | <div class="modal__form-item"> |
29 | <div class="file"> | 30 | <div class="file"> |
30 | <label class="file__input"> | 31 | <label class="file__input"> |
31 | <input type="file" name="file" id="file" accept=".pdf, .doc, .docx"> | 32 | <input type="file" name="file" id="file" accept=".pdf, .doc, .docx"> |
32 | <span class="button button_light"> | 33 | <span class="button button_light"> |
33 | <svg> | 34 | <svg> |
34 | <use xlink:href="{{ asset('images/sprite.svg#share') }}"></use> | 35 | <use xlink:href="{{ asset('images/sprite.svg#share') }}"></use> |
35 | </svg> | 36 | </svg> |
36 | Прикрепить документ | 37 | Прикрепить документ |
37 | </span> | 38 | </span> |
38 | </label> | 39 | </label> |
39 | 40 | ||
40 | <div class="file__list"> | 41 | <div class="file__list d-none" id="div_file"> |
41 | <div class="file__list-item"> | 42 | <div class="file__list-item"> |
42 | <div class="file__list-item-left"> | 43 | <div class="file__list-item-left"> |
43 | <svg> | 44 | <svg> |
44 | <use xlink:href="{{ asset('images/sprite.svg#clip') }}"></use> | 45 | <use xlink:href="{{ asset('images/sprite.svg#clip') }}"></use> |
45 | </svg> | 46 | </svg> |
46 | <span id="this_final_name" name="this_final_name"></span> | 47 | <span id="this_final_name" name="this_final_name"></span> |
47 | </div> | 48 | </div> |
48 | <button type="button" class="file__list-item-right js-parent-remove"> | 49 | <button type="button" class="file__list-item-right js-parent-remove"> |
49 | <svg> | 50 | <svg> |
50 | <use xlink:href="{{ asset('images/sprite.svg#cross-bold') }}"></use> | 51 | <use xlink:href="{{ asset('images/sprite.svg#cross-bold') }}"></use> |
51 | </svg> | 52 | </svg> |
52 | </button> | 53 | </button> |
53 | </div> | 54 | </div> |
54 | </div> | 55 | </div> |
55 | </div> | 56 | </div> |
56 | </div> | 57 | </div> |
57 | <div class="modal__form-item"> | 58 | <div class="modal__form-item"> |
58 | <button type="submit" class="button">Отправить</button> | 59 | <button type="submit" class="button">Отправить</button> |
59 | </div> | 60 | </div> |
60 | </form> | 61 | </form> |
61 | </div> | 62 | </div> |
62 | </div> | 63 | </div> |
63 | 64 |