|
1 | | -<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> |
2 | | - <h1 class="h2"> |
3 | | - <i aria-hidden="true" class="bi bi-book bi-fw"></i> |
4 | | - {{ adminHeaderExport }} |
5 | | - </h1> |
6 | | -</div> |
| 1 | +{% extends '@admin/index.twig' %} |
7 | 2 |
|
8 | | -<div class="row"> |
9 | | - <div class="col-12"> |
10 | | - <div class="card shadow"> |
11 | | - <div class="card-body"> |
| 3 | +{% block content %} |
| 4 | + <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> |
| 5 | + <h1 class="h2"> |
| 6 | + <i aria-hidden="true" class="bi bi-book bi-fw"></i> |
| 7 | + {{ adminHeaderExport }} |
| 8 | + </h1> |
| 9 | + </div> |
12 | 10 |
|
13 | | - {% if hasNoFaqs %} |
14 | | - <div class="alert alert-warning" role="alert"> |
15 | | - {{ errorMessageNoFaqs }} |
16 | | - </div> |
17 | | - {% endif %} |
| 11 | + <div class="row"> |
| 12 | + <div class="col-12"> |
| 13 | + <div class="card shadow"> |
| 14 | + <div class="card-body"> |
18 | 15 |
|
19 | | - {% if hasCategories %} |
20 | | - <form action="./api/export/file" method="post" accept-charset="utf-8"> |
21 | | - <h5>{{ headerCategories }}</h5> |
22 | | - <div class="row mb-2"> |
23 | | - <label class="col-lg-2 col-form-label" for="categoryId"> |
24 | | - {{ msgCategory }} |
25 | | - </label> |
26 | | - <div class="col-lg-4"> |
27 | | - <select name="categoryId" id="categoryId" class="form-select"> |
28 | | - <option value="0">{{ msgAllCategories }}</option> |
29 | | - {{ categoryOptions | raw }} |
30 | | - </select> |
31 | | - </div> |
32 | | - </div> |
33 | | - <div class="row mb-2"> |
34 | | - <div class="offset-lg-2 col-lg-4"> |
35 | | - <div class="form-check"> |
36 | | - <input class="form-check-input" type="checkbox" value="1" id="downwards" name="downwards" checked> |
37 | | - <label class="form-check-label" for="downwards">{{ msgWithSubCategories }}</label> |
38 | | - </div> |
39 | | - </div> |
| 16 | + {% if hasNoFaqs %} |
| 17 | + <div class="alert alert-warning" role="alert"> |
| 18 | + {{ errorMessageNoFaqs }} |
40 | 19 | </div> |
| 20 | + {% endif %} |
41 | 21 |
|
42 | | - <h5>{{ headerExportType }}</h5> |
43 | | - <div class="row mb-2"> |
44 | | - <div class="offset-lg-2 col-lg-8"> |
45 | | - <p>{{ msgChooseExportType }}</p> |
46 | | - <div class="form-check"> |
47 | | - <input class="form-check-input" type="radio" name="export-type" id="json" value="json" checked> |
48 | | - <label class="form-check-label" for="json">JSON</label> |
| 22 | + {% if hasCategories %} |
| 23 | + <form action="./api/export/file" method="post" accept-charset="utf-8"> |
| 24 | + <h5>{{ headerCategories }}</h5> |
| 25 | + <div class="row mb-2"> |
| 26 | + <label class="col-lg-2 col-form-label" for="categoryId"> |
| 27 | + {{ msgCategory }} |
| 28 | + </label> |
| 29 | + <div class="col-lg-4"> |
| 30 | + <select name="categoryId" id="categoryId" class="form-select"> |
| 31 | + <option value="0">{{ msgAllCategories }}</option> |
| 32 | + {{ categoryOptions | raw }} |
| 33 | + </select> |
49 | 34 | </div> |
50 | | - <div class="form-check"> |
51 | | - <input class="form-check-input" type="radio" name="export-type" id="pdf" value="pdf"> |
52 | | - <label class="form-check-label" for="pdf">PDF</label> |
| 35 | + </div> |
| 36 | + <div class="row mb-2"> |
| 37 | + <div class="offset-lg-2 col-lg-4"> |
| 38 | + <div class="form-check"> |
| 39 | + <input class="form-check-input" type="checkbox" value="1" id="downwards" name="downwards" checked> |
| 40 | + <label class="form-check-label" for="downwards">{{ msgWithSubCategories }}</label> |
| 41 | + </div> |
53 | 42 | </div> |
54 | 43 | </div> |
55 | | - </div> |
56 | 44 |
|
57 | | - <div class="row mb-2"> |
58 | | - <div class="offset-lg-2 col-lg-4"> |
59 | | - <p>{{ msgViewType }}</p> |
60 | | - <div class="form-check"> |
61 | | - <input class="form-check-input" type="radio" name="disposition" id="{{ msgDownloadType }}" |
62 | | - value="{{ msgDownloadType }}" checked> |
63 | | - <label class="form-check-label" for="{{ msgDownloadType }}">{{ msgDownload }}</label> |
| 45 | + <h5>{{ headerExportType }}</h5> |
| 46 | + <div class="row mb-2"> |
| 47 | + <div class="offset-lg-2 col-lg-8"> |
| 48 | + <p>{{ msgChooseExportType }}</p> |
| 49 | + <div class="form-check"> |
| 50 | + <input class="form-check-input" type="radio" name="export-type" id="json" value="json" checked> |
| 51 | + <label class="form-check-label" for="json">JSON</label> |
| 52 | + </div> |
| 53 | + <div class="form-check"> |
| 54 | + <input class="form-check-input" type="radio" name="export-type" id="pdf" value="pdf"> |
| 55 | + <label class="form-check-label" for="pdf">PDF</label> |
| 56 | + </div> |
64 | 57 | </div> |
65 | | - <div class="form-check"> |
66 | | - <input class="form-check-input" type="radio" name="disposition" |
67 | | - id="{{ msgInlineType }}" value="{{ msgInlineType }}"> |
68 | | - <label class="form-check-label" for="{{ msgInlineType }}"> |
69 | | - {{ msgInline }} |
70 | | - </label> |
| 58 | + </div> |
| 59 | + |
| 60 | + <div class="row mb-2"> |
| 61 | + <div class="offset-lg-2 col-lg-4"> |
| 62 | + <p>{{ msgViewType }}</p> |
| 63 | + <div class="form-check"> |
| 64 | + <input class="form-check-input" type="radio" name="disposition" id="{{ msgDownloadType }}" |
| 65 | + value="{{ msgDownloadType }}" checked> |
| 66 | + <label class="form-check-label" for="{{ msgDownloadType }}">{{ msgDownload }}</label> |
| 67 | + </div> |
| 68 | + <div class="form-check"> |
| 69 | + <input class="form-check-input" type="radio" name="disposition" |
| 70 | + id="{{ msgInlineType }}" value="{{ msgInlineType }}"> |
| 71 | + <label class="form-check-label" for="{{ msgInlineType }}"> |
| 72 | + {{ msgInline }} |
| 73 | + </label> |
| 74 | + </div> |
71 | 75 | </div> |
72 | 76 | </div> |
73 | | - </div> |
74 | 77 |
|
75 | | - <div class="row mb-2"> |
76 | | - <div class="offset-lg-2 col-lg-4"> |
77 | | - <button class="btn btn-secondary" type="reset" name="resetExport"> |
78 | | - {{ buttonReset }} |
79 | | - </button> |
80 | | - <button class="btn btn-primary" type="submit" name="submitExport" formtarget="_blank"> |
81 | | - {{ buttonExport }} |
82 | | - </button> |
| 78 | + <div class="row mb-2"> |
| 79 | + <div class="offset-lg-2 col-lg-4"> |
| 80 | + <button class="btn btn-secondary" type="reset" name="resetExport"> |
| 81 | + {{ buttonReset }} |
| 82 | + </button> |
| 83 | + <button class="btn btn-primary" type="submit" name="submitExport" formtarget="_blank"> |
| 84 | + {{ buttonExport }} |
| 85 | + </button> |
| 86 | + </div> |
83 | 87 | </div> |
84 | | - </div> |
85 | 88 |
|
86 | | - </form> |
87 | | - {% endif %} |
| 89 | + </form> |
| 90 | + {% endif %} |
88 | 91 |
|
| 92 | + </div> |
89 | 93 | </div> |
90 | | - </div> |
91 | 94 |
|
| 95 | + </div> |
92 | 96 | </div> |
93 | | -</div> |
| 97 | +{% endblock %} |
0 commit comments