forked from bofh/fetsite
Toolbar und kopfzeileneinbindung
This commit is contained in:
11
app/views/layouts/_link_all.html.erb
Executable file
11
app/views/layouts/_link_all.html.erb
Executable file
@@ -0,0 +1,11 @@
|
||||
|
||||
<ul class="breadcrumb">
|
||||
<li> <%= link_to_unless_current '<i class="icon-list"></i>'.html_safe+ I18n.t("studien.allestudien"), studien_path,:raw=>true %>
|
||||
<span class="divider">/</span></li>
|
||||
|
||||
<li> <%= link_to_unless_current '<i class="icon-list"></i>'.html_safe+ I18n.t("modul.list"), moduls_path,:raw=>true %>
|
||||
<span class="divider">/</span></li>
|
||||
<li> <%= link_to_unless_current '<i class="icon-list"></i>'.html_safe+ I18n.t("lva.list"), lvas_path,:raw=>true %>
|
||||
<span class="divider">/</span></li>
|
||||
</ul>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<h1>Listing lvas</h1>
|
||||
<%= render 'layouts/link_all' %>
|
||||
<h1><%= I18n.t("lva.list")%></h1>
|
||||
<ul>
|
||||
<% @lvas.each do |l| %>
|
||||
<li><%= render :partial => 'lvas/lva_semester', :locals=> {:lva => l} %>
|
||||
<%end%>
|
||||
</ul>
|
||||
<%= link_to 'New Lva', new_lva_path %>
|
||||
<%= render 'layouts/pretty_toolbar' %>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
|
||||
<%= semantic_form_for @modul do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :modulgruppen,:as => :select, :collection => Hash[Modulgruppe.all.map{|m| [m.studium.name + " " + m.name,m.id]}] %>
|
||||
<% # f.input :modulgruppen,:as => :select, :collection => Hash[Modulgruppe.all.map{|m| [m.studium.name + " " + m.name,m.id]}] %>
|
||||
<%= f.input :modulgruppen %>
|
||||
<%= f.input :name ,:hint=>true%>
|
||||
<%= f.input :desc, :as=>:tinymce_text %>
|
||||
<%= f.input :depend %>
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
|
||||
<h1><%= I18n.t("modul.show.title") %></h1>
|
||||
<%= render 'layouts/link_all' %>
|
||||
<h1><%= I18n.t("modul.list") %></h1>
|
||||
|
||||
<%= render :partial=>'moduls/lang', :collection=>@moduls, :as=>:modul%>
|
||||
|
||||
<br />
|
||||
<% #if !@studium.nil? %>
|
||||
<%= link_to 'New Modul', new_modul_path() %>
|
||||
<% #end%>
|
||||
<br>
|
||||
<%= render 'layouts/pretty_toolbar'%>
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<%= render 'layouts/link_all' %>
|
||||
<h1><%= I18n.t("studien.list") %></h1>
|
||||
|
||||
|
||||
@@ -8,8 +9,6 @@
|
||||
<% end %>
|
||||
|
||||
|
||||
<br />
|
||||
<% link_to I18n.t("studien.new"), new_studium_path %>
|
||||
<% link_to I18n.t("modulgruppe.show"), modulgruppen_path %>
|
||||
<br>
|
||||
<%= render :partial=>'layouts/pretty_toolbar'%>
|
||||
<% #toolbar_html(@toolbar_elements) %>
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= render 'layouts/pretty_toolbar'%><br>
|
||||
<%= render 'layouts/pretty_toolbar', :pretty_toolbar=>@toolbar_modulgruppen %>
|
||||
<%= render 'layouts/pretty_toolbar' %><br>
|
||||
<%= render :partial=>'layouts/pretty_toolbar', :object=>@toolbar_modulgruppen %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user