fetzneditions

This commit is contained in:
Andreas Stephanides
2013-08-19 15:42:08 +02:00
parent ea0b245d54
commit 4c48a4b769
21 changed files with 508 additions and 0 deletions

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

View File

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

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

View File

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

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