meetingtyp management

This commit is contained in:
Andreas Stephanides
2015-02-09 15:38:21 +01:00
parent 6c39c40403
commit f1a149908d
15 changed files with 148 additions and 17 deletions

View File

@@ -0,0 +1,12 @@
<%= semantic_form_for [@meetingtyp] do |f| %>
<%= f.inputs do %>
<%= f.input :name, :placeholder=> "Name" %>
<%= f.input :rubrik %>
<%= f.input :agendaintern %>
<%= f.input :protocolintern %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

@@ -0,0 +1,5 @@
<%= meetingtyp.name %> <%= link_to "edit", edit_meetingtyp_path(meetingtyp) %>
<%= link_to "create" , create_protocol_and_agenda_meetingtyp_path(meetingtyp) %>
<%= render meetingtyp.protocol unless meetingtyp.protocol.nil? %>
<%= render meetingtyp.agenda unless meetingtyp.agenda.nil? %>

View File

@@ -0,0 +1 @@
<%= render "form" %>

View File

@@ -0,0 +1,6 @@
<ul>
<% @meetingtyps.each do |mt| %>
<li><%= render mt %> </li>
<% end %>
</ul>
<%= link_to "New" , new_meetingtyp_path %>

View File

@@ -0,0 +1 @@
<%= render "form" %>