Commit e9b2d20cf967b91fbd845506fc9291599bd6ed1f
1 parent
d2d76402
Exists in
master
and in
29 other branches
ActionItem218: buttons added
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1554 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
4 changed files
with
19 additions
and
7 deletions
Show diff stats
app/views/memberships/index.rhtml
... | ... | @@ -23,7 +23,7 @@ |
23 | 23 | </table> |
24 | 24 | |
25 | 25 | <% button_bar do %> |
26 | - <%= button(:add, _('Register a new Enterprise'), :controller => 'enterprise_registration') %> | |
27 | - <%= button(:add, _('Create a new community'), :action => 'new_community') %> | |
28 | - <%= button(:back, _('Go back'), :controller => 'profile_editor') %> | |
26 | + <%= button :add, _('Register a new Enterprise'), :controller => 'enterprise_registration' %> | |
27 | + <%= button :add, _('Create a new community'), :action => 'new_community' %> | |
28 | + <%= button :back, _('Go back'), :controller => 'profile_editor' %> | |
29 | 29 | <% end %> | ... | ... |
app/views/profile/communities.rhtml
... | ... | @@ -12,6 +12,8 @@ |
12 | 12 | <% button_bar do %> |
13 | 13 | <%= button :back, _('Go back'), { :controller => 'profile' }, |
14 | 14 | :help => _('Back to the page where you come from.') %> |
15 | + <%= button :add, _('Create a new community'), | |
16 | + :controller => 'memberships', :action => 'new_community' %> | |
15 | 17 | <% end %> |
16 | 18 | |
17 | 19 | </div><!-- fim class="common-profile-list-block" --> | ... | ... |
app/views/profile/enterprises.rhtml
... | ... | @@ -12,6 +12,8 @@ |
12 | 12 | <% button_bar do %> |
13 | 13 | <%= button :back, _('Go back'), { :controller => 'profile' }, |
14 | 14 | :help => _('Back to the page where you come from.') %> |
15 | + <%= button :add, _('Register a new Enterprise'), | |
16 | + :controller => 'enterprise_registration' %> | |
15 | 17 | <% end %> |
16 | 18 | |
17 | 19 | </div><!-- fim class="common-profile-list-block" --> | ... | ... |
public/stylesheets/button.css
... | ... | @@ -43,17 +43,25 @@ a.button.with-text, |
43 | 43 | a.button.with-text:visited, |
44 | 44 | input.button.with-text { |
45 | 45 | background-color: #EEE; |
46 | - padding: 2px 2px 2px 25px; | |
47 | - background-position: 2px 50%; | |
46 | + padding: 0px 2px 0px 25px; | |
47 | + background-position: 1px 50%; | |
48 | 48 | border: 1px solid #AAA; |
49 | - line-height: 26px; | |
49 | + line-height: 20px; | |
50 | +} | |
51 | +input.button.with-text { | |
52 | + padding: 3px 2px 4px 21px; | |
53 | + background-position: 4px 50%; | |
50 | 54 | } |
51 | 55 | .msie a.button.with-text, |
52 | 56 | .msie a.button.with-text:visited, |
53 | 57 | .msie input.button.with-text { |
54 | - line-height: 16px; | |
58 | + line-height: 22px; | |
55 | 59 | margin: 2px; |
56 | 60 | } |
61 | +.msie input.button.with-text { | |
62 | + line-height: 19px; | |
63 | + padding: 0px 0px 0px 15px; | |
64 | +} | |
57 | 65 | |
58 | 66 | a.button:hover, |
59 | 67 | input.button:hover, | ... | ... |