Merge branch 'master' of https://github.com/andreassteph/fetsite into calendar

Conflicts:
	app/assets/stylesheets/formtastic-changes.css.scss
	app/controllers/beispiele_controller.rb
	app/views/lvas/show.html.erb
	app/views/studien/_form.html.erb
	config/locales/de.yml
	config/routes.rb
	db/schema.rb
This commit is contained in:
Thomas Blazek
2013-08-12 13:44:47 +02:00
11 changed files with 42 additions and 44 deletions

View File

@@ -10,7 +10,7 @@
*
*= require_self
*= require_tree .
*= require 'bootstrap'
* require 'bootstrap'
*/
$linkColor: #03006E;
@import 'bootstrap';

View File

@@ -8,7 +8,6 @@ form.formtastic textarea {
width:90%;
height:20em;
}
form.formtastic .input label.control-label {
font-weight:bold;
font-size:125%;

View File

@@ -45,10 +45,6 @@ class BeispieleController < ApplicationController
lvaid=params[:lva_id]
params.delete(:lva_id)
@beispiel = Beispiel.new(params[:beispiel])
<<<<<<< HEAD
=======
>>>>>>> a5a02e065a319d162c5a280605c2c0d3c15643ca
respond_to do |format|
if @beispiel.save
format.html { redirect_to @beispiel, notice: 'Beispiel was successfully created.' }

View File

@@ -11,6 +11,9 @@ class Calentry < ActiveRecord::Base
def start_time
start
end
def start1
start.to_date
end
def name
summary
end

View File

@@ -10,7 +10,7 @@
<ul class="list-group">
<% @calendar.calentries.each do |entry| %>
<li class="list-group-item">
<%= link_to entry.summary+ " - " + I18n.l(entry.start), entry %>
<%= link_to entry.summary+ " - " + I18n.l(entry.start1), entry %>
</li>
<% end %>
</ul>

View File

@@ -1,3 +1,13 @@
<h1><%= t 'home.willkommen' %></h1>
<p><%= t 'home.hallobeiderfet' %></p>
<div class="alert alert-info">
<h2>Alpha Test</h2>
<p>Die Webseite befindet sich derzeit in einem Entsicklungsstadium,
volle Funktionsfähigkeit ist noch nicht erreicht. Bitte Featurerequests und
Fehlermeldungen auf GitHub melden.
</p>
<p>
<%= link_to "Issues", "http://www.github.com/fetsite/fetsite/issues" %>
</p>
</div>
<%= link_to "Entwicklungsstatus" , home_dev_path %>

View File

@@ -18,8 +18,14 @@
</div>
<div class="row-fluid">
<h2>Beispiele</h2>
<p><h4>Beschreibung</h4>
<%= @lva.desc %>
<% @lva.beispiele.each do |b|%>
<%= link_to "Beispiel neu" , new_beispiel_path(:lva_id=>@lva.id) %>
</p>
<h4>Beispiele</h4>
<ul>
<% @lva.beispiele.each do |b|%>
<%= render b%>
<% end %>

View File

@@ -1,14 +1,9 @@
<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" %>
@@ -23,19 +18,10 @@
<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 %>
<% end %>
</div>