Toolbar und kopfzeileneinbindung

This commit is contained in:
Thomas Blazek
2013-08-02 15:00:58 +02:00
parent 58663f25f1
commit 005c28a273
10 changed files with 30 additions and 20 deletions

View File

@@ -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

View File

@@ -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 }

View File

@@ -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