GitHub Account angelegt

This commit is contained in:
Andreas Stephanides
2013-02-12 02:05:12 +01:00
commit 3d11400d5e
216 changed files with 5031 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<%= semantic_form_for @neuigkeit do |f| %>
<%= f.inputs do %>
<%= f.input :title, :placeholder=>"Titel" %>
<%= f.input :text %>
<%= f.input :datum %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

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

View File

@@ -0,0 +1,27 @@
<h1>Listing neuigkeiten</h1>
<table>
<tr>
<th>Title</th>
<th>Text</th>
<th>Datum</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @neuigkeiten.each do |neuigkeit| %>
<tr>
<td><%= neuigkeit.title %></td>
<td><%= neuigkeit.text %></td>
<td><%= neuigkeit.datum %></td>
<td><%= link_to 'Show', neuigkeit %></td>
<td><%= link_to 'Edit', edit_neuigkeit_path(neuigkeit) %></td>
<td><%= link_to 'Destroy', neuigkeit, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Neuigkeit', new_neuigkeit_path %>

View File

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

View File

@@ -0,0 +1,20 @@
<p id="notice"><%= notice %></p>
<p>
<b>Title:</b>
<%= @neuigkeit.title %>
</p>
<p>
<b>Text:</b>
<%= @neuigkeit.text %>
</p>
<p>
<b>Datum:</b>
<%= @neuigkeit.datum %>
</p>
<%= link_to 'Edit', edit_neuigkeit_path(@neuigkeit) %> |
<%= link_to 'Back', neuigkeiten_path %>