forked from bofh/fetsite
Merge branch 'master' of http://github.com/fetsite/fetsite
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<b>Name:</b>
|
||||
<%= @beispiel.name %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Desc:</b>
|
||||
<%= @beispiel.desc %>
|
||||
<%= @beispiel.beispieldatei.url %>
|
||||
</p>
|
||||
<p>
|
||||
<%= @beispiel.lva.name %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_beispiel_path(@beispiel) %> |
|
||||
<%= link_to 'Back', beispiele_path %>
|
||||
@@ -1,5 +1,7 @@
|
||||
<div class="contentbox">
|
||||
<%= image_tag("/iconnavy/time.png") %>
|
||||
<% image_tag("/iconnavy/time.png") %>
|
||||
<%= fa_icon("calendar 2x") %>
|
||||
|
||||
<% if calentry.start.to_date == calentry.ende.to_date
|
||||
format=:timeonly
|
||||
else
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span1"></div><div class="span1">
|
||||
<%= image_tag("/icon_kalender_small.png") %>
|
||||
<%= fa_icon("calendar 2x") %>
|
||||
|
||||
</div>
|
||||
<div class="span4">
|
||||
<%= f.input :start, :as => :datepicker %></div><div class="span4">
|
||||
|
||||
1
app/views/fetprofiles/_nlink.html.erb
Normal file
1
app/views/fetprofiles/_nlink.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<h2><%= nlink.title %></h2>
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<%= link_to I18n.t('fetprofiles.new'), new_fetprofile_path %>
|
||||
<%= link_to I18n.t('profile.new_profile'), new_fetprofile_path %>
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
|
||||
21
app/views/galleries/_nlink.html.erb
Normal file
21
app/views/galleries/_nlink.html.erb
Normal file
@@ -0,0 +1,21 @@
|
||||
<div class="media gallery-block">
|
||||
<div class="pull-left" href="#">
|
||||
<%= if(nlink.fotos.empty?)
|
||||
image_tag "no_image_128.png", {:class => "img-rounded"}
|
||||
else
|
||||
image_tag nlink.fotos.sample.datei.big_thumb.url, {:class => "img-rounded"}
|
||||
end %>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<small class="pull-left"><%= nlink.fotos.size.to_s + " " + I18n.t('fotos.bilder')%> </small>
|
||||
<small class="pull-right"><%=I18n.l(nlink.try(:datum).try(:to_date)) unless nlink.try(:datum).try(:to_date).nil? %></small></br>
|
||||
<h1><%= nlink.name %></h1>
|
||||
<p>
|
||||
<%= if nlink.desc.split.size > Gallery::WORD_COUNT
|
||||
nlink.desc.split[0..Gallery::WORD_COUNT].join(" ") + " ..."
|
||||
else
|
||||
nlink.desc
|
||||
end%>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -25,6 +25,27 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="media gallery-block">
|
||||
<div class="pull-left" href="#">
|
||||
<%= if(gallery.fotos.empty?)
|
||||
image_tag "no_image_128.png", {:class => "img-rounded"}
|
||||
else
|
||||
image_tag gallery.fotos.sample.datei.big_thumb.url, {:class => "img-rounded"}
|
||||
end %>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<small class="pull-left"><%= gallery.fotos.size.to_s + " " + I18n.t('fotos.bilder')%> </small>
|
||||
<small class="pull-right"><%=I18n.l(gallery.try(:datum).try(:to_date)) unless gallery.try(:datum).try(:to_date).nil? %></small></br>
|
||||
<h1><%= gallery.name %></h1>
|
||||
<p>
|
||||
<%= if gallery.desc.split.size > Gallery::WORD_COUNT
|
||||
gallery.desc.split[0..Gallery::WORD_COUNT].join(" ") + " ..."
|
||||
else
|
||||
gallery.desc
|
||||
end%>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %> <!-- end link -->
|
||||
</div> <!-- close span6 -->
|
||||
<% end %> <!-- end row -->
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<li>
|
||||
<%= link_to g do %>
|
||||
<h2><%= g.name %></h2>
|
||||
<p><%= g.desc %></p>
|
||||
<p><%= g.desc.html_safe %></p>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
@@ -11,7 +11,11 @@
|
||||
<%= @gremium.desc.html_safe %>
|
||||
</p>
|
||||
<% unless @gremium.thema.nil? %>
|
||||
<p><%= link_to "Mehr zum Gremium lesen ..." ,themengruppe_path(@gremium.thema.themengruppe , {:thema=>@gremium.thema.id})%></p>
|
||||
<p>
|
||||
<%= link_to thema_path(@gremium.thema) do%>
|
||||
<%= fa_icon "book 2x border" %> Mehr über <%=@gremium.fall4 %> erfahren
|
||||
<% end %>
|
||||
</p>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
<br />
|
||||
<%= render 'layouts/pretty_toolbar' %>
|
||||
<%= link_to 'New Gremium', new_gremium_path %>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -28,10 +28,11 @@
|
||||
<% end %>
|
||||
|
||||
<% @themen.each do |thema| %>
|
||||
<ul class="unstyled linkbox-list" style="max-width:70em">
|
||||
<li><%= link_to thema, {:class=>"linkbox"} do %>
|
||||
<ul class="unstyled content-list" style="max-width:70em">
|
||||
<li><%= link_to thema.title,thema %>
|
||||
<div class="contentbox">
|
||||
<%= render :partial=>"themen/small", :object=>thema %>
|
||||
<% end %>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<% end %>
|
||||
</ul>
|
||||
<p>
|
||||
<%= link_to "FET Login", user_omniauth_authorize_path(:ldap) %>
|
||||
<%= link_to I18n.t('home.login'), user_omniauth_authorize_path(:ldap) %>
|
||||
</p>
|
||||
<div class="alert">
|
||||
<h2>Beta Test</h2>
|
||||
@@ -22,12 +22,12 @@
|
||||
</p>
|
||||
<p><%= link_to "Steuerelemente und Komponenten", "http://getbootstrap.com/2.3.2/index.html" %></p>
|
||||
<p>Um bei der Entwicklung mitzuhelfen braucht nur Ruby on Rails installiert werden</p>
|
||||
<p><%= link_to "Getting Started" , home_startdev_path%></p>
|
||||
<p><%= link_to "Getting Started" , startdev_home_index_path %></p>
|
||||
<p> Das Kalender Feature wird überarbeitet, in Zukunft soll folgender Link nicht mehr funktionieren <%= link_to "Kalender", calendars_path %>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<%= link_to "Entwicklungsstatus" , home_dev_path %>
|
||||
<%= link_to "Entwicklungsstatus" , dev_home_index_path %>
|
||||
<%= render 'beispiele' %>
|
||||
|
||||
Verschiedene Styles
|
||||
|
||||
1
app/views/home/kontakt.html.erb
Normal file
1
app/views/home/kontakt.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= I18n.t "home.kontakt" %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="content-wrap content-column">
|
||||
<%= semantic_form_for :search,:remote=>true, :url=>search_home_index_path, :html=>{:id=>"search_form", :method=>'get'} do |f| %>
|
||||
<%= f.input :query, :input_html => { :name => 'query' } %>
|
||||
<%= semantic_form_for :search,:remote=>true, :url=>search_home_index_path, :html=>{:id=>"search_form",:class=>"navbar-search", :method=>'get'} do |f| %>
|
||||
<%= f.input :query, :input_html => { :name => 'query' } , :label=>false, :class=>"search-query" %>
|
||||
<% end %>
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
|
||||
@@ -17,13 +17,19 @@ Verwendung: Aufruf mit
|
||||
Versionen<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li> <%= link_to "active", t[:path] %>
|
||||
</li>
|
||||
<% t[:versions].each_with_index do |v,i| %>
|
||||
<li>
|
||||
<%
|
||||
uri= URI.parse(t[:path]);
|
||||
uri.query= URI.encode_www_form(URI.decode_www_form(uri.query)<<["version",i.to_s])
|
||||
%>
|
||||
<%= link_to v[:created_at],uri.to_s ,:version=>v[:id]%>
|
||||
<% unless t[:path].nil?
|
||||
uri= URI.parse(t[:path]);
|
||||
q=[];
|
||||
q= q.merge(URI.decode_www_form(uri.query)) unless uri.query.nil?
|
||||
|
||||
uri.query= URI.encode_www_form(q<<["version",i.to_s])
|
||||
%>
|
||||
<%= link_to I18n.l(v[:created_at]).to_s,uri.to_s ,:version=>v[:id] %>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
@@ -36,21 +36,27 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span1 "></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span1">
|
||||
</div>
|
||||
<div class="span10" id="contentdiv">
|
||||
<%= yield %>
|
||||
<span class="pull-right"> <%= render 'layouts/login' %></span>
|
||||
</div>
|
||||
<div class="span1">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span1">
|
||||
</div>
|
||||
<div class="span10" id="contentdiv">
|
||||
<span class="pull-right"> <%= render 'layouts/login' %></span> Version 0.0.3a
|
||||
</div>
|
||||
<div class="span1">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
<li><%= link_to I18n.t('mitarbeiter',:scope=>'home' ),fetprofiles_path %></li>
|
||||
<li><%= link_to I18n.t('fotos',:scope=>'home' ),galleries_path %></li>
|
||||
<li><%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %></li>
|
||||
<li> <%= link_to I18n.t("home.search"), search_home_index_path %></li>
|
||||
<li> <%= link_to I18n.t("home.search"), search_home_index_path %></li>
|
||||
<li> <%= link_to I18n.t("home.kontakt"), kontakt_home_index_path %></li>
|
||||
<li>
|
||||
<%= link_to 'Admin' , config_path%>
|
||||
</li>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<div class="media">
|
||||
<a class="pull-left" href="#">
|
||||
<img class="media-object img" src="<%= lec_lva.picture.thumb.url %>"/>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<h4><%= link_to lec_lva.name, lec_lva %></h4>
|
||||
<a class="pull-left" href="#">
|
||||
<img class="media-object img" src="<%= lec_lva.picture.thumb.url unless lec_lva.picture.nil? %>"/>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<h4><%= lec_lva.name %></h4>
|
||||
Email: <%= mail_to lec_lva.email %><br>
|
||||
TISS: <%= link_to lec_lva.name, lec_lva.link %>
|
||||
</div>
|
||||
</div>
|
||||
TISS: <%= link_to lec_lva.name, lec_lva.link, target: "_blank" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<td><%= lecturer.name %></td>
|
||||
<td><%= lecturer.email %></td>
|
||||
<td><%= lecturer.oid %></td>
|
||||
<td><%= lecturer.picture %></td>
|
||||
<td><%= image_tag lecturer.picture.thumb %></td>
|
||||
<td><%= link_to 'Show', lecturer %></td>
|
||||
<td><%= link_to 'Edit', edit_lecturer_path(lecturer) %></td>
|
||||
<td><%= link_to 'Destroy', lecturer, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
|
||||
<%= render partial: "lec_lva", object: @lecturer %>
|
||||
|
||||
<p>
|
||||
<b>Name:</b>
|
||||
<%= @lecturer.name %>
|
||||
|
||||
@@ -1,28 +1,25 @@
|
||||
<% @lva.modul.each do |modul| %>
|
||||
<% modul.modulgruppen.each do |g| %>
|
||||
<ul class="breadcrumb">
|
||||
<li><%= link_to g.studium.name , studium_path(g.studium)%>
|
||||
<span class="divider"></span></li>
|
||||
<li><%= link_to g.name , modulgruppe_path(g)%><span class="divider">/</span></li>
|
||||
<li><%= link_to modul.name , modul_path(modul)%></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1><%=lva.typ.to_s + ' ' + lva.name %></h1>
|
||||
<h2>Prüfungsinformation</h2>
|
||||
<div class="">
|
||||
<%= lva.pruefungsinformation.to_s.html_safe %>
|
||||
</div>
|
||||
<h2>Lernaufwand</h2>
|
||||
<div class="">
|
||||
<%= lva.lernaufwand %>
|
||||
</div>
|
||||
<h2>Beschreibung</h2>
|
||||
<div class="">
|
||||
<%= lva.desc.to_s.html_safe %>
|
||||
</div>
|
||||
|
||||
|
||||
<p>
|
||||
<%= @lva.lvanr %>
|
||||
<b><%= @lva.name %> <%= @lva.ects %> ECTS/ <%= @lva.stunden %> Std</b>
|
||||
|
||||
<%= lva.lvanr %>
|
||||
<b><%= lva.name %> <%= lva.ects %> ECTS/ <%= lva.stunden %> Std</b>
|
||||
</p>
|
||||
<p>
|
||||
<%= @lva.desc %>
|
||||
|
||||
</p>
|
||||
<ul>
|
||||
<% @lva.beispiele.each do |b|%>
|
||||
|
||||
<li><%= render b%></li>
|
||||
|
||||
<% end %>
|
||||
</ul>
|
||||
<%= toolbar_html(@toolbar_elements) %>
|
||||
|
||||
2
app/views/lvas/_nlink.html.erb
Normal file
2
app/views/lvas/_nlink.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<h2><%= nlink.title %></h2>
|
||||
<% render :partial=> "lvas/lva", :object=>nlink %>
|
||||
29
app/views/lvas/compare_tiss.html.erb
Normal file
29
app/views/lvas/compare_tiss.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<%= render partial: "lva", object: @lva %>
|
||||
<h2> <%= I18n.t "lecturers.lecturers" %> </h2>
|
||||
<% @lva.lecturers.each do |lec| %>
|
||||
<%= render :partial=>'lecturers/lec_lva', :object=>lec %>
|
||||
|
||||
<% end %>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="span6">
|
||||
<p> Tiss Version</p>
|
||||
<%= link_to "Von Tiss laden", load_tiss_lva_path(@lva) %>
|
||||
<%= render partial: "lva", object: @lvatiss %>
|
||||
|
||||
<h2> <%= I18n.t "lecturers.lecturers" %> </h2>
|
||||
<% @lvatiss.lecturers.each do |lec| %>
|
||||
<%= render :partial=>'lecturers/lec_lva', :object=>lec %>
|
||||
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -4,10 +4,12 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span8">
|
||||
<h1><%=@lva.typ.to_s + ' ' + @lva.name %></h1>
|
||||
|
||||
<h2>Prüfungsinformation</h2>
|
||||
<div class="">
|
||||
<%= @lva.pruefungsinformation.html_safe %>
|
||||
</div>
|
||||
|
||||
<h2>Lernaufwand</h2>
|
||||
<div class="">
|
||||
<%= @lva.lernaufwand %>
|
||||
@@ -16,14 +18,13 @@
|
||||
<div class="">
|
||||
<%= @lva.desc.to_s.html_safe %>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<h2>Beispiele</h2>
|
||||
<% @lva.beispiele.each do |b| %>
|
||||
<%= render b%>
|
||||
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
<h2>Beispiele</h2>
|
||||
<% @lva.beispiele.each do |b| %>
|
||||
<%= render b%>
|
||||
<% end %>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="span4">
|
||||
<div class="contentbox">
|
||||
@@ -56,7 +57,30 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<% unless @lva.nlinks.empty? %>
|
||||
<h2>Neuigkeiten</h2>
|
||||
<% @lva.nlinks.each do |l| %>
|
||||
<%= render l.neuigkeit %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<%= render 'layouts/pretty_toolbar' %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<%= render 'beispiele/form_bulk' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<%= render 'layouts/pretty_toolbar' %>
|
||||
</div>
|
||||
<%= render 'beispiele/form_bulk' %>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<h2><%= link_to modulgruppe.name, modulgruppe_path(modulgruppe) %>
|
||||
</h2>
|
||||
|
||||
<%= modulgruppe.desc%><ul>
|
||||
<%= modulgruppe.desc%><ul class="unstyled">
|
||||
<%= render :partial=>'moduls/kurz', :collection=>modulgruppe.moduls, :as=>:modul%>
|
||||
</ul>
|
||||
<br>
|
||||
|
||||
@@ -1,18 +1,23 @@
|
||||
</ul><p id="notice"><%= notice %></p>
|
||||
<%= render 'studien/tabs' %>
|
||||
<div class="content-wrap content-column">
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>
|
||||
<%= @modulgruppe.name %>
|
||||
</h1>
|
||||
<p>
|
||||
<!-- <b><%= link_to "Studium: "+@modulgruppe.studium.name, studium_path(@modulgruppe.studium) %></b>-->
|
||||
|
||||
</p><p>
|
||||
</p>
|
||||
<p>
|
||||
<b><%= I18n.t "modulgruppe.typ"%>:</b>
|
||||
<%= @modulgruppe.typ %>
|
||||
</p>
|
||||
|
||||
|
||||
<% @modulgruppe.moduls.each do |modul| %>
|
||||
<%= render 'moduls/kurz', :modul=>modul%>
|
||||
<% end %>
|
||||
<ul class="unstyled">
|
||||
<% @modulgruppe.moduls.each do |modul| %>
|
||||
<%= render 'moduls/kurz', :modul=>modul%>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<%= render 'layouts/pretty_toolbar' %>
|
||||
</div>
|
||||
|
||||
@@ -1,21 +1,29 @@
|
||||
<div class="container-fluid">
|
||||
<%= semantic_form_for @modul do |f| %>
|
||||
|
||||
<%= f.inputs do %>
|
||||
<div class="row-fluid">
|
||||
<div class="span9">
|
||||
<%= f.input :name ,:hint=>true%>
|
||||
<div class="row-fluid">
|
||||
<div class="span8">
|
||||
<%= f.input :desc, :as=>:tinymce_text %>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<%= f.input :depend %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<%= f.input :name ,:hint=>true%>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<%= f.input :desc, :as=>:tinymce_text %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<%= f.input :depend %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span3">
|
||||
<%= f.input :modulgruppen,:as => :check_boxes, :collection => Hash[Modulgruppe.all.map{|m| [m.studium.name + " " + m.name,m.id]}.sort] %>
|
||||
<%= f.input :modulgruppen, :as => :check_boxes, :member_label=>:long_name, :collection => Modulgruppe.all %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
29
app/views/moduls/_form_bulk.html.erb
Normal file
29
app/views/moduls/_form_bulk.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<%= semantic_form_for "moduls[]", :url=>update_bulk_moduls_path do |ff| %>
|
||||
<table>
|
||||
<tr><th>Modulname</th><th>Modulgruppen</th><th>Beschreibung</th> <th>Voraussetzungen</th></tr>
|
||||
<% @moduls.each do |m| %>
|
||||
<%= semantic_fields_for "moduls[#{m.id}]", m do |f| %>
|
||||
<tr><td>
|
||||
<%= f.input :id, :label=>false, :hint=>"" ,:as=>:hidden %>
|
||||
<%= f.input :name, :label=>false, :hint=>"" %></td>
|
||||
<td>
|
||||
<%= f.input :modulgruppen, :label=>false, :hint=>"" , :collection=>Modulgruppe.all %>
|
||||
</td>
|
||||
<td>
|
||||
<%= f.input :desc, :label=>false, :hint=>"" ,:input_html=>{:class=>"row-fluid"} %>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<%= f.input :depend, :label=>false, :hint=>"" ,:input_html=>{:class=>"row-fluid"} %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</table>
|
||||
<%= ff.actions do %>
|
||||
<%= ff.action :submit, :label=>"Save", :as=>:button %>
|
||||
<%= ff.action :cancel, :as => :link %>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
|
||||
@@ -1,6 +1,19 @@
|
||||
<li><p>
|
||||
<li>
|
||||
<div class="contentbox">
|
||||
<p>
|
||||
<b><% if !modul.name.nil? %><%= link_to "Modul "+ modul.name , modul_path(modul) %> <%end%></b>
|
||||
</p>
|
||||
<ul>
|
||||
<% modul.lvas.each do |lva| %>
|
||||
<li> <%= render :partial=>'lvas/lva_semester', :locals =>{:lva => lva}%>
|
||||
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
<% link_to '<i class="icon-pencil"></i>'.html_safe+I18n.t("common.edit"), edit_modul_path(modul) %>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
@@ -5,31 +5,32 @@
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span8">
|
||||
<h2><%=I18n.t("modul.desc")%></h2>
|
||||
<p>
|
||||
<%= raw(@modul.desc) %>
|
||||
</p>
|
||||
<h2><%=I18n.t("modul.lvas")%></h2>
|
||||
<% @modul.lvas.each_slice(3) do |row| %>
|
||||
<ul>
|
||||
<% row.each do |lv| %>
|
||||
<li>
|
||||
<%= render 'lvas/lva_semester', :lva=>lv%>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
<h2><%=I18n.t("modul.desc")%></h2>
|
||||
<p>
|
||||
<%= raw(@modul.desc) %>
|
||||
</p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<div class="lva-sidebar">
|
||||
<h2><%=I18n.t("modul.mgs")%></h2>
|
||||
<ul>
|
||||
<% @modul.modulgruppen.each do |mg| %>
|
||||
<li>
|
||||
<%= render 'modulgruppen/kurz', :modulgruppe=>mg %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<div class="lva-sidebar">
|
||||
<h2><%=I18n.t("modul.mgs")%></h2>
|
||||
<ul>
|
||||
<% @modul.modulgruppen.each do |mg| %>
|
||||
<li>
|
||||
<%= render 'modulgruppen/kurz', :modulgruppe=>mg %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<h2><%=I18n.t("modul.lvas")%></h2>
|
||||
<% @modul.lvas.each_slice(3) do |row| %>
|
||||
<ul>
|
||||
<% row.each do |lv| %>
|
||||
<li>
|
||||
<%= render 'lvas/lva_semester', :lva=>lv%>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
</div>
|
||||
</div></div>
|
||||
|
||||
1
app/views/moduls/edit_bulk.html.erb
Normal file
1
app/views/moduls/edit_bulk.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= render :partial=>"form_bulk" %>
|
||||
@@ -1,4 +1,4 @@
|
||||
<%= semantic_form_for "lvas[]", :url=>modul_update_lvas_path(@modul) do |ff|%>
|
||||
<%= semantic_form_for "lvas[]", :url=>update_lvas_modul_path(@modul) do |ff|%>
|
||||
<table>
|
||||
<% i = 0 %>
|
||||
<% @lvas.each do |lva|%>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%= semantic_form_for "lvas[]", :url=>modul_show_tiss_path(params[:modul_id]) do |ff|%>
|
||||
<%= semantic_form_for "lvas[]", :url=>show_tiss_modul_path(params[:modul_id]) do |ff|%>
|
||||
<% for i in 1..5 do %>
|
||||
|
||||
<%= semantic_fields_for "lvas[#{i}]" do |f| %>
|
||||
|
||||
1
app/views/moduls/new_bulk.html.erb
Normal file
1
app/views/moduls/new_bulk.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= render :partial=>"form_bulk" %>
|
||||
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
<% if neuigkeit.has_calentries? %>
|
||||
<div class="pull-right" href="#">
|
||||
<%= image_tag("/iconnavy/time.png") %>
|
||||
<%= fa_icon("calendar 2x") %>
|
||||
<% unless neuigkeit.calentries.upcoming.empty? %>
|
||||
<%= neuigkeit.calentries.upcoming.first.text %>
|
||||
<% else unless neuigkeit.calentries.recent.empty? %>
|
||||
|
||||
11
app/views/neuigkeiten/_nlink_list.html.erb
Normal file
11
app/views/neuigkeiten/_nlink_list.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<li>
|
||||
<%= link_to nlink_list.link do %>
|
||||
<div class="contentbox" >
|
||||
<% p = nlink_list.link_type.downcase.pluralize+"/nlink" %>
|
||||
<%= raw(strip_links(render :partial=>p, :object=>nlink_list.link )) %>
|
||||
</div>
|
||||
<% end %>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
12
app/views/neuigkeiten/_nlink_list_search.html.erb
Normal file
12
app/views/neuigkeiten/_nlink_list_search.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
<li>
|
||||
<%= link_to nlink_list_search.title, nlink_list_search %>
|
||||
<%= link_to "add:"+nlink_list_search.title, create_link_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit, :link_id=>nlink_list_search.id, :link_type=>nlink_list_search.class.to_s) %>
|
||||
<div class="contentbox" >
|
||||
<% p = nlink_list_search.class.to_s.downcase.pluralize+"/nlink" %>
|
||||
<%= render :partial=>p, :object=>nlink_list_search %>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
@@ -11,22 +11,36 @@
|
||||
</span>
|
||||
<div class="media">
|
||||
<div class="pull-left" href="#">
|
||||
<p><br><%= link_to image_tag(@neuigkeit.picture.big_thumb.url),@neuigkeit.picture.url %>
|
||||
<p><br><%= link_to image_tag(@neuigkeit.picture.big_thumb.url),@neuigkeit.picture.try(:url) %>
|
||||
</p>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h1>
|
||||
<%= @neuigkeit.title%>
|
||||
|
||||
</h1>
|
||||
<%= @neuigkeit.title%>
|
||||
|
||||
</h1>
|
||||
<%= raw(@neuigkeit.text) %>
|
||||
<p></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% @calentries1.each do |ce|%>
|
||||
<%= render ce unless ce.nil? %>
|
||||
<% end %>
|
||||
<%= render 'layouts/pretty_toolbar', :object=> @toolbar_elements %>
|
||||
</div>
|
||||
|
||||
Siehe auch:
|
||||
<ul class="unstyled">
|
||||
<div id="nlink_list">
|
||||
<%= render partial: "nlink_list", collection: @neuigkeit.nlinks %>
|
||||
</div>
|
||||
<div id="nlink_list_search">
|
||||
<%= render partial: "nlink_list_search", collection: @nlink_search %>
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
<%= semantic_form_for :find_link, :url=>find_link_rubrik_neuigkeit_path(@rubrik,@neuigkeit), :html=>{:id=>"search_form", :method=>'get'} do |f| %>
|
||||
<%= f.input :query, :input_html => { :name => 'query' },:label=>false %>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -15,6 +15,15 @@
|
||||
<div class="row-fluid">
|
||||
<%= f.input :desc, :as=>:tinymce_text , :wrapper_html=>{:class=>"span12"}%>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<%= f.input :qualifikation, :as=>:tinymce_text , :wrapper_html=>{:class=>"span12"}%>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<%= f.input :struktur, :as=>:tinymce_text , :wrapper_html=>{:class=>"span12"}%>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<%= f.input :jobmoeglichkeiten, :as=>:tinymce_text , :wrapper_html=>{:class=>"span12"}%>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
|
||||
|
||||
21
app/views/studien/_infoansicht.html.erb
Normal file
21
app/views/studien/_infoansicht.html.erb
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<p><%= link_to "Qualifikationsprofil", studium_path( @studium, :ansicht=>"qualifikationsprofil")%> </p>
|
||||
<%= raw(@studium.desc) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<ul class="unstyled">
|
||||
<% @studium.nlinks.each do |l| %>
|
||||
<li><%= render l.neuigkeit %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
22
app/views/studien/_modulgruppenansicht.html.erb
Normal file
22
app/views/studien/_modulgruppenansicht.html.erb
Normal file
@@ -0,0 +1,22 @@
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row-fluid">
|
||||
<% if params[:info].true? %>
|
||||
<%= raw(@studium.desc) %>
|
||||
<% else %>
|
||||
<%= @studium.desc_first_words %> <%= link_to I18n.t('studium.info'), studium_path(@studium, :ansicht=>params[:ansicht], :info=>true) %>
|
||||
<% end %>
|
||||
|
||||
|
||||
<% @studienphasen.each do |sp| %>
|
||||
<% sp[:modulgruppen].each do |row| %>
|
||||
<div class="row-fluid">
|
||||
<% row.each do |modulgruppe| %>
|
||||
<div class="span<%= sp[:width]%> min-width:13em;">
|
||||
<%= render modulgruppe %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
2
app/views/studien/_nlink.html.erb
Normal file
2
app/views/studien/_nlink.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<h2><%= nlink.name %></h2>
|
||||
<p><%= nlink.desc_first_words %></p>
|
||||
34
app/views/studien/_semesteransicht.html.erb
Normal file
34
app/views/studien/_semesteransicht.html.erb
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
<div class="container-fluid">
|
||||
<% if params[:info].true? %>
|
||||
<%= raw(@studium.desc) %>
|
||||
<% else %>
|
||||
<%= @studium.desc_first_words %> <%= link_to I18n.t('studium.info'), studium_path(@studium, :ansicht=>params[:ansicht], :info=>true) %>
|
||||
<% end %>
|
||||
|
||||
<% @studium.semester.each do |sem| %>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<div class="contentbox">
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="span8">
|
||||
<h2><%= sem.name %></h2>
|
||||
</div>
|
||||
<div class="span4"><div class="pull-right"><%= link_to I18n.t("lva.addrem"), edit_semester_path(sem), :class=>"btn-small"%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% sem.lvas.each do |lva| %>
|
||||
<div class="row-fluid">
|
||||
<%= render :partial=>'lvas/lva_semester', :locals =>{:lva => lva}%>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= render :partial=>'layouts/pretty_toolbar', :locals=>{:elements=>@toolbar_elements} %>
|
||||
</div>
|
||||
@@ -1,4 +1,4 @@
|
||||
<%= link_to studium_path(studium, :ansicht=>'semesteransicht') ,{:class=>"linkbox"} do %>
|
||||
<%= link_to studium_path(studium, {:ansicht=>'semesteransicht'}) ,{:class=>"linkbox"} do %>
|
||||
<div class="media">
|
||||
<div class="pull-left">
|
||||
<%= image_tag studium.picture.big_thumb.url %>
|
||||
|
||||
25
app/views/studien/infoansicht.html.erb
Normal file
25
app/views/studien/infoansicht.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<%= render 'studien/tabs' %>
|
||||
<div class="content-wrap content-column">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
|
||||
<div class="span6">
|
||||
<h1><%= @studium.typ %> <%= @studium.name %> (<%= @studium.zahl %>)</h1>
|
||||
</div>
|
||||
<div class="span3 pull-right">
|
||||
<div class="pull-right">
|
||||
<%= link_to @text, studium_path(@studium, :ansicht=>@flip), :class=>"btn" %>
|
||||
<%= link_to "Infoansicht", studium_path(@studium, :ansicht=>'infoansicht'), :class=>"btn" unless params[:ansicht]=='infoansicht'%>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
|
||||
<%= raw(@studium.desc) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2,8 +2,14 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<%= render 'studien/tabs' %>
|
||||
<div class="span6"> <h1><%= @studium.typ %> <%= @studium.name %> (<%= @studium.zahl %>)</h1></div>
|
||||
<div class="span3 pull-right"><div class="pull-right"> <%= link_to @text, studium_path(@studium, :ansicht=>@flip), :class=>"btn" %></div>
|
||||
<div class="span6">
|
||||
<h1><%= @studium.typ %> <%= @studium.name %> (<%= @studium.zahl %>)</h1>
|
||||
</div>
|
||||
<div class="span3 pull-right">
|
||||
<div class="pull-right">
|
||||
<%= link_to @text, studium_path(@studium, :ansicht=>@flip), :class=>"btn" %>
|
||||
<%= link_to "Infoansicht", studium_path(@studium, :ansicht=>'infoansicht'), :class=>"btn" unless params[:ansicht]=='infoansicht'%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<%= render 'studien/tabs' %>
|
||||
|
||||
<p id="notice"><%= notice %></p>
|
||||
<div class="span6"> <h1><%= @studium.typ %> <%= @studium.name %> (<%= @studium.zahl %>)</h1></div>
|
||||
<div class="span3 pull-right"><div class="pull-right"><%= link_to @text, studium_path(@studium, :ansicht=>@flip), :class=>"btn" %></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<% if params[:info].true? %>
|
||||
<%= raw(@studium.desc) %>
|
||||
<%= render 'studien/tabs' %>
|
||||
<div class="content-wrap content-column">
|
||||
<p id="notice"><%= notice %></p>
|
||||
<h1><%= @studium.typ %> <%= @studium.name %> (<%= @studium.zahl %>)</h1>
|
||||
<p>
|
||||
<div class="pull-right">
|
||||
<%= link_to I18n.t("studien.ansicht.semester"), studium_path(@studium, :ansicht=>"semesteransicht"), :class=>"btn" unless params[:ansicht]=='semesteransicht' %>
|
||||
<%= link_to I18n.t("studien.ansicht.modulgruppe"), studium_path(@studium, :ansicht=>"modulgruppenansicht"), :class=>"btn" unless params[:ansicht]=='modulgruppenansicht' %>
|
||||
<%= link_to I18n.t("studien.ansicht.info"), studium_path(@studium, :ansicht=>"infoansicht"), :class=>"btn" unless params[:ansicht]=='infoansicht' %>
|
||||
</div>
|
||||
</p>
|
||||
<% if params[:ansicht]=='modulgruppenansicht' %>
|
||||
<%= render partial: 'modulgruppenansicht' %>
|
||||
<% else if params[:ansicht]=='infoansicht' %>
|
||||
<%= render partial: 'infoansicht' %>
|
||||
<% else if params[:ansicht]== 'qualifikationsprofil' %>
|
||||
<h2>Qualifikationsprofil</h2>
|
||||
<p>
|
||||
<%= raw(@studium.qualifikation) %>
|
||||
</p>
|
||||
<% else %>
|
||||
<%= @studium.desc_first_words %> <%= link_to I18n.t('studium.info'), studium_path(@studium, :ansicht=>params[:ansicht], :info=>true) %>
|
||||
<% end %>
|
||||
<%= render partial: 'semesteransicht' %>
|
||||
|
||||
|
||||
|
||||
|
||||
<% end %> <% end %> <% end %>
|
||||
|
||||
<% @studienphasen.each do |sp| %>
|
||||
<% sp[:modulgruppen].each do |row| %>
|
||||
<div class="row-fluid">
|
||||
<% row.each do |modulgruppe| %>
|
||||
<div class="span<%= sp[:width]%> min-width:13em;">
|
||||
<%= render modulgruppe %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
<%= render :partial=>'layouts/pretty_toolbar', :object=>@toolbar_modulgruppen %><br>
|
||||
<%= render 'layouts/pretty_toolbar' %>
|
||||
</div>
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
</div>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<%= f.action :submit, :as => :button, :label=>"Sdf"+raw(fa_icon("save"))%>
|
||||
|
||||
<%= f.action :cancel, :as => :link %>
|
||||
<% end %>
|
||||
<% end %><% end %>
|
||||
|
||||
2
app/views/themen/_nlink.html.erb
Normal file
2
app/views/themen/_nlink.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<h2><%= nlink.title %></h2>
|
||||
<p><%= raw(nlink.text_first_words) %></p>
|
||||
@@ -1,3 +1,6 @@
|
||||
<a name="thema_<%=small.id%>" href="#<%=small.id%>">
|
||||
<h2><%= small.title %></h2>
|
||||
</a>
|
||||
<%= raw(small.text) %>
|
||||
<br/>
|
||||
<%= raw("<b>FAQs:</b>") unless small.fragen.empty? %>
|
||||
@@ -14,4 +17,4 @@
|
||||
@small_elements = []
|
||||
@small_elements << {:icon=>:pencil, :hicon=>'icon-pencil', :text=>I18n.t('thema.edit'), :path=>small} if can? :edit, small
|
||||
@small_elements << {:hicon=>'icon-remove-circle',:text=>I18n.t('thema.remove'), :path=>small, :method=>:delete,:confirm=>I18n.t('thema.sure')} if can? :delete, small %>
|
||||
<%= render :partial=>'layouts/pretty_toolbar', :object=>@small_elements unless @small_elements.empty? %>
|
||||
<% render :partial=>'layouts/pretty_toolbar', :object=>@small_elements unless @small_elements.empty? %>
|
||||
|
||||
3
app/views/themen/_verw_liste.html.erb
Normal file
3
app/views/themen/_verw_liste.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
<% verw_liste.each do |thema| %>
|
||||
<li id="themen_<%= thema.id %>" class="sort" ><div class="contentbox handle" ><h2><%= thema.title %></h2> </div> <%= link_to edit_thema_path(thema),:remote=>true do %> Edit <% end %> <%= link_to fragen_thema_path(thema),:remote=>true do %> Fragen <% end %></li>
|
||||
<% end %>
|
||||
@@ -1,5 +1,6 @@
|
||||
<h1>New thema</h1>
|
||||
|
||||
<div id="themaview">
|
||||
<h1><%= I18n.t("thema.add") %></h1>
|
||||
<%= render 'form' %>
|
||||
|
||||
</div>
|
||||
<%= link_to 'Back', themen_path %>
|
||||
|
||||
@@ -1,24 +1,9 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
<%= link_to "Zurück", @thema.themengruppe %>
|
||||
<br>
|
||||
<%= render :partial=>"themen/small", :object=>@thema %>
|
||||
|
||||
<h1><%= @thema.title %></h1>
|
||||
<p>
|
||||
<%= raw(@thema.text) %>
|
||||
</p>
|
||||
|
||||
<!--
|
||||
<%= link_to 'Edit', edit_thema_path(@thema) %> |
|
||||
<%= link_to 'Back', themengruppe_path(@thema.themengruppe) %>
|
||||
-->
|
||||
<%= render :partial=>'layouts/pretty_toolbar' %>
|
||||
|
||||
<%= render :partial=>'themen/fragen' %>
|
||||
<!--
|
||||
<%= link_to 'Neue Frage', new_frage_path %> <br/>
|
||||
-->
|
||||
<br/>
|
||||
|
||||
<h2><%= I18n.t('attachment.title')%>:</h2>
|
||||
<div id="attachmentform">
|
||||
</div>
|
||||
<%= link_to new_thema_attachment_path(@thema) ,:remote=>true do %> new Attachment <% end %>
|
||||
<%= render :partial => "themen/select", :object => @thema, :locals=>{:editor => :false} %>
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
alert('t');
|
||||
|
||||
$("#themaview").html("<%= escape_javascript(raw("<h2>Bearbeiten</h2>")+render(:partial=>"themen/small", :object=>@thema) )%>");
|
||||
|
||||
$("#themen").html("<%= escape_javascript(render(:partial=>"themen/verw_liste", :object=>@themen) )%>");
|
||||
|
||||
24
app/views/themen/verwalten.html.erb
Normal file
24
app/views/themen/verwalten.html.erb
Normal file
@@ -0,0 +1,24 @@
|
||||
<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) %>
|
||||
-->
|
||||
<%= render :partial=>'layouts/pretty_toolbar' %>
|
||||
|
||||
<%= render :partial=>'themen/fragen' %>
|
||||
<!--
|
||||
<%= link_to 'Neue Frage', new_frage_path %> <br/>
|
||||
-->
|
||||
<br/>
|
||||
|
||||
<h2><%= I18n.t('attachment.title')%>:</h2>
|
||||
<div id="attachmentform">
|
||||
</div>
|
||||
<%= link_to new_thema_attachment_path(@thema) ,:remote=>true do %> new Attachment <% end %>
|
||||
<%= render :partial => "themen/select", :object => @thema, :locals=>{:editor => :false} %>
|
||||
@@ -8,6 +8,7 @@
|
||||
<% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<%= f.action :cancel,:label => I18n.t("common.back"), :as => :link %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
19
app/views/themengruppen/faqs.html.erb
Normal file
19
app/views/themengruppen/faqs.html.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
<% @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 %>
|
||||
|
||||
|
||||
|
||||
<ul>
|
||||
<% t.fragen.each do |f| %>
|
||||
<li><b> <%= f.title %></b><p> <%= f.text %></p></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
@@ -1,4 +1,5 @@
|
||||
<div class="content-wrap content-column">
|
||||
<p> <%= link_to "FAQS", faqs_themengruppen_path %></p>
|
||||
<ul class="unstyled linkbox-list">
|
||||
<li>
|
||||
<% @themengruppen.each do |themengruppe| %>
|
||||
|
||||
@@ -1,5 +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" %>
|
||||
<h1><%= @themengruppe.title %></h1>
|
||||
<p>
|
||||
<%= @themengruppe.text %>
|
||||
@@ -7,16 +8,27 @@
|
||||
<ul class="unstyled linkbox-list" >
|
||||
<% @themengruppe.themen.each do |thema| %>
|
||||
<li>
|
||||
<div class="contentbox">
|
||||
<a href="#<%=thema.id%>">
|
||||
<h2><%= thema.title %></h2>
|
||||
</a>
|
||||
<% unless thema.gremium.nil? %>
|
||||
<p>
|
||||
<%= link_to "Zu dem Gremium ..." , thema.gremium %>
|
||||
</p>
|
||||
<% end %>
|
||||
<div class="contentbox">
|
||||
<%= render :partial => 'themen/small', :object => thema %>
|
||||
tools:
|
||||
<%
|
||||
@small_elements2 = []
|
||||
@small_elements2 << {:icon=>:pencil, :hicon=>'icon-pencil', :text=>I18n.t('common.verwalten'), :path=>verwalten_thema_path(thema)} if can? :edit, thema
|
||||
|
||||
%>
|
||||
<%= render :partial=>'layouts/pretty_toolbar', :object=>@small_elements2 unless @small_elements2.empty? %>
|
||||
<ul class="unstyled">
|
||||
<% unless thema.gremium.nil? %>
|
||||
|
||||
<li>
|
||||
<%= link_to fa_icon("users 2x")+thema.gremium.name , thema.gremium,:class=>"linkbox" %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
<% thema.nlinks.each do |l| %>
|
||||
<li><%= render l.neuigkeit %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
<div class="span4">
|
||||
|
||||
<ul id="themen" class="sort" >
|
||||
<% @themen.each do |thema| %>
|
||||
<li id="themen_<%= thema.id %>" class="sort" ><div class="contentbox handle" ><h2><%= thema.title %></h2> </div> <%= link_to edit_thema_path(thema),:remote=>true do %> Edit <% end %> <%= link_to thema_fragen_path(thema),:remote=>true do %> Fragen <% end %></li>
|
||||
<% end %>
|
||||
<%= render partial:"themen/verw_liste", object: @themen %>
|
||||
</ul>
|
||||
<%= link_to new_themengruppe_thema_path(@themengruppe),:remote=>true do %> New Thema <% end %>
|
||||
</div>
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
<div class="content-wrap content-column" >
|
||||
<h1><%= @themengruppe.title %></h1>
|
||||
<p>
|
||||
<%= @themengruppe.text %>
|
||||
</p>
|
||||
<ul class="unstyled linkbox-list" >
|
||||
<% @themen.each do |thema| %>
|
||||
<li>
|
||||
<div class="contentbox">
|
||||
<a href="#<%=thema.id%>">
|
||||
<h2><%= thema.title %></h2>
|
||||
</a>
|
||||
<% unless thema.gremium.nil? %>
|
||||
<p>
|
||||
<%= link_to "Zu dem Gremium ..." , thema.gremium %>
|
||||
</p>
|
||||
<% end %>
|
||||
<%= render :partial => 'themen/small', :object => thema %>
|
||||
</div>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<%= render :partial=>'layouts/pretty_toolbar' unless @toolbar_elements.empty?%>
|
||||
</div>
|
||||
1
app/views/themes/blue1/info.txt
Normal file
1
app/views/themes/blue1/info.txt
Normal file
@@ -0,0 +1 @@
|
||||
Blue1 hat eine optisch schlankereKopfzeile und hat ein zentriertes Layout
|
||||
Reference in New Issue
Block a user