forked from bofh/fetsite
Semester vorläufig
This commit is contained in:
@@ -16,8 +16,10 @@ class StudienController < ApplicationController
|
|||||||
@sem = 'true'
|
@sem = 'true'
|
||||||
end
|
end
|
||||||
if @sem == 'true'
|
if @sem == 'true'
|
||||||
|
@link = "Modulansicht"
|
||||||
@change = 'false'
|
@change = 'false'
|
||||||
else
|
else
|
||||||
|
@link = "Semesteransicht"
|
||||||
@change = 'true'
|
@change = 'true'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -2,28 +2,24 @@
|
|||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<p id="notice"><%= notice %></p>
|
<p id="notice"><%= notice %></p>
|
||||||
|
|
||||||
<%= link_to '<i class="icon-list"></i>'.html_safe+ I18n.t("studien.allestudien"), studien_path,:raw=>true %>|<%= link_to "Ansicht wechseln", studium_path(@studium, :sem => @change)%>
|
<%= link_to '<i class="icon-list"></i>'.html_safe+ I18n.t("studien.allestudien"), studien_path,:raw=>true %>|<%= link_to "Zu "+@link+ " wechseln", studium_path(@studium, :sem => @change)%>
|
||||||
|
|
||||||
|
<% if @sem=='false'%>
|
||||||
|
<%= render :partial => "studien/studien", @collection => @studium, :as=>:studium%>
|
||||||
|
<% else %>
|
||||||
|
<%= render :partial =>"studien/semesteransicht", @collection => @studium, :as=>:studium%>
|
||||||
|
<% end %>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
<%= @sem %>
|
<div class="row-fluid">
|
||||||
<% if @sem=='false'%>
|
<span class="span12">
|
||||||
<% @change = 'true' %>
|
<%= link_to '<i class="icon-plus-sign"></i>'.html_safe+I18n.t("studien.newmodulgroup"), new_studium_modulgruppe_path(@studium),:class=>"btn" %> |
|
||||||
<%= render :partial => "studien/studien", @collection => @studium, :as=>:studium%>
|
<%= link_to '<i class="icon-pencil"></i>'.html_safe+I18n.t("common.edit"), edit_studium_path(@studium) ,:class=>"btn"%>
|
||||||
<% else %>
|
<%= link_to 'Destroy', @studium, method: :delete, data: { confirm: 'Are you sure?' } %>
|
||||||
<%= render :partial =>"studien/semesteransicht", @collection => @studium, :as=>:studium%>
|
</span>
|
||||||
<% @change = 'false' %>
|
</div>
|
||||||
<% end %>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
|
||||||
<span class="span12">
|
|
||||||
<%= link_to '<i class="icon-plus-sign"></i>'.html_safe+I18n.t("studien.newmodulgroup"), new_studium_modulgruppe_path(@studium),:class=>"btn" %> |
|
|
||||||
<%= link_to '<i class="icon-pencil"></i>'.html_safe+I18n.t("common.edit"), edit_studium_path(@studium) ,:class=>"btn"%>
|
|
||||||
<%= link_to 'Destroy', @studium, method: :delete, data: { confirm: 'Are you sure?' } %>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
<%= toolbar_html(@toolbar_elements) %>
|
||||||
|
|
||||||
</div>
|
|
||||||
<%= toolbar_html(@toolbar_elements) %>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user