changes in lva und beispiele
change
This commit is contained in:
@@ -14,7 +14,7 @@ class LvasController < ApplicationController
|
||||
|
||||
def show
|
||||
@lva = Lva.find_by_id(params[:id])
|
||||
|
||||
@beispiel=Beispiel.new
|
||||
@toolbar_elements<<{:hicon=>'icon-plus-sign', :icon=>:plus, :text => "Neues Beispiel", :path=> new_beispiel_path(:lva_id =>@lva.id)}
|
||||
@toolbar_elements<<{:hicon=>'icon-pencil', :icon=>:pencil,:text =>I18n.t('common.edit'),:path => edit_lva_path(@lva)}
|
||||
@toolbar_elements << {:hicon=>'icon-remove-circle', :text=>I18n.t('common.delete'), :path=> lva_path(@lva), :method=>:delete, :confirm=>'Sure?' }
|
||||
@@ -32,8 +32,10 @@ class LvasController < ApplicationController
|
||||
# GET /lvas/1/edit
|
||||
def edit
|
||||
@lva = Lva.find(params[:id])
|
||||
end
|
||||
@semester = @lva.modul.map(&:modulgruppen).flatten.map(&:studium).map(&:semester).flatten.uniq
|
||||
|
||||
|
||||
end
|
||||
# POST /lvas
|
||||
# POST /lvas.json
|
||||
def create
|
||||
|
||||
Reference in New Issue
Block a user