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 @gallery do |f| %>
<%= f.inputs do %>
<%= f.input :name %>
<%= f.input :desc %>
<%= f.input :datum %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

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

View File

@@ -0,0 +1,27 @@
<h1>Listing galleries</h1>
<table>
<tr>
<th>Name</th>
<th>Desc</th>
<th>Datum</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @galleries.each do |gallery| %>
<tr>
<td><%= gallery.name %></td>
<td><%= gallery.desc %></td>
<td><%= gallery.datum %></td>
<td><%= link_to 'Show', gallery %></td>
<td><%= link_to 'Edit', edit_gallery_path(gallery) %></td>
<td><%= link_to 'Destroy', gallery, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Gallery', new_gallery_path %>

View File

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

View File

@@ -0,0 +1,20 @@
<p id="notice"><%= notice %></p>
<p>
<b>Name:</b>
<%= @gallery.name %>
</p>
<p>
<b>Desc:</b>
<%= @gallery.desc %>
</p>
<p>
<b>Datum:</b>
<%= @gallery.datum %>
</p>
<%= link_to 'Edit', edit_gallery_path(@gallery) %> |
<%= link_to 'Back', galleries_path %>