forked from kiloutyg/docauposte2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upload.html.twig
executable file
·109 lines (106 loc) · 2.81 KB
/
upload.html.twig
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{% if is_granted('ROLE_LINE_ADMIN') %}
<div
class="accordion-item">
<h2
class="accordion-header"
id="headingUpload">
<button
class="accordion-button fs-3 collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#collapseUpload"
aria-expanded="false"
aria-controls="collapseUpload">
<strong>
Formulaire d'upload :
</strong>
</button>
</h2>
<div
id="collapseUpload"
class="accordion-collapse collapse"
aria-labelledby="headingUpload"
data-bs-parent="#accordionAdmin">
<div
class="accordion-body accordion-bg shadow shadow-inset">
<div
class="card border-0 shadow rounded-3 my-5">
<div
class="card-body">
<div
class="row">
<form
action="{{path('app_generic_upload_files')}}" method="POST"
enctype="multipart/form-data">
<div
class="card border-0 shadow rounded-3 my-5 bg-secondary">
<div
class="card-body ">
<h4
class="card-title text-white m-0">
<strong>
Ajouter un fichier :
</strong>
</h4>
<form
class="form-floating justify-content-center "
id="upload-form"
action="{{path('app_generic_upload_files')}}" method="POST"
enctype="multipart/form-data">
<div
class="row d-flex align-items-center gy-5">
<div
class="fallback">
<label
for="file"
class="form-label"
style="color:white">
Choisissez un fichier :
</label>
<input
type="file"
class="form-control"
id="file"
name="file"
accept=".pdf"
required>
<div
class="mb-3">
<label
for="newFileName"
class="form-label"
style="color:white">
Nom du fichier :
</label>
<input
type="text"
class="form-control"
id="newFileName"
name="newFileName"
placeholder="Entrer un nouveau nom de fichier (optionnel)">
</div>
{% include 'services/uploads/uploads_components/cascading_dropdowns.html.twig' %}
</div>
</div>
<div
class="row justify-content-center">
<div
class="d-grid col-md-8">
<button
type="submit"
class="btn btn-primary text-uppercase fw-bold ">
Charger
</button>
</div>
</div>
</form>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}