diff --git a/app/controllers/fetprofiles_controller.rb b/app/controllers/fetprofiles_controller.rb index 83af41c..77850e1 100644 --- a/app/controllers/fetprofiles_controller.rb +++ b/app/controllers/fetprofiles_controller.rb @@ -10,6 +10,8 @@ class FetprofilesController < ApplicationController @fetprofiles = Fetprofile.where(:active=>false).order(:vorname,:nachname) if params[:filter]== "notactive" @gremientabs = Gremium.tabs + @toolbar_elements << {:hicon=>'icon-plus', :text=> I18n.t('profile.new_profile'),:path => new_fetprofile_path(@fetprofile) } if can? :new, @fetprofile + respond_to do |format| format.html # index.html.erb end @@ -87,7 +89,13 @@ class FetprofilesController < ApplicationController respond_to do |format| if @fetprofile.update_attributes(params[:fetprofile]) - format.html { redirect_to @fetprofile, notice: 'Fetprofile was successfully updated.' } + format.html { + unless params[:button]=="continue" || params[:commit]=="continue" + redirect_to @fetprofile, notice: 'Fetprofile was successfully updated.' + else + redirect_to edit_fetprofile_path(@fetprofile), notice: 'Fetprofile was successfully updated.' + end + } format.json { head :no_content } else @memberships=@fetprofile.memberships.order(:typ) diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index 5906b5c..7745872 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -6,7 +6,7 @@ class GalleriesController < ApplicationController # GET /galleries.json def index @galleries = Gallery.all - @toolbar_elements << {:hicon => 'icon-plus', :text => I18n.t('fotos.new-gallery'), :path => new_gallery_path } + @toolbar_elements << {:hicon => 'icon-plus', :text => I18n.t('fotos.new-gallery'), :path => new_gallery_path } if can? :new, Gallery respond_to do |format| format.html # index.html.erb diff --git a/app/controllers/studien_controller.rb b/app/controllers/studien_controller.rb index 79de843..cbfd4a6 100755 --- a/app/controllers/studien_controller.rb +++ b/app/controllers/studien_controller.rb @@ -7,7 +7,7 @@ class StudienController < ApplicationController @topbar_elements=[{:hicon=>'icon-list', :text=>I18n.t("studien.allestudien"),:path=>studien_path}] @topbar_elements<<{:hicon=>'icon-list', :text=>I18n.t("modul.list"),:path=>moduls_path} @topbar_elements<<{:hicon=>'icon-list', :text=>I18n.t("lva.list"),:path=>lvas_path} - @toolbar_elements<<{:icon =>:plus, :hicon=>'icon-plus-sign', :text=> I18n.t('studien.new') ,:path=>new_studium_path } + @toolbar_elements<<{:icon =>:plus, :hicon=>'icon-plus-sign', :text=> I18n.t('studien.new') ,:path=>new_studium_path } if can? :new, Studium # @toolbar_elements<<{:text=> I18n.t('modulgruppe.show.link') ,:path=>modulgruppen_path } end @@ -31,14 +31,14 @@ class StudienController < ApplicationController end @studienphasen << {:modulgruppen=>modulgruppen, :phase => ph}.merge(opts) end - - @toolbar_elements=[{:icon=>:plus, :hicon =>'icon-plus-sign' ,:text=> I18n.t('studien.new') , :path => new_studium_path(@studium) }, - {:icon=>:pencil, :hicon=>'icon-pencil',:text =>I18n.t('common.edit'),:path => edit_studium_path(@studium)}, - {:icon=>:pencil, :hicon=>'icon-pencil',:text =>I18n.t('common.edit'),:path => edit_lvas_studium_path(@studium)}, - {:hicon=>'icon-remove-circle', :text=> I18n.t('common.delete'),:path => studium_path(@studium), :method=> :delete,:confirm=>'Sure?' }] - - @toolbar_modulgruppen =[ {:hicon=>'icon-plus-sign', :text=> I18n.t('modulgruppe.new'), :path=>new_studium_modulgruppe_path(@studium)}, - {:hicon=>'icon-list', :text => I18n.t('modulgruppe.list'), :path=>modulgruppen_path}] + @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<<{: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 + @toolbar_modulgruppen << {:hicon=>'icon-list', :text => I18n.t('modulgruppe.list'), :path=>modulgruppen_path} if can? :index, Modulgruppe case params[:ansicht] when 'semesteransicht' when 'infoansicht' diff --git a/app/controllers/themengruppen_controller.rb b/app/controllers/themengruppen_controller.rb index 88dfc8d..c321236 100644 --- a/app/controllers/themengruppen_controller.rb +++ b/app/controllers/themengruppen_controller.rb @@ -4,8 +4,9 @@ class ThemengruppenController < ApplicationController load_and_authorize_resource def index @themengruppen = Themengruppe.where(:public=>true).order(:priority).reverse - @toolbar_elements = [{:icon=>:plus, :hicon=>'icon-plus-sign', :text=>I18n.t('themengruppe.new'), :path=>new_themengruppe_path()}] - @toolbar_elements = [{:icon=>:plus, :hicon=>'icon-plus-sign', :text=>I18n.t('themengruppe.manage_all'), :path=>verwalten_all_themengruppen_path()}] + @toolbar_elements = [] + @toolbar_elements << {:icon=>:plus, :hicon=>'icon-plus-sign', :text=>I18n.t('themengruppe.new'), :path=>new_themengruppe_path()} if can? :new, Themengruppe + @toolbar_elements << {:icon=>:plus, :hicon=>'icon-plus-sign', :text=>I18n.t('themengruppe.manage_all'), :path=>verwalten_all_themengruppen_path()} if can? :verwalten_all, Themengruppe respond_to do |format| format.html # index.html.erb diff --git a/app/models/calentry.rb b/app/models/calentry.rb index 2070a03..66c401f 100644 --- a/app/models/calentry.rb +++ b/app/models/calentry.rb @@ -63,7 +63,7 @@ end end end def text - I18n.l(self.start) +" bis "+ I18n.l(self.ende) + I18n.l(self.start) +" "+ I18n.t("cal.bis")+" "+ I18n.l(self.ende) end scope :public, -> { where(:public => :true) } # scope :upcoming, -> { where("start >= ?" , Time.now).where("start <= ?", 28.days.from_now) } diff --git a/app/views/fetprofiles/_form.html.erb b/app/views/fetprofiles/_form.html.erb index 1467d1f..208c2d6 100644 --- a/app/views/fetprofiles/_form.html.erb +++ b/app/views/fetprofiles/_form.html.erb @@ -11,7 +11,7 @@
| +<%=f.input :plz, input_html: {style: "width:5em"} %> | +<%=f.input :city, input_html: {style: "width:5em"} %> |
| <%=f.input :birth_day, input_html: {style: "width:3em"}%> | +<%=f.input :birth_month, input_html: {style: "width:3em"} %> | +<%=f.input :birth_year, input_html: {style: "width:5em"} %> | +
<%= @fetprofile.fetmail %>
- respond_to do |format| - format.html # index.html.erb - format.json { render json: @fetprofiles } - end - -+
<%= @fetprofile.desc %>
<%= render partial: "interninfo", object: @fetprofile if can?(:seeintern, @fetprofile) %> diff --git a/app/views/galleries/index.html.erb b/app/views/galleries/index.html.erb index 258fd23..105c0a4 100644 --- a/app/views/galleries/index.html.erb +++ b/app/views/galleries/index.html.erb @@ -1,4 +1,5 @@Wichtige Punkte die noch entwickelt werden sind:
<%= link_to "Neuigkeiten", rubriken_path %>
- -Wiki
- diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 7b57ca4..206f079 100755 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -23,14 +23,11 @@<%= link_to "Steuerelemente und Komponenten", "http://getbootstrap.com/2.3.2/index.html" %>
Um bei der Entwicklung mitzuhelfen braucht nur Ruby on Rails installiert werden
<%= link_to "Getting Started" , startdev_home_index_path %>
-Das Kalender Feature wird überarbeitet, in Zukunft soll folgender Link nicht mehr funktionieren <%= link_to "Kalender", calendars_path %> -
-- <%= I18n.t "home.kontakt" %> + <%= I18n.t "kontakt.text" %>
-<%= raw(I18n.t("kontakt.adresse_text")) %>
+<%= raw(I18n.t ("kontakt.telefon_text")) %>
+<%= notice %>