|
| 1 | +{% set bootstrapVersion = 5 %} |
1 | 2 | {% extends 'base.html.twig' %}
|
2 | 3 | {% block title %}Edit Notice - {% endblock %}
|
3 | 4 | {% block body %}
|
4 |
| - <ol class="breadcrumb"> |
5 |
| - <li><a href="{{ path(routePrefix ~ 'home') }}">Home</a></li> |
6 |
| - <li><a href="{{ path(routePrefix ~ 'admin_home') }}">Admin</a></li> |
7 |
| - <li><a href="{{ path(routePrefix ~ 'admin_notices') }}">Page Notices</a></li> |
8 |
| - <li class="active">{{ notice.id ? 'Edit' : 'Create' }} Page Notice</li> |
9 |
| - </ol> |
10 |
| - <div class="page-header"> |
| 5 | + {% form_theme form 'bootstrap_5_layout.html.twig' %} |
| 6 | + <nav class="mt-4" aria-label="breadcrumb"> |
| 7 | + <ol class="breadcrumb"> |
| 8 | + <li class="breadcrumb-item"><a href="{{ path(routePrefix ~ 'home') }}">Home</a></li> |
| 9 | + <li class="breadcrumb-item"><a href="{{ path(routePrefix ~ 'admin_home') }}">Admin</a></li> |
| 10 | + <li class="breadcrumb-item"><a href="{{ path(routePrefix ~ 'admin_notices') }}">Page Notices</a></li> |
| 11 | + <li class="breadcrumb-item active">{{ notice.id ? 'Edit' : 'Create' }} Page Notice</li> |
| 12 | + </ol> |
| 13 | + </nav> |
| 14 | + <div class="page-header pb-1 mb-3 border-bottom"> |
11 | 15 | <h2><i class="fa fa-info-circle" aria-hidden="true"></i> {{ notice.id ? 'Edit' : 'Create' }} Page Notice</h2>
|
12 | 16 | </div>
|
13 | 17 | <div class="row">
|
14 |
| - <div class="col-sm-8 col-sm-offset-2"> |
15 |
| - {{ form_start(form, { attr: { class: 'warn-unsaved prevent-resubmit', 'data-route': routePrefix } }) }} |
| 18 | + <div class="col-sm-8 offset-sm-2"> |
| 19 | + {{ form_start(form, { attr: { class: 'warn-unsaved prevent-resubmit page-notice-form', 'data-route': routePrefix } }) }} |
16 | 20 | {{ form_errors(form) }}
|
17 | 21 |
|
18 | 22 | {{ form_row(form.status) }}
|
|
26 | 30 | </ul>
|
27 | 31 | </div>
|
28 | 32 |
|
29 |
| - <div class="panel panel-default"> |
30 |
| - <div class="panel-heading"> |
31 |
| - <h3 class="panel-title">Timing</h3> |
| 33 | + <div class="card"> |
| 34 | + <div class="card-header"> |
| 35 | + <h5 class="card-title">Timing</h5> |
32 | 36 | </div>
|
33 |
| - <div class="panel-body"> |
| 37 | + <div class="card-body"> |
34 | 38 | <p><strong>Your time zone</strong>: {{ timezone_display(app.user.info.timezone)|default('Not set!') }} <a href="{{ path('settings', { return: settings_return_url }) }}" class="small">change</a></p>
|
35 | 39 | {{ form_rest(form) }}
|
36 | 40 | <div class="alert alert-info">
|
|
43 | 47 | </div>
|
44 | 48 | </div>
|
45 | 49 | </div>
|
46 |
| - <p> |
| 50 | + <p class="my-3"> |
47 | 51 | <button type="submit" class="btn btn-primary">Save</button>
|
48 |
| - <a class="btn btn-default" href="{{ path(routePrefix ~ 'admin_notices') }}">Cancel</a> |
| 52 | + <a class="btn btn-secondary" href="{{ path(routePrefix ~ 'admin_notices') }}">Cancel</a> |
49 | 53 | {% if notice.id is defined and notice.id is not empty %}
|
50 |
| - <button type="submit" name="delete" class="btn btn-danger pull-right confirm">Delete</button> |
| 54 | + <button type="submit" name="delete" class="btn btn-danger float-end confirm">Delete</button> |
51 | 55 | {% endif %}
|
52 | 56 | </p>
|
53 | 57 | {{ form_end(form) }}
|
|
0 commit comments