forked from bofh/fetsite
Toolbar und kopfzeileneinbindung
This commit is contained in:
@@ -3,7 +3,7 @@ class LvasController < ApplicationController
|
||||
before_filter {@toolbar_elements =[]}
|
||||
def index
|
||||
@lvas = Lva.all
|
||||
|
||||
@toolbar_elements=[{:hicon=>'icon-plus-sign',:text =>I18n.t('lva.add'),:path => new_lva_path}]
|
||||
end
|
||||
|
||||
# GET /lvas/1
|
||||
|
||||
@@ -7,6 +7,8 @@ class ModulsController < ApplicationController
|
||||
if !params[:studium_id].nil?
|
||||
@studium=Studium.find_by_id(params[:studium_id])
|
||||
end
|
||||
@toolbar_elements = [{:hicon=>'icon-plus-sign', :text=>I18n.t("modul.add"), :path=>new_modul_path}]
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @moduls }
|
||||
|
||||
@@ -6,8 +6,6 @@ class StudienController < ApplicationController
|
||||
@studien = Studium.all
|
||||
@toolbar_elements<<{:icon =>:plus, :hicon=>'icon-plus-sign', :text=> I18n.t('studien.new') ,:path=>new_studium_path }
|
||||
# @toolbar_elements<<{:text=> I18n.t('modulgruppe.show.link') ,:path=>modulgruppen_path }
|
||||
@toolbar_elements<<{:hicon=> 'icon-list', :text=> I18n.t('modul.show.link') ,:path=>moduls_path }
|
||||
@toolbar_elements<<{:hicon=> 'icon-list', :text=> 'Alle LVas auflisten', :path=>lvas_path}
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
Reference in New Issue
Block a user