send_worker_new.blade.php
3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<script>
$(document).on('change', '#send_name', function() {
let dirArray = $(this).val().split('\\')
$('#send_name_file').html(dirArray[dirArray.length - 1])
});
</script>
<div id="send" class="modal">
<div class="modal__body">
<div class="modal__title">Отправить сообщение работодателю</div>
<form class="modal__form" id="form_worker" name="form_worker" enctype="multipart/form-data" action="{{ route('worker.new_message') }}" method="POST">
@csrf
<div class="modal__form-item" style="display: none">
Отправитель сообщения:
<input type="text" id="send_user_id" name="send_user_id" class="input" placeholder="user_id" value="">
Получатель сообщения:
<input type="text" id="send_to_user_id" name="send_to_user_id" class="input" placeholder="to_user_id" value="">
Вакансия:
<input type="text" id="send_vacancy" name="send_vacancy" class="input" placeholder="vacancy" value="">
Должность:
<input type="text" id="send_job_title_id" name="send_job_title_id" class="input" placeholder="vacancy" value="0">
</div>
<div class="modal__form-item send_title_div error_">
<input id="send_title" name="send_title" type="text" class="input" placeholder="Тема" required>
<label for="title">Не заполнено поле</label>
</div>
<div class="modal__form-item send_text_div">
<textarea id="i2" class="textarea" id="send_text" name="send_text" placeholder="Напишите текст с предложением о работе" required></textarea>
<label for="i2">Не заполнено поле</label>
</div>
<div class="modal__form-item">
<div class="file">
<label class="file__input" id="btn_send_file" name="btn_send_file">
<input type="file" name="send_file" id="send_name" accept=".pdf, .xls, .xlsx">
<span class="button button_light">
<svg>
<use xlink:href="{{ asset('images/sprite.svg#share') }}"></use>
</svg>
Прикрепить файл-документ
</span>
</label>
<div class="file__list" id="div_file" name="div_file">
<div class="file__list-item">
<div class="file__list-item-left">
<svg>
<use xlink:href="{{ asset('images/sprite.svg#clip') }}"></use>
</svg>
<span id="send_name_file" name="send_name_file"></span>
</div>
<button type="button" class="file__list-item-right js-parent-remove">
<svg>
<use xlink:href="{{ asset('images/sprite.svg#cross-bold') }}"></use>
</svg>
</button>
</div>
</div>
</div>
</div>
<div class="modal__form-item">
<button type="submit" id="submit_form_worker" name="submit_form_worker" class="button">Отправить</button>
</div>
</form>
</div>
</div>