forked from bofh/fetsite
Merge remote-tracking branch 'hausdorff/master'
This commit is contained in:
9
app/views/attachments/_form.html.erb
Normal file
9
app/views/attachments/_form.html.erb
Normal 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 %>
|
||||
6
app/views/attachments/edit.html.erb
Normal file
6
app/views/attachments/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing attachment</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @attachment %> |
|
||||
<%= link_to 'Back', attachments_path %>
|
||||
23
app/views/attachments/index.html.erb
Normal file
23
app/views/attachments/index.html.erb
Normal 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 %>
|
||||
5
app/views/attachments/new.html.erb
Normal file
5
app/views/attachments/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New attachment</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', attachments_path %>
|
||||
10
app/views/attachments/show.html.erb
Normal file
10
app/views/attachments/show.html.erb
Normal 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 %>
|
||||
10
app/views/fragen/_form.html.erb
Normal file
10
app/views/fragen/_form.html.erb
Normal 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 %>
|
||||
6
app/views/fragen/edit.html.erb
Normal file
6
app/views/fragen/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing frage</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @frage %> |
|
||||
<%= link_to 'Back', fragen_path %>
|
||||
25
app/views/fragen/index.html.erb
Normal file
25
app/views/fragen/index.html.erb
Normal 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 %>
|
||||
5
app/views/fragen/new.html.erb
Normal file
5
app/views/fragen/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New frage</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', fragen_path %>
|
||||
13
app/views/fragen/show.html.erb
Normal file
13
app/views/fragen/show.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>
|
||||
<%= @frage.title %>
|
||||
</h1>
|
||||
|
||||
<p>
|
||||
<%= @frage.text %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_frage_path(@frage) %> |
|
||||
<%= link_to 'Back', fragen_path %>
|
||||
15
app/views/fragen/show.html.erb~
Normal file
15
app/views/fragen/show.html.erb~
Normal 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 %>
|
||||
@@ -12,7 +12,7 @@
|
||||
<li><%= link_to I18n.t(:home,:scope=>'home' ), home_index_path %>
|
||||
</li>
|
||||
<li><%= link_to I18n.t(:news,:scope=>'home' ),rubriken_path %></li>
|
||||
<li><%= link_to I18n.t(:info,:scope=>'home' ) %></li>
|
||||
<li><%= link_to I18n.t(:info,:scope=>'home' ),themengruppen_path %></li>
|
||||
<li><%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %></li>
|
||||
<li><%= link_to "Kalender", calendars_path %></li>
|
||||
<% if user_signed_in? %>
|
||||
|
||||
13
app/views/themen/_form.html.erb
Normal file
13
app/views/themen/_form.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<%= tinymce_assets %>
|
||||
<%= semantic_form_for @thema do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= f.input :themengruppe %>
|
||||
<%= f.input :text, :as=>:tinymce_text%>
|
||||
<% end %>
|
||||
<%= tinymce %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
3
app/views/themen/_small.html.erb
Normal file
3
app/views/themen/_small.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
<%= raw(small.text) %>
|
||||
<br/>
|
||||
<%= link_to 'Edit', edit_thema_path(small) %>
|
||||
2
app/views/themen/_thema.html.erb
Normal file
2
app/views/themen/_thema.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<%= link_to thema.title,themengruppe_thema_path(thema.themengruppe,thema)%>
|
||||
|
||||
6
app/views/themen/edit.html.erb
Normal file
6
app/views/themen/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing thema</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @thema %> |
|
||||
<%= link_to 'Back', themen_path %>
|
||||
25
app/views/themen/index.html.erb
Normal file
25
app/views/themen/index.html.erb
Normal 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 %>
|
||||
5
app/views/themen/new.html.erb
Normal file
5
app/views/themen/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New thema</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', themen_path %>
|
||||
10
app/views/themen/show.html.erb
Normal file
10
app/views/themen/show.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1><%= @thema.title %></h1>
|
||||
<p>
|
||||
<%= raw(@thema.text) %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_thema_path(@thema) %> |
|
||||
<%= link_to 'Back', themengruppe_path(@thema.themengruppe) %>
|
||||
10
app/views/themengruppen/_form.html.erb
Normal file
10
app/views/themengruppen/_form.html.erb
Normal 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 %>
|
||||
12
app/views/themengruppen/_themengruppe.html.erb
Normal file
12
app/views/themengruppen/_themengruppe.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
<h3> <%= link_to themengruppe.title, themengruppe %> </h3>
|
||||
<p>
|
||||
<%=themengruppe.text %>
|
||||
</p>
|
||||
<ul>
|
||||
<% themengruppe.themen.each do |t| %>
|
||||
<li>
|
||||
<%= render t %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
6
app/views/themengruppen/edit.html.erb
Normal file
6
app/views/themengruppen/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing themengruppen</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @themengruppe %> |
|
||||
<%= link_to 'Back', themengruppen_path %>
|
||||
24
app/views/themengruppen/index.html.erb
Normal file
24
app/views/themengruppen/index.html.erb
Normal file
@@ -0,0 +1,24 @@
|
||||
<div class="container-fluid">
|
||||
|
||||
<% @themengruppen.each_slice(2) do |row| %>
|
||||
<div class="row-fluid">
|
||||
<% row.each do |themengruppe| %>
|
||||
<div class="span6 equalheight">
|
||||
<div class="themengruppe">
|
||||
<%= render themengruppe %>
|
||||
<p>
|
||||
<%= link_to 'Edit', edit_themengruppe_path(themengruppe) %>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<script>
|
||||
make_equal_height();
|
||||
</script>
|
||||
|
||||
<%= link_to 'New Themengruppe', new_themengruppe_path %>
|
||||
25
app/views/themengruppen/index.html.erb~
Normal file
25
app/views/themengruppen/index.html.erb~
Normal 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 %>
|
||||
5
app/views/themengruppen/new.html.erb
Normal file
5
app/views/themengruppen/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New themagruppen</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', themengruppen_path %>
|
||||
29
app/views/themengruppen/show.html.erb
Normal file
29
app/views/themengruppen/show.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<h1><%= @themengruppe.title %></h1>
|
||||
|
||||
<p>
|
||||
<%= @themengruppe.text %>
|
||||
</p>
|
||||
|
||||
<div class="accordion" id="accordion1">
|
||||
<% @themengruppe.themen.each do |thema| %>
|
||||
<div class="accordion-group">
|
||||
<div class="accordion-heading">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion1" href="#collapse<%=thema.id%>">
|
||||
<%= thema.title %>
|
||||
</a>
|
||||
</div>
|
||||
<div id="collapse<%=thema.id%>" class="accordion-body collapse">
|
||||
<div class="accordion-inner">
|
||||
<%= render partial: "themen/small", object: thema %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= link_to 'Add Thema', new_themengruppe_thema_path(@themengruppe) %>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<%= link_to 'Edit', edit_themengruppe_path(@themengruppe) %> |
|
||||
<%= link_to 'Back', themengruppen_path %>
|
||||
Reference in New Issue
Block a user