Issue #93 fixed

This commit is contained in:
Andreas Stephanides
2013-12-01 12:29:10 +01:00
parent 13dd45e783
commit c08bd75fe8
3 changed files with 15 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<%= semantic_form_for @gremium do |f| %>
<%= f.inputs do %>
<%= f.input :name %>
<%= f.input :desc %>
<%= f.input :desc, :as=>:tinymce_text %>
<%= f.input :typ, :as => :select, :collection => Gremium::TYPEN.invert %>
<%= f.input :geschlecht, :as => :select, :collection => Gremium::GESCHLECHT.invert %>
<%= f.input :thema, :as=> :select, :collection => Thema.all %>
@@ -41,3 +41,5 @@
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>
<script>$('.datepicker').datepicker()</script>
<%= tinymce %>

View File

@@ -9,8 +9,11 @@
<p>
<%= @gremium.desc %>
</p>
<% unless @gremium.thema.nil? %>
<p><%= link_to "Mehr zum Gremium lesen ..." ,themengruppe_path(@gremium.thema.themengruppe , {:thema=>@gremium.thema.id})%></p>
<% end %>
</div>
<% @gremium.memberships.order(:typ).active.each_slice(4) do |r| %>
<div class="row-fluid">
<% r.each do |m| %>