Browse Source

Classe button sur les input et liens

bastien 13 years ago
parent
commit
b0cb9fb9bd

+ 2 - 2
src/Muzich/CoreBundle/Resources/views/Element/ajax.element.edit.html.twig View File

6
     'form_name'     : form_name
6
     'form_name'     : form_name
7
   } %}
7
   } %}
8
 
8
 
9
-  <input type="button" value="{{ 'element_edit.cancel.value'|trans({}, 'userui') }}" class="cancel_edit" />
10
-  <input type="submit" value="{{ 'element_edit.submit.value'|trans({}, 'userui') }}" />
9
+  <input type="button" value="{{ 'element_edit.cancel.value'|trans({}, 'userui') }}" class="cancel_edit button" />
10
+  <input type="submit" value="{{ 'element_edit.submit.value'|trans({}, 'userui') }}" class="button" />
11
 </form>
11
 </form>

+ 1 - 1
src/Muzich/CoreBundle/Resources/views/Element/element.edit.html.twig View File

13
       'form_name'     : form_name
13
       'form_name'     : form_name
14
     } %}
14
     } %}
15
 
15
 
16
-    <input type="submit" value="{{ 'element_edit.submit.value'|trans({}, 'userui') }}" />
16
+    <input type="submit" value="{{ 'element_edit.submit.value'|trans({}, 'userui') }}" class="button" />
17
   </form>
17
   </form>
18
   
18
   
19
 {% endblock %}
19
 {% endblock %}

+ 1 - 1
src/Muzich/CoreBundle/Resources/views/Tag/tagFavoritesForm.html.twig View File

11
 
11
 
12
   {{ form_row(form._token) }}
12
   {{ form_row(form._token) }}
13
 
13
 
14
-  <input type="submit" />
14
+  <input type="submit" class="button" />
15
 </form>
15
 </form>

+ 2 - 2
src/Muzich/CoreBundle/Resources/views/Tag/tagsPrompt.html.twig View File

4
     
4
     
5
   {% if display_specials_buttons is defined %}
5
   {% if display_specials_buttons is defined %}
6
     {% if display_specials_buttons == true %}
6
     {% if display_specials_buttons == true %}
7
-      <input class="clear" type="button" value="{{ 'filter.clear'|trans({}, 'userui') }}" />
7
+      <input class="clear button" type="button" value="{{ 'filter.clear'|trans({}, 'userui') }}" />
8
       <input type="hidden" class="filter_clear_url" value="{{ path('filter_clear') }}" />
8
       <input type="hidden" class="filter_clear_url" value="{{ path('filter_clear') }}" />
9
-      <input class="mytags" type="button" value="{{ 'filter.mytags'|trans({}, 'userui') }}" />
9
+      <input class="mytags button" type="button" value="{{ 'filter.mytags'|trans({}, 'userui') }}" />
10
       <input type="hidden" class="filter_mytags_url" value="{{ path('filter_mytags') }}" />
10
       <input type="hidden" class="filter_mytags_url" value="{{ path('filter_mytags') }}" />
11
     {% endif %}
11
     {% endif %}
12
   {% endif %}
12
   {% endif %}

+ 1 - 1
src/Muzich/GroupBundle/Resources/views/Default/edit.html.twig View File

10
     
10
     
11
     {% include "MuzichGroupBundle:Form:form.html.twig" %}
11
     {% include "MuzichGroupBundle:Form:form.html.twig" %}
12
 
12
 
13
-    <input type="submit" />
13
+    <input type="submit" class="button" />
14
   </form>
14
   </form>
15
 
15
 
16
 {% endblock %}
16
 {% endblock %}

+ 1 - 1
src/Muzich/GroupBundle/Resources/views/Default/myList.html.twig View File

46
 
46
 
47
       {% include "MuzichGroupBundle:Form:form.html.twig" with { 'form': form_new, 'form_name': form_new_name } %}
47
       {% include "MuzichGroupBundle:Form:form.html.twig" with { 'form': form_new, 'form_name': form_new_name } %}
48
 
48
 
49
-      <input type="submit" />
49
+      <input type="submit" class="button" />
50
     </form>
50
     </form>
51
   
51
   
52
   </div>
52
   </div>

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

6
 
6
 
7
   <div id="element_add_box" style="display: none;">
7
   <div id="element_add_box" style="display: none;">
8
     
8
     
9
-    <a href="#" id="element_add_close_link">
9
+    <a href="#" id="element_add_close_link" class="button">
10
       &lt;&lt; {{ 'home.add_element_box.close'|trans({}, 'navigationui') }}
10
       &lt;&lt; {{ 'home.add_element_box.close'|trans({}, 'navigationui') }}
11
     </a>
11
     </a>
12
     
12
     
17
         'form_name'     : add_form_name
17
         'form_name'     : add_form_name
18
       } %}
18
       } %}
19
 
19
 
20
-      <input type="submit" />
20
+      <input type="submit" class="button" />
21
     </form>
21
     </form>
22
   </div>
22
   </div>
