forked from bofh/fetsite
studien
This commit is contained in:
@@ -2,7 +2,7 @@ class GremienController < ApplicationController
|
||||
# GET /gremien
|
||||
# GET /gremien.json
|
||||
load_and_authorize_resource
|
||||
before_filter {@toolbar_elements=[]}
|
||||
before_filter {@toolbar_elements=[]}
|
||||
def verwalten
|
||||
@gremien = Gremium.all
|
||||
@gremientabs=Gremium.tabs
|
||||
@@ -94,7 +94,7 @@ class GremienController < ApplicationController
|
||||
@memberships<< Membership.new
|
||||
@memberships<< Membership.new
|
||||
render action: "edit", notice: 'gremium was successfully updated.'
|
||||
|
||||
end
|
||||
}
|
||||
format.json { head :no_content }
|
||||
else
|
||||
@@ -105,7 +105,8 @@ class GremienController < ApplicationController
|
||||
end
|
||||
|
||||
# DELETE /gremien/1
|
||||
# DELETE /gremien/1.json
|
||||
#
|
||||
#
|
||||
def destroy
|
||||
@gremium = Gremium.find(params[:id])
|
||||
@gremium.destroy
|
||||
|
||||
@@ -34,7 +34,7 @@ class StudienController < ApplicationController
|
||||
@toolbar_elements=[]
|
||||
@toolbar_elements<<{:icon=>:plus, :hicon =>'icon-plus-sign' ,:text=> I18n.t('studien.new') , :path => new_studium_path(@studium) } if can? :new, Studium
|
||||
@toolbar_elements<<{:icon=>:pencil, :hicon=>'icon-pencil',:text =>I18n.t('common.edit'),:path => edit_studium_path(@studium)} if can? :edit, Studium
|
||||
@toolbar_elements<<{:icon=>:pencil, :hicon=>'icon-pencil',:text =>I18n.t('common.edit'),:path => edit_lvas_studium_path(@studium)} if can? :edit_lvas, Studium
|
||||
@toolbar_elements<<{:icon=>:pencil, :hicon=>'icon-pencil',:text =>I18n.t('lva.editlvas'),:path => edit_lvas_studium_path(@studium)} if can? :edit_lvas, Studium
|
||||
@toolbar_elements<<{:hicon=>'icon-remove-circle', :text=> I18n.t('common.delete'),:path => studium_path(@studium), :method=> :delete,:confirm=>'Sure?' } if can? :delete, Studium
|
||||
@toolbar_modulgruppen =[]
|
||||
@toolbar_modulgruppen << {:hicon=>'icon-plus-sign', :text=> I18n.t('modulgruppe.new'), :path=>new_studium_modulgruppe_path(@studium)} if can? :new, Modulgruppe
|
||||
|
||||
Reference in New Issue
Block a user