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 %>
|
||||
Reference in New Issue
Block a user