diff --git a/app/models/character.rb b/app/models/character.rb index b30dfc97..0f93c531 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -48,30 +48,30 @@ class Character < ActiveRecord::Base def self.attribute_categories { - general: { + overview: { icon: 'info', attributes: %w(name role gender age universe_id) }, - appearance: { + looks: { icon: 'face', attributes: %w(weight height haircolor hairstyle facialhair eyecolor race skintone bodytype identmarks) }, social: { icon: 'groups', - attributes: %w(best_friends religion politics prejudices occupation) + attributes: %w(best_friends archenemies religion politics prejudices occupation) }, # TODO: remove schema for mannerisms history: { icon: 'info', attributes: %w(birthday birthplaces education background) }, - favorites: { + faves: { icon: 'star', attributes: %w(fave_color fave_food fave_possession fave_weapon fave_animal) }, - relations: { + family: { icon: 'face', - attributes: %w(mothers fathers spouses siblings archenemies children) + attributes: %w(mothers fathers spouses siblings children) }, notes: { icon: 'edit', diff --git a/app/models/item.rb b/app/models/item.rb index f194b02a..d8749b4f 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -32,20 +32,20 @@ class Item < ActiveRecord::Base def self.attribute_categories { - general_information: { + overview: { icon: 'info', attributes: %w(name item_type description universe_id) }, - appearance: { - icon: 'face', + looks: { + icon: 'redeem', attributes: %w(weight) }, history: { - icon: 'face', + icon: 'book', attributes: %w(original_owners current_owners makers materials year_made) }, abilities: { - icon: 'face', + icon: 'flash_on', attributes: %w(magic) }, notes: { diff --git a/app/models/location.rb b/app/models/location.rb index d56f0749..82914f53 100644 --- a/app/models/location.rb +++ b/app/models/location.rb @@ -38,7 +38,7 @@ class Location < ActiveRecord::Base def self.attribute_categories { - general_information: { + overview: { icon: 'info', attributes: %w(name type_of description universe_id) }, @@ -48,15 +48,15 @@ class Location < ActiveRecord::Base attributes: %w(leaders population language currency motto) }, cities: { - icon: 'face', + icon: 'business', attributes: %w(capital_cities largest_cities notable_cities) }, geography: { - icon: 'edit', + icon: 'map', attributes: %w(area crops located_at) }, history: { - icon: 'edit', + icon: 'book', attributes: %w(established_year notable_wars) }, notes: { diff --git a/app/models/universe.rb b/app/models/universe.rb index 009c6305..8c7d800e 100644 --- a/app/models/universe.rb +++ b/app/models/universe.rb @@ -35,21 +35,21 @@ class Universe < ActiveRecord::Base def self.attribute_categories { - general_information: { + overview: { icon: 'info', attributes: %w(name description) }, history: { - icon: 'face', + icon: 'book', attributes: %w(history) }, - settings: { - icon: 'face', - attributes: %w(privacy) - }, notes: { icon: 'edit', attributes: %w(notes private_notes) + }, + settings: { + icon: 'build', + attributes: %w(privacy) } } end diff --git a/app/views/content/_form.html.erb b/app/views/content/_form.html.erb index 48d7cb1b..fa768fbd 100644 --- a/app/views/content/_form.html.erb +++ b/app/views/content/_form.html.erb @@ -6,7 +6,7 @@
- <%= content.class.icon %> + <%= content.class.icon %> <%= render 'content/form/actions_dropdown', content: content %> @@ -14,32 +14,65 @@
<%# Tabs %> -