Kleine Korrekturen
This commit is contained in:
@@ -27,9 +27,9 @@ class ModulgruppenController < ApplicationController
|
|||||||
def new
|
def new
|
||||||
@modulgruppe = Modulgruppe.new
|
@modulgruppe = Modulgruppe.new
|
||||||
if !params[:studium_id].nil?
|
if !params[:studium_id].nil?
|
||||||
@studium=Studium.find(params[:studium_id])
|
@modulgruppe.studium_id=(params[:studium_id])
|
||||||
else
|
else
|
||||||
@studium=Studium.first
|
@modulgruppe.studium_id=studium_id=Studium.first.id
|
||||||
end
|
end
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html # new.html.erb
|
format.html # new.html.erb
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ class StudienController < ApplicationController
|
|||||||
@toolbar_elements<<{:icon =>:plus, :text=> I18n.t('studien.new') ,:path=>new_studium_path }
|
@toolbar_elements<<{:icon =>:plus, :text=> I18n.t('studien.new') ,:path=>new_studium_path }
|
||||||
@toolbar_elements<<{:text=> I18n.t('modulgruppe.show.link') ,:path=>modulgruppen_path }
|
@toolbar_elements<<{:text=> I18n.t('modulgruppe.show.link') ,:path=>modulgruppen_path }
|
||||||
@toolbar_elements<<{:text=> I18n.t('modul.show.link') ,:path=>moduls_path }
|
@toolbar_elements<<{:text=> I18n.t('modul.show.link') ,:path=>moduls_path }
|
||||||
|
@toolbar_elements<<{:text=> 'Alle LVas auflisten', :path=>lvas_path}
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|||||||
Reference in New Issue
Block a user