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,15 @@
<%= semantic_form_for @fetprofile do |f| %>
<%= f.inputs do %>
<%= f.input :vorname %>
<%= f.input :nachname %>
<%= f.input :short %>
<%= f.input :fetmailalias %>
<%= f.input :desc %>
<%= f.input :picture %>
<%= f.input :active %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

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

View File

@@ -0,0 +1,35 @@
<h1>Listing fetprofiles</h1>
<table>
<tr>
<th>Vorname</th>
<th>Nachname</th>
<th>Short</th>
<th>Fetmailalias</th>
<th>Desc</th>
<th>Picture</th>
<th>Active</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @fetprofiles.each do |fetprofile| %>
<tr>
<td><%= fetprofile.vorname %></td>
<td><%= fetprofile.nachname %></td>
<td><%= fetprofile.short %></td>
<td><%= fetprofile.fetmailalias %></td>
<td><%= fetprofile.desc %></td>
<td><%= fetprofile.picture %></td>
<td><%= fetprofile.active %></td>
<td><%= link_to 'Show', fetprofile %></td>
<td><%= link_to 'Edit', edit_fetprofile_path(fetprofile) %></td>
<td><%= link_to 'Destroy', fetprofile, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Fetprofile', new_fetprofile_path %>

View File

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

View File

@@ -0,0 +1,40 @@
<p id="notice"><%= notice %></p>
<p>
<b>Vorname:</b>
<%= @fetprofile.vorname %>
</p>
<p>
<b>Nachname:</b>
<%= @fetprofile.nachname %>
</p>
<p>
<b>Short:</b>
<%= @fetprofile.short %>
</p>
<p>
<b>Fetmailalias:</b>
<%= @fetprofile.fetmailalias %>
</p>
<p>
<b>Desc:</b>
<%= @fetprofile.desc %>
</p>
<p>
<b>Picture:</b>
<%= @fetprofile.picture %>
</p>
<p>
<b>Active:</b>
<%= @fetprofile.active %>
</p>
<%= link_to 'Edit', edit_fetprofile_path(@fetprofile) %> |
<%= link_to 'Back', fetprofiles_path %>

View File

@@ -0,0 +1,12 @@
<%= semantic_form_for @foto do |f| %>
<%= f.inputs do %>
<%= f.input :title %>
<%= f.input :desc %>
<%= f.input :gallery_id %>
<%= f.input :datei %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

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

View File

@@ -0,0 +1,29 @@
<h1>Listing fotos</h1>
<table>
<tr>
<th>Title</th>
<th>Desc</th>
<th>Gallery</th>
<th>Datei</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @fotos.each do |foto| %>
<tr>
<td><%= foto.title %></td>
<td><%= foto.desc %></td>
<td><%= foto.gallery_id %></td>
<td><%= foto.datei %></td>
<td><%= link_to 'Show', foto %></td>
<td><%= link_to 'Edit', edit_foto_path(foto) %></td>
<td><%= link_to 'Destroy', foto, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Foto', new_foto_path %>

View File

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

View File

@@ -0,0 +1,25 @@
<p id="notice"><%= notice %></p>
<p>
<b>Title:</b>
<%= @foto.title %>
</p>
<p>
<b>Desc:</b>
<%= @foto.desc %>
</p>
<p>
<b>Gallery:</b>
<%= @foto.gallery_id %>
</p>
<p>
<b>Datei:</b>
<%= @foto.datei %>
</p>
<%= link_to 'Edit', edit_foto_path(@foto) %> |
<%= link_to 'Back', fotos_path %>

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 %>

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 %>

View File

@@ -0,0 +1,13 @@
<%= semantic_form_for @membership do |f| %>
<%= f.inputs do %>
<%= f.input :fetprofile_id %>
<%= f.input :gremium_id %>
<%= f.input :start %>
<%= f.input :stop %>
<%= f.input :typ %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

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

View File

@@ -0,0 +1,31 @@
<h1>Listing memberships</h1>
<table>
<tr>
<th>Fetprofile</th>
<th>Gremium</th>
<th>Start</th>
<th>Stop</th>
<th>Typ</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @memberships.each do |membership| %>
<tr>
<td><%= membership.fetprofile_id %></td>
<td><%= membership.gremium_id %></td>
<td><%= membership.start %></td>
<td><%= membership.stop %></td>
<td><%= membership.typ %></td>
<td><%= link_to 'Show', membership %></td>
<td><%= link_to 'Edit', edit_membership_path(membership) %></td>
<td><%= link_to 'Destroy', membership, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Membership', new_membership_path %>

View File

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

View File

@@ -0,0 +1,30 @@
<p id="notice"><%= notice %></p>
<p>
<b>Fetprofile:</b>
<%= @membership.fetprofile_id %>
</p>
<p>
<b>Gremium:</b>
<%= @membership.gremium_id %>
</p>
<p>
<b>Start:</b>
<%= @membership.start %>
</p>
<p>
<b>Stop:</b>
<%= @membership.stop %>
</p>
<p>
<b>Typ:</b>
<%= @membership.typ %>
</p>
<%= link_to 'Edit', edit_membership_path(@membership) %> |
<%= link_to 'Back', memberships_path %>