AutoCommit Don Sep 3 11:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-09-03 11:03:01 +02:00
parent e7c21ad95b
commit 4835155d06
5 changed files with 42 additions and 15 deletions

View File

@@ -67,7 +67,7 @@ end
</div>
<% if can?(:edit, @fetprofile) %>
<div>
<span class="btn-group">
<span>
<%= link_to ff_icon("icon-pencil")+I18n.t('common.edit'), edit_fetprofile_path(@fetprofile) if can?(:edit, @fetprofile) %>
<%= link_to fa_icon("trash")+I18n.t('common.delete'), fetprofile_path(@fetprofile),method: :delete, data: { confirm: "Are you sure?" } if can?(:delete, @fetprofile) %>
</span>

View File

@@ -33,7 +33,7 @@
</td>
<td>
<%= semantic_fields_for "users[#{user.id}]", user do |f|%>
<%= f.input :fetprofile ,:label=>false , :as=>:select , :collection=>Fetprofile.all %>
<%= f.input :fetprofile ,:label=>false , :as=>:select , :collection=>Fetprofile.order(:vorname,:nachname) %>
<% end %>
</td>