mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
advanced search (bis)
Ce commit contient des modifications qui sont peut-être dans un autre commit d'une autre branche.
This commit is contained in:
@@ -66,6 +66,10 @@ chill_main_search:
|
||||
chill_main_advanced_search:
|
||||
path: /{_locale}/search/advanced/{name}
|
||||
defaults: { _controller: ChillMainBundle:Search:advancedSearch }
|
||||
|
||||
chill_main_advanced_search_list:
|
||||
path: /{_locale}/search/advanced
|
||||
defaults: { _controller: ChillMainBundle:Search:advancedSearchList }
|
||||
|
||||
login:
|
||||
path: /login
|
||||
|
@@ -108,5 +108,12 @@ services:
|
||||
- "@security.token_storage"
|
||||
- "@chill.main.scope_repository"
|
||||
- "@chill.main.helper.translatable_string"
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
chill.main.form.advanced_search_type:
|
||||
class: Chill\MainBundle\Form\AdvancedSearchType
|
||||
arguments:
|
||||
- "@chill.main.search_provider"
|
||||
tags:
|
||||
- { name: form.type }
|
4
Resources/translations/admin.fr.yml
Normal file
4
Resources/translations/admin.fr.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
welcome_message_raw: |
|
||||
<p>Dans l'interface d'administration, vous pouvez configurer votre instance selon vos besoins.</p>
|
||||
|
||||
|
17
Resources/views/Admin/index.html.twig
Normal file
17
Resources/views/Admin/index.html.twig
Normal file
@@ -0,0 +1,17 @@
|
||||
{% extends "ChillMainBundle::Admin/layoutWithVerticalMenu.html.twig" %}
|
||||
|
||||
{% block admin_content %}
|
||||
<h1>{{ 'Administration interface'|trans }}</h1>
|
||||
|
||||
{{ 'welcome_message_raw'|trans|raw }}
|
||||
|
||||
<div>
|
||||
<h2>{{ 'Configuration alerts'|trans }}</h2>
|
||||
|
||||
<p>{{ 'Here you can check the configuration of your instance.'|trans }}</p>
|
||||
|
||||
{{ chill_widget('configuration_warnings', {}) }}
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@@ -17,10 +17,14 @@
|
||||
{% extends "ChillMainBundle::layout.html.twig" %}
|
||||
|
||||
|
||||
{% block title 'Advanced search for %name%'|trans({ '%name%' : name }) %}
|
||||
{% block title title|trans %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div style="margin-right: 2em; margin-left: 2em;">
|
||||
|
||||
<h1>{{ title|trans }}</h1>
|
||||
|
||||
{{ form_start(form) }}
|
||||
|
||||
{% for f in form %}
|
||||
@@ -28,9 +32,7 @@
|
||||
{{ form_row(f) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
{{ form_widget(form.submit, { 'attr' : { 'class': 'sc-button bt-create change-icon' } } ) }}
|
||||
@@ -39,4 +41,6 @@
|
||||
|
||||
{{ form_end(form) }}
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user