New Feature: Themen/Informationen

This commit is contained in:
HausdorffHimself
2013-08-05 18:31:04 +02:00
parent e3f7d7e472
commit ac4cb5d0fe
96 changed files with 2139 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<%= semantic_form_for @attachment do |f| %>
<%= f.inputs do %>
<%= f.input :name %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

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

View File

@@ -0,0 +1,23 @@
<h1>Listing attachments</h1>
<table>
<tr>
<th>Name</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @attachments.each do |attachment| %>
<tr>
<td><%= attachment.name %></td>
<td><%= link_to 'Show', attachment %></td>
<td><%= link_to 'Edit', edit_attachment_path(attachment) %></td>
<td><%= link_to 'Destroy', attachment, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Attachment', new_attachment_path %>

View File

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

View File

@@ -0,0 +1,10 @@
<p id="notice"><%= notice %></p>
<p>
<b>Name:</b>
<%= @attachment.name %>
</p>
<%= link_to 'Edit', edit_attachment_path(@attachment) %> |
<%= link_to 'Back', attachments_path %>

View File

@@ -0,0 +1,10 @@
<%= semantic_form_for @frage do |f| %>
<%= f.inputs do %>
<%= f.input :title %>
<%= f.input :text %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

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

View File

@@ -0,0 +1,25 @@
<h1>Listing fragen</h1>
<table>
<tr>
<th>Title</th>
<th>Text</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @fragen.each do |frage| %>
<tr>
<td><%= frage.title %></td>
<td><%= frage.text %></td>
<td><%= link_to 'Show', frage %></td>
<td><%= link_to 'Edit', edit_frage_path(frage) %></td>
<td><%= link_to 'Destroy', frage, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Frage', new_frage_path %>

View File

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

View File

@@ -0,0 +1,15 @@
<p id="notice"><%= notice %></p>
<p>
<b>Title:</b>
<%= @frage.title %>
</p>
<p>
<b>Text:</b>
<%= @frage.text %>
</p>
<%= link_to 'Edit', edit_frage_path(@frage) %> |
<%= link_to 'Back', fragen_path %>

View File

@@ -0,0 +1,10 @@
<%= semantic_form_for @thema do |f| %>
<%= f.inputs do %>
<%= f.input :title %>
<%= f.input :text %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

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

View File

@@ -0,0 +1,25 @@
<h1>Listing themen</h1>
<table>
<tr>
<th>Title</th>
<th>Text</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @themen.each do |thema| %>
<tr>
<td><%= thema.title %></td>
<td><%= thema.text %></td>
<td><%= link_to 'Show', thema %></td>
<td><%= link_to 'Edit', edit_thema_path(thema) %></td>
<td><%= link_to 'Destroy', thema, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Thema', new_thema_path %>

View File

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

View File

@@ -0,0 +1,15 @@
<p id="notice"><%= notice %></p>
<p>
<b>Title:</b>
<%= @thema.title %>
</p>
<p>
<b>Text:</b>
<%= @thema.text %>
</p>
<%= link_to 'Edit', edit_thema_path(@thema) %> |
<%= link_to 'Back', themen_path %>

View File

@@ -0,0 +1,10 @@
<%= semantic_form_for @themengruppe do |f| %>
<%= f.inputs do %>
<%= f.input :title %>
<%= f.input :text %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

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

View File

@@ -0,0 +1,25 @@
<h1>Listing themengruppen</h1>
<table>
<tr>
<th>Title</th>
<th>Text</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @themengruppen.each do |themagruppen| %>
<tr>
<td><%= themagruppen.title %></td>
<td><%= themagruppen.text %></td>
<td><%= link_to 'Show', themagruppen %></td>
<td><%= link_to 'Edit', edit_themagruppen_path(themagruppen) %></td>
<td><%= link_to 'Destroy', themagruppen, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Themengruppe', new_themagruppen_path %>

View File

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

View File

@@ -0,0 +1,15 @@
<p id="notice"><%= notice %></p>
<p>
<b>Title:</b>
<%= @themagruppen.title %>
</p>
<p>
<b>Text:</b>
<%= @themagruppen.text %>
</p>
<%= link_to 'Edit', edit_themagruppen_path(@themagruppen) %> |
<%= link_to 'Back', themengruppen_path %>