From cf5e75e970edf47ed30cfb34f89f7d1f01ff9226 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 11 Mar 2013 23:43:51 -0500 Subject: [PATCH] notes on all models but universe --- app/models/character.rb | 2 +- app/models/equipment.rb | 1 + app/models/language.rb | 1 + app/models/location.rb | 1 + app/models/magic.rb | 1 + app/views/characters/_edit_form.html.erb | 5 +++++ app/views/characters/_form.html.erb | 5 +++++ app/views/characters/show.html.erb | 1 + app/views/equipment/_edit_form.html.erb | 5 +++++ app/views/equipment/_form.html.erb | 5 +++++ app/views/equipment/show.html.erb | 1 + app/views/languages/_edit_form.html.erb | 5 +++++ app/views/languages/_form.html.erb | 5 +++++ app/views/languages/show.html.erb | 1 + app/views/locations/_edit_form.html.erb | 5 +++++ app/views/locations/_form.html.erb | 5 +++++ app/views/locations/show.html.erb | 1 + app/views/magic/_edit_form.html.erb | 5 +++++ app/views/magic/_form.html.erb | 5 +++++ app/views/magic/show.html.erb | 4 ++++ 20 files changed, 63 insertions(+), 1 deletion(-) diff --git a/app/models/character.rb b/app/models/character.rb index b16d1d13..1691ef90 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -60,7 +60,7 @@ class Character field :archenemy, :type => String # More... - #additional notes + field :notes, :type => String #additional fields belongs_to :user diff --git a/app/models/equipment.rb b/app/models/equipment.rb index 2b21d205..d2fb86ad 100644 --- a/app/models/equipment.rb +++ b/app/models/equipment.rb @@ -20,6 +20,7 @@ class Equipment field :magic, :type => String # Magical Properties # More + field :notes, :type => String belongs_to :user end diff --git a/app/models/language.rb b/app/models/language.rb index 58387646..045a6375 100644 --- a/app/models/language.rb +++ b/app/models/language.rb @@ -16,6 +16,7 @@ class Language field :locations, :type => String # More + field :notes, :type => String belongs_to :user end diff --git a/app/models/location.rb b/app/models/location.rb index a28fb411..f0fe2a20 100644 --- a/app/models/location.rb +++ b/app/models/location.rb @@ -29,6 +29,7 @@ class Location field :notable_wars, :type => String # More + field :notes, :type => String belongs_to :user end diff --git a/app/models/magic.rb b/app/models/magic.rb index ad69d458..f9b4ec20 100644 --- a/app/models/magic.rb +++ b/app/models/magic.rb @@ -24,6 +24,7 @@ class Magic field :limitations, :type => String # More + field :notes, :type => String belongs_to :user end diff --git a/app/views/characters/_edit_form.html.erb b/app/views/characters/_edit_form.html.erb index c381f524..32176246 100644 --- a/app/views/characters/_edit_form.html.erb +++ b/app/views/characters/_edit_form.html.erb @@ -246,6 +246,11 @@
diff --git a/app/views/characters/_form.html.erb b/app/views/characters/_form.html.erb index 66e0daae..783773eb 100644 --- a/app/views/characters/_form.html.erb +++ b/app/views/characters/_form.html.erb @@ -246,6 +246,11 @@
diff --git a/app/views/characters/show.html.erb b/app/views/characters/show.html.erb index 31eed02d..beed9538 100644 --- a/app/views/characters/show.html.erb +++ b/app/views/characters/show.html.erb @@ -57,6 +57,7 @@
diff --git a/app/views/equipment/_edit_form.html.erb b/app/views/equipment/_edit_form.html.erb index 76988709..e261ffc5 100644 --- a/app/views/equipment/_edit_form.html.erb +++ b/app/views/equipment/_edit_form.html.erb @@ -77,6 +77,11 @@
diff --git a/app/views/equipment/_form.html.erb b/app/views/equipment/_form.html.erb index d3e19a59..98894363 100644 --- a/app/views/equipment/_form.html.erb +++ b/app/views/equipment/_form.html.erb @@ -77,6 +77,11 @@
diff --git a/app/views/equipment/show.html.erb b/app/views/equipment/show.html.erb index d8f17609..f2fcd3d1 100644 --- a/app/views/equipment/show.html.erb +++ b/app/views/equipment/show.html.erb @@ -25,6 +25,7 @@
diff --git a/app/views/languages/_edit_form.html.erb b/app/views/languages/_edit_form.html.erb index 71f8ca6c..77f70839 100644 --- a/app/views/languages/_edit_form.html.erb +++ b/app/views/languages/_edit_form.html.erb @@ -50,6 +50,11 @@
diff --git a/app/views/languages/_form.html.erb b/app/views/languages/_form.html.erb index 40c6010a..877dc84f 100644 --- a/app/views/languages/_form.html.erb +++ b/app/views/languages/_form.html.erb @@ -50,6 +50,11 @@
diff --git a/app/views/languages/show.html.erb b/app/views/languages/show.html.erb index 8db58440..41e367e8 100644 --- a/app/views/languages/show.html.erb +++ b/app/views/languages/show.html.erb @@ -21,6 +21,7 @@
diff --git a/app/views/locations/_edit_form.html.erb b/app/views/locations/_edit_form.html.erb index 3a53e2d9..39a25d2e 100644 --- a/app/views/locations/_edit_form.html.erb +++ b/app/views/locations/_edit_form.html.erb @@ -115,6 +115,11 @@
diff --git a/app/views/locations/_form.html.erb b/app/views/locations/_form.html.erb index d39aeb8b..c7164a09 100644 --- a/app/views/locations/_form.html.erb +++ b/app/views/locations/_form.html.erb @@ -115,6 +115,11 @@
diff --git a/app/views/locations/show.html.erb b/app/views/locations/show.html.erb index 9c5c5368..943ce2da 100644 --- a/app/views/locations/show.html.erb +++ b/app/views/locations/show.html.erb @@ -33,6 +33,7 @@
diff --git a/app/views/magic/_edit_form.html.erb b/app/views/magic/_edit_form.html.erb index 81df3b37..376256ee 100644 --- a/app/views/magic/_edit_form.html.erb +++ b/app/views/magic/_edit_form.html.erb @@ -90,6 +90,11 @@
diff --git a/app/views/magic/_form.html.erb b/app/views/magic/_form.html.erb index 8cf7f5b0..ec35e39a 100644 --- a/app/views/magic/_form.html.erb +++ b/app/views/magic/_form.html.erb @@ -90,6 +90,11 @@
diff --git a/app/views/magic/show.html.erb b/app/views/magic/show.html.erb index a70ac24c..0d223f84 100644 --- a/app/views/magic/show.html.erb +++ b/app/views/magic/show.html.erb @@ -29,6 +29,10 @@ <%= print_property("Limitations", @magic.limitations, "") %> + +
<%= link_to t('.back', :default => t("helpers.links.back")), magic_list_path, :class => 'btn' %>