Prüfungsinformation und Lernaufwand zu Lva hinzugefügt

This commit is contained in:
Thomas Blazek
2013-08-11 21:25:18 +02:00
parent 0736320be6
commit dfd99bec5f
4 changed files with 16 additions and 5 deletions

View File

@@ -17,7 +17,7 @@
class Lva < ActiveRecord::Base
has_paper_trail # Versionsverfolgung
attr_accessible :desc, :ects, :lvanr, :name, :stunden, :modul_ids, :semester_ids
attr_accessible :desc, :ects, :lvanr, :name, :stunden, :modul_ids, :semester_ids, :pruefungsinformation, :lernaufwand
has_and_belongs_to_many :modul # Gehört zu einem Modul
has_and_belongs_to_many :semester
#Gehört zu einem Semester( derzeit nicht implementiert)

View File

@@ -23,6 +23,8 @@
<div class="form-group">
<div class="row-fluid">
<%= f.input :desc %>
<%= f.input :pruefungsinformation %>
<%= f.input :lernaufwand %>
</div></div>
</div>

View File

@@ -5,7 +5,14 @@
<div class="row-fluid">
<div class="span8">
<h1><%= @lva.name %></h1>
<h2>Prüfungsinformation</h2>
<div class="lva-beschreibung">
<%= @lva.pruefungsinformation %>
</div>
<h2>Lernaufwand</h2>
<div class="lva-beschreibung">
<%= @lva.lernaufwand %>
</div>
<h2>Beschreibung</h2>
<div class="lva-beschreibung">
<%= @lva.desc %>

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20130810214456) do
ActiveRecord::Schema.define(:version => 20130811191150) do
create_table "attachments", :force => true do |t|
t.string "name"
@@ -90,10 +90,12 @@ ActiveRecord::Schema.define(:version => 20130810214456) do
t.decimal "ects"
t.string "lvanr"
t.decimal "stunden"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "modul_id"
t.integer "semester_id"
t.text "pruefungsinformation"
t.text "lernaufwand"
end
create_table "lvas_moduls", :id => false, :force => true do |t|