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="span10 ">
<div class="header_wrap" style="background:7070a0"> <div class="header_wrap" style="background:7070a0">
<div class="header"> <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> <h1 style="display:block"></h1>
</div> </div>

View File

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

View File

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

View File

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