a lot of new models ...

Fotogallary, gremien, fetprofil,
This commit is contained in:
Andreas Stephanides
2013-08-19 15:39:56 +02:00
parent a19d708134
commit 34b602e126
107 changed files with 2615 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<%= semantic_form_for @gremium do |f| %>
<%= f.inputs do %>
<%= f.input :name %>
<%= f.input :desc %>
<%= f.input :typ %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

@@ -0,0 +1,6 @@
<h1>Editing gremium</h1>
<%= render 'form' %>
<%= link_to 'Show', @gremium %> |
<%= link_to 'Back', gremien_path %>

View File

@@ -0,0 +1,27 @@
<h1>Listing gremien</h1>
<table>
<tr>
<th>Name</th>
<th>Desc</th>
<th>Typ</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @gremien.each do |gremium| %>
<tr>
<td><%= gremium.name %></td>
<td><%= gremium.desc %></td>
<td><%= gremium.typ %></td>
<td><%= link_to 'Show', gremium %></td>
<td><%= link_to 'Edit', edit_gremium_path(gremium) %></td>
<td><%= link_to 'Destroy', gremium, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Gremium', new_gremium_path %>

View File

@@ -0,0 +1,5 @@
<h1>New gremium</h1>
<%= render 'form' %>
<%= link_to 'Back', gremien_path %>

View File

@@ -0,0 +1,20 @@
<p id="notice"><%= notice %></p>
<p>
<b>Name:</b>
<%= @gremium.name %>
</p>
<p>
<b>Desc:</b>
<%= @gremium.desc %>
</p>
<p>
<b>Typ:</b>
<%= @gremium.typ %>
</p>
<%= link_to 'Edit', edit_gremium_path(@gremium) %> |
<%= link_to 'Back', gremien_path %>