+
+ <%= f.label :name, :class => 'control-label' %>
+
+
+ <%= f.text_field :name, :class => 'form-control' %>
+
+
+
+
+
+
<%= f.label 'Role in story', :class => 'control-label' %>
@@ -32,8 +40,8 @@
<%= f.label :universe, :class => 'control-label' %>
-
- <%= f.text_field :universe, :class => 'text_field', :value => @character.universe ? @character.universe.name : "" %>
+
+ <%= f.text_field :universe, :class => 'form-control', :value => @character.universe ? @character.universe.name : "" %>
<%= universe_picker %>
@@ -103,12 +111,12 @@
-
- <%= f.label 'Best Friend', :class => 'control-label' %>
-
- <%= f.text_field :bestfriend, :class => 'text_field' %>
+
+ <%= f.label 'Best Friend', class: 'control-label' %>
+
+ <%= f.text_field :bestfriend, class: 'form-control' %>
<%= character_picker %>
-
+
<%= f.label 'Religion', :class => 'control-label' %>
@@ -271,10 +279,3 @@
-
-
- <%= f.submit nil, :class => 'btn btn-primary' %>
- <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
- character_list_path, :class => 'btn' %>
-
-<% end %>
diff --git a/app/views/characters/_tabs.html.erb b/app/views/characters/_tabs.html.erb
index e2e88e5a..5792fb8a 100644
--- a/app/views/characters/_tabs.html.erb
+++ b/app/views/characters/_tabs.html.erb
@@ -1,14 +1,14 @@
-
-
-
-
-
- - <%= link_to "General", "#", :id => "show_general" %>
- - <%= link_to "Appearance", "#", :id => "show_appearance" %>
- - <%= link_to "Social", "#", :id => "show_social" %>
- - <%= link_to "Behavior", "#", :id => "show_behavior" %>
- - <%= link_to "History", "#", :id => "show_history" %>
- - <%= link_to "Favorites", "#", :id => "show_favorites" %>
- - <%= link_to "Relationships", "#", :id => "show_relationships" %>
- - <%= link_to "Notes", "#", :id => "show_notes" %>
+
+ - <%= link_to "General", "#general", :id => "show_general" %>
+ - <%= link_to "Appearance", "#appearance", :id => "show_appearance" %>
+ - <%= link_to "Social", "#social", :id => "show_social" %>
+ - <%= link_to "Behavior", "#behavior", :id => "show_behavior" %>
+ - <%= link_to "History", "#history", :id => "show_history" %>
+ - <%= link_to "Favorites", "#favorites", :id => "show_favorites" %>
+ - <%= link_to "Relationships", "#relationships", :id => "show_relationships" %>
+ - <%= link_to "Notes", "#notes", :id => "show_notes" %>
+
+ -
+ Expand All
+
diff --git a/app/views/characters/edit.html.erb b/app/views/characters/edit.html.erb
index 050b57ac..3027fa98 100644
--- a/app/views/characters/edit.html.erb
+++ b/app/views/characters/edit.html.erb
@@ -1,12 +1,37 @@
<%- model_class = @character.class -%>
-
+
+
Facets
<%= render :partial => 'tabs' %>
+
+
+
+
Danger-zone
- <%= render :partial => 'edit_form' %>
+ <%= link_to 'Delete character forever', character_path,
+ :class => 'btn btn-danger',
+ :method => :delete,
+ :confirm => 'Are you sure? This action cannot be undone!' %>
+
+
+
+
Editing <%= @character.name %>
+ <%= form_for @character,
+ :url => character_edit_process_path,
+ :html => { :class => 'form-horizontal' } do |form| %>
+
+ <%= render :partial => 'form', :locals => { :f => form } %>
+
+
+ <% end %>
+
+