gremien filter fix + habils inzugefügt
This commit is contained in:
@@ -12,12 +12,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
class Gremium < ActiveRecord::Base
|
class Gremium < ActiveRecord::Base
|
||||||
TYPEN={1=>"offiziell", 2=>"offiziell-temporär", 3 => "inoffiziell",4=>"inoffiziell-tempo", 11=> "berufungskommission",11=> "habilitationskommission" } # Kategorien, im Wesentlichen wichtig für Listung oder nicht Listung
|
TYPEN={1=>"offiziell", 2=>"offiziell-temporär", 3 => "inoffiziell",4=>"inoffiziell-tempo", 11=> "berufungskommission",12=> "habilitationskommission" } # Kategorien, im Wesentlichen wichtig für Listung oder nicht Listung
|
||||||
GESCHLECHT={0=>"saechlich", 1 => "maennlich", 2 => "weiblich"} # Geschlecht des Gremiums zur richtige Deklination
|
GESCHLECHT={0=>"saechlich", 1 => "maennlich", 2 => "weiblich"} # Geschlecht des Gremiums zur richtige Deklination
|
||||||
ART2FALL={0=>"des", 1=>"des",2=>"der"} # Artikel 2.Fall abhängig vom Geschlecht
|
ART2FALL={0=>"des", 1=>"des",2=>"der"} # Artikel 2.Fall abhängig vom Geschlecht
|
||||||
ART4FALL={0=>"das", 1=>"den",2=>"die"} # Artikel 2.Fall abhängig vom Geschlecht
|
ART4FALL={0=>"das", 1=>"den",2=>"die"} # Artikel 2.Fall abhängig vom Geschlecht
|
||||||
FILTER={11=>I18n.t("gremium.filter.berufung.title")}
|
FILTER={11=>I18n.t("gremium.filter.berufung.title"),12=>I18n.t("gremium.filter.habil.title")}
|
||||||
TEXT={11=>I18n.t("gremium.filter.berufung.text"),12=>"Habils"}
|
TEXT={11=>I18n.t("gremium.filter.berufung.text"),12=>I18n.t("gremium.filter.habil.text")}
|
||||||
|
|
||||||
attr_accessible :desc, :name, :typ, :geschlecht,:thema_id, :memberships_attributes
|
attr_accessible :desc, :name, :typ, :geschlecht,:thema_id, :memberships_attributes
|
||||||
has_many :memberships # Mitgliedschaften bei dem Gremium
|
has_many :memberships # Mitgliedschaften bei dem Gremium
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
<li <%= (request.fullpath == fetprofiles_path(filter: "notactive")|| request.fullpath == fetprofiles_path) ? 'class="active"'.html_safe : ''%> >
|
<li <%= (request.fullpath == fetprofiles_path(filter: "notactive")) ? 'class="active"'.html_safe : ''%> >
|
||||||
<%= link_to I18n.t('profile.notactive_members') , fetprofiles_path( filter: "notactive") %>
|
<%= link_to I18n.t('profile.notactive_members') , fetprofiles_path( filter: "notactive") %>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,9 @@
|
|||||||
<h1>Alle Gremien</h1>
|
<h1>Alle Gremien</h1>
|
||||||
|
|
||||||
<% unless params[:filter].nil? %>
|
<% unless params[:filter].nil? %>
|
||||||
<p><%= Gremium::TEXT[params[:filter]] %></p>
|
<h1><%= Gremium::FILTER[params[:filter].to_i] %></h1>
|
||||||
|
|
||||||
|
<p><%= Gremium::TEXT[params[:filter].to_i] %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<ul class="unstyled fetprofile_list">
|
<ul class="unstyled fetprofile_list">
|
||||||
|
|||||||
Reference in New Issue
Block a user