forked from bofh/fetsite
fetzneditions
This commit is contained in:
12
app/views/fetzneditions/_form.html.erb
Normal file
12
app/views/fetzneditions/_form.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<%= semantic_form_for @fetznedition do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= f.input :desc %>
|
||||
<%= f.input :datum %>
|
||||
<%= f.input :datei %>
|
||||
<% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
6
app/views/fetzneditions/edit.html.erb
Normal file
6
app/views/fetzneditions/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing fetznedition</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @fetznedition %> |
|
||||
<%= link_to 'Back', fetzneditions_path %>
|
||||
29
app/views/fetzneditions/index.html.erb
Normal file
29
app/views/fetzneditions/index.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<h1>Listing fetzneditions</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Desc</th>
|
||||
<th>Datum</th>
|
||||
<th>Datei</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @fetzneditions.each do |fetznedition| %>
|
||||
<tr>
|
||||
<td><%= fetznedition.title %></td>
|
||||
<td><%= fetznedition.desc %></td>
|
||||
<td><%= fetznedition.datum %></td>
|
||||
<td><%= fetznedition.datei %></td>
|
||||
<td><%= link_to 'Show', fetznedition %></td>
|
||||
<td><%= link_to 'Edit', edit_fetznedition_path(fetznedition) %></td>
|
||||
<td><%= link_to 'Destroy', fetznedition, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Fetznedition', new_fetznedition_path %>
|
||||
5
app/views/fetzneditions/new.html.erb
Normal file
5
app/views/fetzneditions/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New fetznedition</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', fetzneditions_path %>
|
||||
25
app/views/fetzneditions/show.html.erb
Normal file
25
app/views/fetzneditions/show.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<b>Title:</b>
|
||||
<%= @fetznedition.title %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Desc:</b>
|
||||
<%= @fetznedition.desc %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Datum:</b>
|
||||
<%= @fetznedition.datum %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Datei:</b>
|
||||
<%= @fetznedition.datei %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_fetznedition_path(@fetznedition) %> |
|
||||
<%= link_to 'Back', fetzneditions_path %>
|
||||
Reference in New Issue
Block a user