|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
- {% trans_default_domain ea.i18n.translationDomain %}
-
- <!DOCTYPE html>
- <html lang="{{ ea.i18n.htmlLocale }}" dir="{{ ea.i18n.textDirection }}">
- <head>
- {% block head_metas %}
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="robots"
- content="noindex, nofollow, noarchive, nosnippet, noodp, noimageindex, notranslate, nocache"/>
- <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
- <meta name="generator" content="EasyAdmin"/>
- {% endblock head_metas %}
-
- <title>{% block page_title %}Administration | {{ block('content_title')|striptags|raw }}{% endblock %}</title>
-
- {# {% block head_stylesheets %}
- <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.css') }}">
- {% endblock %} #}
-
- <link rel="stylesheet"
- href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
-
- {% block configured_stylesheets %}
- {% for css_asset in ea.assets.cssFiles ?? [] %}
- <link rel="stylesheet" href="{{ asset(css_asset) }}">
- {% endfor %}
-
-
- {% for webpack_encore_entry in ea.assets.webpackEncoreAssets ?? [] %}
- {{ ea_call_function_if_exists('encore_entry_link_tags', webpack_encore_entry) }}
- {% endfor %}
- {% endblock %}
-
- {% block head_favicon %}
- <link rel="shortcut icon" href="{{ asset(ea.dashboardFaviconPath) }}">
- {% endblock %}
-
- {# {% block head_javascript %}
- <script src="{{ asset('bundles/easyadmin/app.js') }}"></script>
- {% endblock head_javascript %} #}
-
-
- {# {% if 'rtl' == ea.i18n.textDirection %}
- <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.rtl.css') }}">
- <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app-custom-rtl.css') }}">
- {% endif %} #}
-
- {% block configured_head_contents %}
- {% for htmlContent in ea.assets.headContents ?? [] %}
- {{ htmlContent|raw }}
- {% endfor %}
- {% endblock %}
- </head>
-
- {% block body %}
- <body id="{% block body_id %}{% endblock %}"
- class="admin sidebar-mini layout-fixed {% block body_class %}{% endblock %}">
-
- {% block javascript_page_layout %}
- <script>
- document.body.classList.add(
- 'ea-content-width-' + (localStorage.getItem('ea/content/width') || '{{ ea.crud.contentWidth ?? ea.dashboardContentWidth ?? 'normal' }}'),
- 'ea-sidebar-width-' + (localStorage.getItem('ea/sidebar/width') || '{{ ea.crud.sidebarWidth ?? ea.dashboardSidebarWidth ?? 'normal' }}')
- );
- </script>
- {% endblock javascript_page_layout %}
-
- {% block wrapper_wrapper %}
- {% block flash_messages %}
- {{ include(ea.templatePath('flash_messages')) }}
- {% endblock flash_messages %}
-
- <div class="wrapper">
- {% block wrapper %}
- {% block navbar_header %}
- {{ include('@LcSov/adminlte/block/navbar_header.html.twig') }}
- {% endblock %}
-
- <aside class="main-sidebar sidebar-dark-primary elevation-4">
- {% block sidebar %}
- {% block header_logo %}
- <a class="brand-link text-center"
- title="{{ ea.dashboardTitle|striptags }}"
- href="{{ path(ea.dashboardRouteName) }}">
- {{ ea.dashboardTitle|raw }}
- <!--<span class="brand-text font-weight-light">Texte logo</span>-->
- </a>
- {% endblock header_logo %}
-
- <div class="sidebar">
- {% block main_menu_wrapper %}
- {{ include(ea.templatePath('main_menu')) }}
- {% endblock main_menu_wrapper %}
- </div>
- {% endblock sidebar %}
- </aside>
-
- <div class="content-wrapper" style="min-height: 554px;">
- {% block content %}
- {% block content_header_wrapper %}
-
- <section class="content-header">
- <div class="container-fluid">
- <div class="row mb-2">
-
- {% set reminders = sov_get_reminders() %}
- {% if reminders %}
- <div class="col-sm-12">
- <div id="reminders" class="card card-outline card-danger">
- <ul class="todo-list">
- {% for reminder in reminders %}
- <li>
- <label class="big form-check-label">
- <input type="checkbox" name="" value="1" class="form-check-input checkbox-valid-reminder" data-url="/admin/?action=setReminderDone&entity=Reminder&id=90">
- <span class="checkmark"></span>
- </label>
- <div class="text">
- {{ reminder.description }}
- </div>
- <div class="tools">
- <button type="button" class="btn-sm btn-success" data-toggle="modal" data-target="#modal-reminder-91">
- <i class="fas fa-eye"></i>
- </button>
- <button type="button" class="btn-sm btn-info btn-edit-reminder" data-url="/admin/?action=edit&entity=Reminder&id=91">
- <i class="fas fa-edit"></i>
- </button>
- </div>
- </li>
- {% endfor %}
- </ul>
- </div>
- </div>
- {% endif %}
-
-
- {% set has_help_message = (ea.crud.helpMessage ?? '') is not empty %}
- {% block content_header %}
- <div class="col-sm-6">
- <h1 class="m-0 text-dark">
- {% block content_title %}{% endblock %}
- </h1>
-
- {% block content_breadcrumb %}
- {% endblock content_breadcrumb %}
- {# {% block content_help %}
- {% if has_help_message %}
- <div class="text-muted">
- {{ ea.crud.helpMessage|e('html_attr') }}
- </div>
- {% endif %}
- {% endblock %} #}
- </div><!-- /.col -->
- <div class="col-sm-6">
- {% block page_actions_wrapper %}
- <div class="btn-list float-sm-right">
- {% block page_actions %}{% endblock %}
- </div>
- {% endblock %}
- </div><!-- /.col -->
- {% endblock %}
- </div><!-- /.row -->
- </div><!-- /.container-fluid -->
- </section>
- {% endblock %}
-
- <section class="content">
- <div class="container-fluid">
- {% block main %}{% endblock %}
- </div>
- </section>
-
-
- {% endblock %}
- </div>
-
- {% block footer %}
- {% set content_footer = block('content_footer') is defined ? block('content_footer') : '' %}
-
- <footer class="main-footer">
- <div class="float-right d-none d-sm-block">
- <b>SovBundle Version</b> 1.0
- </div>
- <strong>Copyright © {{ 'now'|date('Y') }} <a href="http://laclic.fr">La Clic</a>.</strong> All
- rights
- reserved.
- </footer>
- {% endblock %}
-
-
- {% endblock wrapper %}
- </div>
- {% endblock wrapper_wrapper %}
-
- {% block configured_javascripts %}
- {% for js_asset in ea.assets.jsFiles ?? [] %}
- <script src="{{ asset(js_asset) }}"></script>
- {% endfor %}
-
- {% for webpack_encore_entry in ea.assets.webpackEncoreAssets ?? [] %}
- {{ ea_call_function_if_exists('encore_entry_script_tags', webpack_encore_entry, null, '_default', {'defer': false}) }}
- {% endfor %}
- {% endblock %}
-
- {% block body_javascript %}{% endblock body_javascript %}
-
- {% block configured_body_contents %}
- {% for htmlContent in ea.assets.bodyContents ?? [] %}
- {{ htmlContent|raw }}
- {% endfor %}
- {% endblock %}
-
- {% include '@LcSov/adminlte/block/modal_filemanager.html.twig' %}
-
- {% if app.session is not null and app.session.started %}
- {% set flash_messages = app.session.flashbag.all %}
- {% if flash_messages|length > 0 %}
- <script type="text/javascript">
- $(document).ready(function () {
- {% for label, messages in flash_messages %}
- {% for message in messages %}
- Notification.add("{{ label }}", "{{ message|trans|raw|replace({'"': '\"'}) }}");
- {% endfor %}
- {% endfor %}
- });
- </script>
- {% endif %}
- {% endif %}
-
-
-
- {% block append_body %}{% endblock %}
-
- </body>
- {% endblock body %}
- </html>
|