forked from bofh/fetsite
Merge branch 'kalender' of https://github.com/andreassteph/fetsite into calendar
Conflicts: app/assets/stylesheets/formtastic-changes.css.scss app/controllers/beispiele_controller.rb app/views/studien/_form.html.erb config/locales/de.yml config/routes.rb
This commit is contained in:
11
app/views/calendars/_form.html.erb
Normal file
11
app/views/calendars/_form.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<%= semantic_form_for @calendar do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :public %>
|
||||
<%= f.input :picture, :as => :file %>
|
||||
<% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
6
app/views/calendars/edit.html.erb
Normal file
6
app/views/calendars/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing calendar</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @calendar %> |
|
||||
<%= link_to 'Back', calendars_path %>
|
||||
14
app/views/calendars/index.html.erb
Normal file
14
app/views/calendars/index.html.erb
Normal file
@@ -0,0 +1,14 @@
|
||||
<h1>Listing calendars</h1>
|
||||
|
||||
<% @calendars.each do |calendar| %>
|
||||
<div class="media">
|
||||
<a class="pull-left" href="#">
|
||||
<img class="media-object img-circle" src="<%= calendar.picture.thumb.url %>"/>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<h4><%= link_to calendar.name, calendar %></h4>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'New Calendar', new_calendar_path %>
|
||||
5
app/views/calendars/new.html.erb
Normal file
5
app/views/calendars/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New calendar</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', calendars_path %>
|
||||
30
app/views/calendars/show.html.erb
Normal file
30
app/views/calendars/show.html.erb
Normal file
@@ -0,0 +1,30 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>
|
||||
<%= '<i class="icon-globe"></i>'.html_safe unless !@calendar.public%>
|
||||
<%= @calendar.name %>
|
||||
</h1>
|
||||
<div class="row-fluid">
|
||||
<ul class="list-group">
|
||||
<% @calendar.calentries.each do |entry| %>
|
||||
<li class="list-group-item">
|
||||
<%= link_to entry.summary+ " - " + I18n.l(entry.start), entry %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<%= calendar @calendar.calentries do |entry| %>
|
||||
<div><%= link_to entry.name, entry %></div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="btn-group">
|
||||
<%= link_to 'New Entry', new_calentry_path, {:class=>"btn"} %>
|
||||
<%= link_to 'Edit', edit_calendar_path(@calendar), {:class=>"btn"} %>
|
||||
<%= link_to 'Back', calendars_path, {:class=>"btn"} %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
3
app/views/calendars/show.ics.erb
Normal file
3
app/views/calendars/show.ics.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
<% @calendar.calentries.each do |entry| %>
|
||||
<%= render entry %>
|
||||
<% end %>
|
||||
5
app/views/calentries/_calentry.ics.erb
Normal file
5
app/views/calentries/_calentry.ics.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<%= calentry.start %>
|
||||
<%= calentry.ende %>
|
||||
<%= calentry.summary %>
|
||||
<%= calentry.typ %>
|
||||
|
||||
34
app/views/calentries/_form.html.erb
Normal file
34
app/views/calentries/_form.html.erb
Normal file
@@ -0,0 +1,34 @@
|
||||
<div class="container-fluid">
|
||||
<%= semantic_form_for @calentry do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<%= f.input :start , :as => :date_string %>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<%= f.input :ende , :as => :date_string %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<%= f.input :summary %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<%= f.input :calendars, :as=> :radio %>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<%= f.input :typ %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
6
app/views/calentries/edit.html.erb
Normal file
6
app/views/calentries/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing calentry</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @calentry %> |
|
||||
<%= link_to 'Back', calentries_path %>
|
||||
29
app/views/calentries/index.html.erb
Normal file
29
app/views/calentries/index.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<h1>Listing calentries</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Start</th>
|
||||
<th>Ende</th>
|
||||
<th>Summary</th>
|
||||
<th>Typ</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @calentries.each do |calentry| %>
|
||||
<tr>
|
||||
<td><%= calentry.start %></td>
|
||||
<td><%= calentry.ende %></td>
|
||||
<td><%= calentry.summary %></td>
|
||||
<td><%= calentry.typ %></td>
|
||||
<td><%= link_to 'Show', calentry %></td>
|
||||
<td><%= link_to 'Edit', edit_calentry_path(calentry) %></td>
|
||||
<td><%= link_to 'Destroy', calentry, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Calentry', new_calentry_path %>
|
||||
5
app/views/calentries/new.html.erb
Normal file
5
app/views/calentries/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New calentry</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', calentries_path %>
|
||||
25
app/views/calentries/show.html.erb
Normal file
25
app/views/calentries/show.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<b>
|
||||
<%= @calentry.summary %>
|
||||
</b>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span9">
|
||||
<%= I18n.l @calentry.start %>
|
||||
<%= " bis " unless @calentry.ende.nil? %>
|
||||
<%= I18n.l @calentry.ende %>
|
||||
</div>
|
||||
<div class="span3">
|
||||
<%= @calentry.typ %>
|
||||
</div></div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<%= link_to 'Edit', edit_calentry_path(@calentry) %> |
|
||||
<%= link_to 'Back', calentries_path %>
|
||||
</div></div></div>
|
||||
25
app/views/calentries/show.ics.erb
Normal file
25
app/views/calentries/show.ics.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<b>Start:</b>
|
||||
<%= @calentry.start %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Ende:</b>
|
||||
<%= @calentry.ende %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Summary:</b>
|
||||
<%= @calentry.summary %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Typ:</b>
|
||||
<%= @calentry.typ %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_calentry_path(@calentry) %> |
|
||||
<%= link_to 'Back', calentries_path %>
|
||||
@@ -4,8 +4,8 @@
|
||||
</li>
|
||||
<li><%= link_to I18n.t(:news,:scope=>'home' ),rubriken_path %></li>
|
||||
<li><%= link_to I18n.t(:info,:scope=>'home' ) %></li>
|
||||
<li><%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %>
|
||||
</li>
|
||||
<li><%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %></li>
|
||||
<li><%= link_to "Kalender", calendars_path %></li>
|
||||
<li><%= link_to "wiki intern", page_path(1) %>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
<p><h4>Beschreibung</h4>
|
||||
<%= @lva.desc %>
|
||||
|
||||
<%= link_to "Beispiel neu" , new_beispiel_path(:lva_id=>@lva.id) %>
|
||||
</p>
|
||||
<div class="row-fluid">
|
||||
<h4>Beispiele</h4>
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
<div class="container-fluid">
|
||||
<%= tinymce_assets %>
|
||||
<%= semantic_form_for @studium do |f| %>
|
||||
<<<<<<< HEAD
|
||||
|
||||
<%= f.inputs do %>
|
||||
=======
|
||||
<div class="span9">
|
||||
<%= f.inputs do %>
|
||||
|
||||
>>>>>>> a5a02e065a319d162c5a280605c2c0d3c15643ca
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<%= f.input :name,:append=>"NAME" %>
|
||||
@@ -17,12 +23,19 @@
|
||||
<div class="row-fluid">
|
||||
<%= f.input :desc, :as=>:tinymce_text %>
|
||||
</div>
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
>>>>>>> a5a02e065a319d162c5a280605c2c0d3c15643ca
|
||||
<% end %>
|
||||
<%= tinymce %>
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :input %>
|
||||
<% end %>
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
</div>
|
||||
>>>>>>> a5a02e065a319d162c5a280605c2c0d3c15643ca
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user