faqs oberfläche

This commit is contained in:
2014-04-11 13:01:17 +02:00
parent 68925c1463
commit 73bba9bc6f
5 changed files with 56 additions and 41 deletions

View File

@@ -27,7 +27,7 @@
<div class="span10 ">
<div class="header_wrap" style="background:7070a0">
<div class="header">
<%= image_tag('/fetlogo90.png',{:style=>"float:left;height:50px",:height=>"50"}) %>
<%= link_to image_tag('/fetlogo90.png',{:style=>"float:left;height:50px",:height=>"50"}),home_index_path %>
<h1 style="display:block"></h1>
</div>

View File

@@ -21,7 +21,7 @@
</div>
<%= f.actions do %>
<%= f.action :submit, :as => :button, :label=>"Sdf"+raw(fa_icon("save"))%>
<%= f.action :submit, :as => :button %>
<%= f.action :cancel, :as => :link %>
<% end %>

View File

@@ -1,19 +1,24 @@
<% @themengruppen.each do |tg| %>
<a name="themengruppe_<%=tg.id.to_s%>">
<h2><%= tg.title%></h2></a>
<ul>
<% tg.themen.order(:priority).reverse.each do |t| %>
<li><%= t.title %>
<div class="content-wrap content-column">
<% @themengruppen.each do |tg| %>
<div class="contentbox">
<a name="themengruppe_<%=tg.id.to_s%>"></a>
<h2> <%= tg.title%></h2>
<ul>
<% tg.themen.order(:priority).reverse.each do |t| %>
<li> <%= t.title %>
<ul> <% t.fragen.each do |f| %>
<li>
<b> <%= f.title %></b>
<p> <%= f.text %></p>
</li>
<% end %>
</ul>
</li>
<% end %>
</ul>
<ul>
<% t.fragen.each do |f| %>
<li><b> <%= f.title %></b><p> <%= f.text %></p></li>
<% end %>
</ul>
</li>
<% end %>
</ul>
<% end %>
</div>
<% end %>
</div>

View File

@@ -1,5 +1,5 @@
<div class="content-wrap content-column">
<p> <%= link_to "FAQS", faqs_themengruppen_path %></p>
<p> <%= link_to "FAQS", faqs_themengruppen_path,class: :btn %></p>
<ul class="unstyled linkbox-list">
<li>
<% @themengruppen.each do |themengruppe| %>

View File

@@ -1,25 +1,35 @@
<h1>Listing themengruppen</h1>
<div class="content-wrap content-column">
<p> <%= link_to "FAQS", faqs_themengruppen_path,class=btn %></p>
<ul class="unstyled linkbox-list">
<li>
<% @themengruppen.each do |themengruppe| %>
<div class="container-fluid">
<%= render themengruppe %>
<br/>
<div class="row-fluid">
<!--
<%= link_to 'Edit', edit_themengruppe_path(themengruppe) %>
-->
</div>
</div>
<% end %>
</li>
</ul>
<table>
<tr>
<th>Title</th>
<th>Text</th>
<th></th>
<th></th>
<th></th>
</tr>
<br/>
</div>
<script class="hidden-phone">
<% @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>
<!-- make_equal_height();
-->
</script>
<br />
<%= link_to 'New Themengruppe', new_themagruppen_path %>
<%= render :partial=>'layouts/pretty_toolbar' %>
<!--
<%= link_to 'New Themengruppe', new_themengruppe_path %>
-->