23
 
23
 
24
-  <a href="#" id="element_add_link">
24
+  <a href="#" id="element_add_link" class="button">
25
     {{ 'home.add_element'|trans({}, 'navigationui') }} &gt;&gt;
25
     {{ 'home.add_element'|trans({}, 'navigationui') }} &gt;&gt;
26
   </a>
26
   </a>
27
 
27
 
33
       'display_specials_buttons': true
33
       'display_specials_buttons': true
34
     } %}
34
     } %}
35
     
35
     
36
-    <input class="main" type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
36
+    <input class="main button" type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
37
   </form>
37
   </form>
38
 
38
 
39
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {'noelements_filter' : true }%}
39
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {'noelements_filter' : true }%}

+ 1 - 1
src/Muzich/HomeBundle/Resources/views/Show/showGroup.html.twig View File

37
 
37
 
38
         {% include "MuzichCoreBundle:Element:form.add.html.twig" with { 'form': add_form, 'form_name': add_form_name } %}
38
         {% include "MuzichCoreBundle:Element:form.add.html.twig" with { 'form': add_form, 'form_name': add_form_name } %}
39
 
39
 
40
-        <input type="submit" />
40
+        <input type="submit" class="button" >
41
       </form>
41
       </form>
42
       
42
       
43
     </div>
43
     </div>

+ 1 - 1
src/Muzich/MynetworkBundle/Resources/views/Mynetwork/search.html.twig View File

18
     <div class="field">
18
     <div class="field">
19
       {{ form_errors(search_form.string) }}
19
       {{ form_errors(search_form.string) }}
20
       {{ form_widget(search_form.string) }}
20
       {{ form_widget(search_form.string) }}
21
-      <input type="submit" value="{{ 'search.form.submit_value'|trans({}, 'network') }}" />
21
+      <input type="submit" class="button" value="{{ 'search.form.submit_value'|trans({}, 'network') }}" />
22
     </div>
22
     </div>
23
 
23
 
24
     {{ form_rest(search_form) }}
24
     {{ form_rest(search_form) }}

+ 1 - 1
src/Muzich/UserBundle/Resources/views/Registration/register.html.twig View File

51
     {{ form_rest(form) }}
51
     {{ form_rest(form) }}
52
     
52
     
53
     <div>
53
     <div>
54
-        <input type="submit" value="{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}" />
54
+        <input type="submit" class="button" value="{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}" />
55
     </div>
55
     </div>
56
   </form>
56
   </form>
57
 </div>
57
 </div>

+ 1 - 1
src/Muzich/UserBundle/Resources/views/Security/login.html.twig View File

14
       <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
14
       <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
15
       <label for="remember_me">{{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }}</label>
15
       <label for="remember_me">{{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }}</label>
16
 
16
 
17
-      <input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" />
17
+      <input type="submit" class="button" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" />
18
   </form>
18
   </form>
19
 </div>
19
 </div>
20
 
20
 

+ 2 - 2
src/Muzich/UserBundle/Resources/views/User/account.html.twig View File

32
       'form': form_password
32
       'form': form_password
33
     } %}
33
     } %}
34
 
34
 
35
-    <input type="submit" />
35
+    <input type="submit" class="button" />
36
   </form>
36
   </form>
37
   
37
   
38
   <h3>{{ 'my_account.change_email'|trans({}, 'userui') }}</h3>
38
   <h3>{{ 'my_account.change_email'|trans({}, 'userui') }}</h3>
43
       'form': change_email_form
43
       'form': change_email_form
44
     } %}
44
     } %}
45
 
45
 
46
-    <input type="submit" />
46
+    <input type="submit" class="button" />
47
   </form>
47
   </form>
48
     
48
     
49
 {% endblock %}
49
 {% endblock %}

+ 22 - 0
web/bundles/muzichcore/css/main.css View File

44
   
44
   
45
 }
45
 }
46
 
46
 
47
+.button {
48
+	display: inline-block;
49
+	line-height: 1;
50
+	padding: 4px 7px;
51
+	text-decoration: none;
52
+	font-weight: bold;
53
+	color: #fff;
54
+	background-color: #39c;
55
+	-moz-border-radius: 5px;
56
+	-webkit-border-radius: 5px;
57
+	-khtml-border-radius: 5px;
58
+	border-radius: 5px;
59
+}
60
+input.button, button.button {
61
+	border: 0px none;
62
+}
63
+
64
+.button:active {
65
+  padding: 3px 6px;
66
+  border: 1px solid #165c6d;
67
+}
68
+
47
 #container a
69
 #container a
48
 {
70
 {
49
   text-decoration: none;
71
   text-decoration: none;

+ 1 - 0
web/bundles/muzichhome/css/home.css View File

8
 
8
 
9
 #container #element_add_link, #container #element_add_close_link
9
 #container #element_add_link, #container #element_add_close_link
10
 {
10
 {
11
+  color: white;
11
   font-size: 120%;
12
   font-size: 120%;
12
   float: right;
13
   float: right;
13
 }
14
 }