Browse Source

Ajout d'un span help sur la page home.

bastien 13 years ago
parent
commit
150aed9c8b

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

@@ -41,4 +41,7 @@ element_add:
41 41
               Copier ici le lien internet (http://) pointant sur la ressource 
42 42
               que vous souhaitez partager.
43 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 View File

@@ -1,5 +1,4 @@
1
-<form action="{{ path('search_elements') }}" method="post" {{ form_enctype(search_form) }}>
2
-  
1
+
3 2
   {{ form_errors(search_form) }}
4 3
 
5 4
   <div class="field">
@@ -12,6 +11,3 @@
12 11
   
13 12
   {{ form_row(search_form.tags) }}
14 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 View File

@@ -25,10 +25,17 @@
25 25
     {{ 'home.add_element'|trans({}, 'navigationui') }} >>
26 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 40
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" %}
34 41