Prüfungsinformation und Lernaufwand zu Lva hinzugefügt
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
<div class="form-group">
|
||||
<div class="row-fluid">
|
||||
<%= f.input :desc %>
|
||||
<%= f.input :pruefungsinformation %>
|
||||
<%= f.input :lernaufwand %>
|
||||
</div></div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user