themen interface cleanup1

This commit is contained in:
2014-06-21 14:53:16 +05:30
parent 6fdee8a7d6
commit 6c9a1b51c4
15 changed files with 102 additions and 91 deletions

View File

@@ -1,8 +1,8 @@
<p>
<b> <%= frage.title %> </b> <br/>
<b> <%= frage.title %>? </b> <br/>
<%= raw(frage.text) %>
<br/>
<%= link_to 'Edit', edit_frage_path(frage),:remote=>true %> |
<%= link_to 'Destroy',frage, method: :delete, :remote=> true , data: { confirm: 'Are you sure?' } %>
<%= link_to 'Edit', edit_frage_path(frage),:remote=>true %>
<%= link_to 'Destroy',frage, method: :delete, :remote=> true , data: { confirm: I18n.t("frage.sure") } %>
</p>

View File

@@ -33,5 +33,5 @@
<% end %>
<% end %>
</div>
<script>$('.datepicker').datepicker()</script>
<script>$('.datetimepicker').datetimepicker({format: 'd.m.Y H:i'})</script>
<%= tinymce %>

View File

@@ -1,33 +1,29 @@
<%= tinymce_assets %>
<div class="container-fluid">
<%= semantic_form_for @thema, :remote=>remote do |f| %>
<%= semantic_form_for @thema, :remote=>remote do |f| %>
<%= f.inputs do %>
<div class="row-fluid">
<div class="span6">
<%= f.input :title %>
</div>
<div class="span6">
<%= f.input :themengruppe %>
</div>
<div class="row-fluid">
<div class="span12">
<%= f.input :text, :as=>:tinymce_text,:label=>false, :input_html=>{:rows=>20} %>
</div>
</div>
</div>
<%= f.actions do %>
<%= f.action :submit, :as => :button %>
<%= f.action :cancel, :as => :link %>
<% end %>
<% end %><% end %>
<%= tinymce %>
<h2>Attachments:</h2>
<%= render :partial => "themen/select", :object => @thema,:locals =>{ :editor => :true} %>
<div class="row-fluid">
<div class="span6">
<%= f.input :title %>
</div>
<div class="span6">
<%= f.input :themengruppe %>
</div>
<div class="row-fluid">
<div class="span12">
<%= f.input :text, :as=>:tinymce_text,:label=>false, :input_html=>{:rows=>20} %>
</div>
</div>
</div>
<%= f.actions do %>
<%= f.action :submit, :as => :button %>
<%= f.action :submit, :as => :button, :label=> "&edit", :params=>{edit: true} %>
<%= f.action :cancel, :as => :link %>
<% end %>
<% end %><% end %>
<%= tinymce %>
<h2>Attachments:</h2>
<%= render :partial => "themen/select", :object => @thema,:locals =>{ :editor => :true} %>

View File

@@ -26,7 +26,7 @@
<div class="span6">
<!--<b><%= I18n.t("themengruppe.themen") %></b>
--><ul>
<% themengruppe.themen.order(:title).each do |t| %>
<% themengruppe.themen.order(:priority).reverse.each do |t| %>
<li>
<%= render t %>
</li>

View File

@@ -1,24 +1,25 @@
<h1><%= I18n.t("themengruppe.faqs") %>
<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>
</div>
<% end %>
<% @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>
</div>
<% end %>
</div>

View File

@@ -1,7 +1,7 @@
<div class="content-wrap content-column">
<%= render :partial=>'layouts/pretty_toolbar' %>
<p>
<%= link_to "FAQS", faqs_themengruppen_path,class: :btn %>
<%= link_to I18n.t("themengruppe.faqs"), faqs_themengruppen_path,class: :btn %>
</p>
<ul class="unstyled linkbox-list">
<li>

View File

@@ -1,6 +1,6 @@
<div class="content-wrap content-column" >
<%= link_to fa_icon("arrow-circle-left 2x")+" Alle Themengruppen", themengruppen_path, :class=>"linkbox" %>
<%= link_to fa_icon("question 2x")+" Häufige Fragen", faqs_themengruppen_path(:anchor=>"themengruppe_"+@themengruppe.id.to_s), :class=>"linkbox" %>
<%= link_to fa_icon("arrow-circle-left 2x")+I18n.t("themengruppe.showall"), themengruppen_path, :class=>"linkbox" %>
<%= link_to fa_icon("question 2x")+ I18n.t("themengruppe.faqs"), faqs_themengruppen_path(:anchor=>"themengruppe_"+@themengruppe.id.to_s), :class=>"linkbox" %>
<%= render :partial=>'layouts/pretty_toolbar' %>
<h1><%= @themengruppe.title %></h1>
@@ -13,11 +13,8 @@
<li>
<div class="contentbox">
<%= render :partial => 'themen/small', :object => thema %>
<ul class="unstyled">
<% unless thema.gremium.nil? %>
<li>
<%= link_to fa_icon("users 2x")+thema.gremium.name , thema.gremium,:class=>"linkbox" %>
</li>
@@ -26,9 +23,7 @@
<% thema.nlinks.each do |l| %>
<li><%= render l.neuigkeit %></li>
<% end %>
<% thema.nlinks.each do |l| %>
<li><%= render l.neuigkeit %></li>
<% end %>
</ul>
</div>
</li>