Commit 74f018232c7d3385bb5137aca651490f3ae0c674

Authored by Daniela Feitosa
Committed by Antonio Terceiro
1 parent 8c296da0

Replacing link by button on delete profile

(ActionItem1716)
app/views/profile_editor/edit.rhtml
... ... @@ -76,14 +76,18 @@
76 76  
77 77 <%= select_categories(:profile_data, _('Select the categories of your interest'), 2) %>
78 78  
79   - <% if user && user.has_permission?('destroy_profile', profile) %>
80   - <%= link_to _('Delete profile'), {:action => :destroy_profile}, :id => 'delete-profile-link' %>
81   - <% end %>
82   -
83 79 <% button_bar do %>
84 80 <%= submit_button('save', _('Save'), :cancel => {:action => 'index'}) %>
85 81 <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
86 82 <% end %>
  83 +
  84 + <% if user && user.has_permission?('destroy_profile', profile) %>
  85 + <% button_bar(:id => 'delete-profile') do %>
  86 + <%= button(:remove, _('Delete profile'), {:action => :destroy_profile}) %>
  87 + <% end %>
  88 + <% end %>
  89 +
  90 +
87 91 <% end %>
88 92  
89 93 <%# = generate_form :info, @info, {...} %>
... ...
public/stylesheets/application.css
... ... @@ -3503,8 +3503,8 @@ h1#agenda-title {
3503 3503 -webkit-border-radius: 3px;
3504 3504 }
3505 3505  
3506   -.controller-profile_editor #delete-profile-link {
3507   - float: right;
  3506 +.controller-profile_editor #delete-profile {
  3507 + margin-top: 30px;
3508 3508 }
3509 3509  
3510 3510 .controller-profile_editor a.control-panel-groups { background-image: url(../images/control-panel/system-users.png) }
... ...