diff --git a/app/controllers/fetprofiles_controller.rb b/app/controllers/fetprofiles_controller.rb index c056ada..0a2333e 100644 --- a/app/controllers/fetprofiles_controller.rb +++ b/app/controllers/fetprofiles_controller.rb @@ -21,7 +21,7 @@ class FetprofilesController < ApplicationController def show @fetprofile = Fetprofile.find(params[:id]) @gremientabs = Gremium.tabs - + if params["verwalten"] @toolbar_elements << {:hicon=>'icon-plus', :text=> I18n.t('fetprofile.newmembership'),:path => new_fetprofile_membership_path(@fetprofile) , :confirm=>"Sure?" } if can? :new, Membership @toolbar_elements << {:hicon=>'icon-pencil', :text=> I18n.t('common.edit'),:path => edit_fetprofile_path(@fetprofile),:confirm=>"Sure?" } if can? :edit, @fetprofile @@ -40,6 +40,8 @@ class FetprofilesController < ApplicationController # GET /fetprofiles/new.json def new @fetprofile = Fetprofile.new +@memberships=[]; +@memberships<