forked from bofh/fetsite
a lot of new models ...
Fotogallary, gremien, fetprofil,
This commit is contained in:
15
app/views/fetprofiles/_form.html.erb
Normal file
15
app/views/fetprofiles/_form.html.erb
Normal 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 %>
|
||||
6
app/views/fetprofiles/edit.html.erb
Normal file
6
app/views/fetprofiles/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing fetprofile</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @fetprofile %> |
|
||||
<%= link_to 'Back', fetprofiles_path %>
|
||||
35
app/views/fetprofiles/index.html.erb
Normal file
35
app/views/fetprofiles/index.html.erb
Normal 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 %>
|
||||
5
app/views/fetprofiles/new.html.erb
Normal file
5
app/views/fetprofiles/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New fetprofile</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', fetprofiles_path %>
|
||||
40
app/views/fetprofiles/show.html.erb
Normal file
40
app/views/fetprofiles/show.html.erb
Normal 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 %>
|
||||
12
app/views/fotos/_form.html.erb
Normal file
12
app/views/fotos/_form.html.erb
Normal 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 %>
|
||||
6
app/views/fotos/edit.html.erb
Normal file
6
app/views/fotos/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing foto</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @foto %> |
|
||||
<%= link_to 'Back', fotos_path %>
|
||||
29
app/views/fotos/index.html.erb
Normal file
29
app/views/fotos/index.html.erb
Normal 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 %>
|
||||
5
app/views/fotos/new.html.erb
Normal file
5
app/views/fotos/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New foto</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', fotos_path %>
|
||||
25
app/views/fotos/show.html.erb
Normal file
25
app/views/fotos/show.html.erb
Normal 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 %>
|
||||
11
app/views/galleries/_form.html.erb
Normal file
11
app/views/galleries/_form.html.erb
Normal 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 %>
|
||||
6
app/views/galleries/edit.html.erb
Normal file
6
app/views/galleries/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing gallery</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @gallery %> |
|
||||
<%= link_to 'Back', galleries_path %>
|
||||
27
app/views/galleries/index.html.erb
Normal file
27
app/views/galleries/index.html.erb
Normal 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 %>
|
||||
5
app/views/galleries/new.html.erb
Normal file
5
app/views/galleries/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New gallery</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', galleries_path %>
|
||||
20
app/views/galleries/show.html.erb
Normal file
20
app/views/galleries/show.html.erb
Normal 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 %>
|
||||
11
app/views/gremien/_form.html.erb
Normal file
11
app/views/gremien/_form.html.erb
Normal 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 %>
|
||||
6
app/views/gremien/edit.html.erb
Normal file
6
app/views/gremien/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing gremium</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @gremium %> |
|
||||
<%= link_to 'Back', gremien_path %>
|
||||
27
app/views/gremien/index.html.erb
Normal file
27
app/views/gremien/index.html.erb
Normal 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 %>
|
||||
5
app/views/gremien/new.html.erb
Normal file
5
app/views/gremien/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New gremium</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', gremien_path %>
|
||||
20
app/views/gremien/show.html.erb
Normal file
20
app/views/gremien/show.html.erb
Normal 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 %>
|
||||
13
app/views/memberships/_form.html.erb
Normal file
13
app/views/memberships/_form.html.erb
Normal 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 %>
|
||||
6
app/views/memberships/edit.html.erb
Normal file
6
app/views/memberships/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing membership</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @membership %> |
|
||||
<%= link_to 'Back', memberships_path %>
|
||||
31
app/views/memberships/index.html.erb
Normal file
31
app/views/memberships/index.html.erb
Normal 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 %>
|
||||
5
app/views/memberships/new.html.erb
Normal file
5
app/views/memberships/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New membership</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', memberships_path %>
|
||||
30
app/views/memberships/show.html.erb
Normal file
30
app/views/memberships/show.html.erb
Normal 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 %>
|
||||
Reference in New Issue
Block a user