Sfoglia il codice sorgente

Ajout d'un span help sur la page home.

bastien 13 anni fa
parent
commit
150aed9c8b

+ 4 - 1
app/Resources/translations/userui.fr.yml Vedi File

41
               Copier ici le lien internet (http://) pointant sur la ressource 
41
               Copier ici le lien internet (http://) pointant sur la ressource 
42
               que vous souhaitez partager.
42
               que vous souhaitez partager.
43
   name:
43
   name:
44
-    name:     Nom
44
+    name:     Nom
45
+    
46
+tags_filter:
47
+  help:       Pour ne pas filtrer avec des tags, supprimez les tous de la liste.

+ 1 - 5
src/Muzich/CoreBundle/Resources/views/SearchElement/form.html.twig Vedi File

1
-<form action="{{ path('search_elements') }}" method="post" {{ form_enctype(search_form) }}>
2
-  
1
+
3
   {{ form_errors(search_form) }}
2
   {{ form_errors(search_form) }}
4
 
3
 
5
   <div class="field">
4
   <div class="field">
12
   
11
   
13
   {{ form_row(search_form.tags) }}
12
   {{ form_row(search_form.tags) }}
14
   {{ form_row(search_form._token) }}
13
   {{ form_row(search_form._token) }}
15
-
16
-  <input type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
17
-</form>

+ 11 - 4
src/Muzich/HomeBundle/Resources/views/Home/index.html.twig Vedi File

25
     {{ 'home.add_element'|trans({}, 'navigationui') }} >>
25
     {{ 'home.add_element'|trans({}, 'navigationui') }} >>
26
   </a>
26
   </a>
27
 
27
 
28
-  {% include "MuzichCoreBundle:SearchElement:form.html.twig" with { 
29
-    'form_name'      : search_form_name,
30
-    'search_tags'    : search_tags_id
31
-  } %}
28
+  <form action="{{ path('search_elements') }}" method="post" {{ form_enctype(search_form) }}>
29
+
30
+    {% include "MuzichCoreBundle:SearchElement:form.html.twig" with { 
31
+      'form_name'      : search_form_name,
32
+      'search_tags'    : search_tags_id
33
+    } %}
34
+
35
+    <span class="help">{{ 'tags_filter.help'|trans({}, 'userui') }}</span>
36
+    <br />
37
+    <input type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
38
+  </form>
32
 
39
 
33
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" %}
40
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" %}
34
     
41