diff --git a/app/assets/stylesheets/forms.css.scss b/app/assets/stylesheets/forms.css.scss new file mode 100644 index 00000000..6c6b662c --- /dev/null +++ b/app/assets/stylesheets/forms.css.scss @@ -0,0 +1,16 @@ +form { + .text_field { + padding: 0 8px; + border-top: 1px solid #c0c0c0; + -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); + -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); + min-height: 29px; + background-color: #ffffff; + border: 1px solid #d9d9d9; + -webkit-transition: border linear .2s, box-shadow linear .2s; + -moz-transition: border linear .2s, box-shadow linear .2s; + -o-transition: border linear .2s, box-shadow linear .2s; + transition: border linear .2s, box-shadow linear .2s; + } +} diff --git a/app/views/characters/_edit_form.html.erb b/app/views/characters/_edit_form.html.erb index 375166b1..fc5b72f6 100644 --- a/app/views/characters/_edit_form.html.erb +++ b/app/views/characters/_edit_form.html.erb @@ -1,4 +1,3 @@ -<%= form_for @character, :url => character_edit_process_path, :html => { :class => 'form-horizontal' } do |f| %> - - -
- <%= f.submit nil, :class => 'btn btn-primary' %> - <%= link_to t('.cancel', :default => t("helpers.links.cancel")), - character_list_path, :class => 'btn' %> - <%= link_to 'Delete character', character_path, - :class => 'btn pull-right btn-danger', - :method => :delete, - :confirm => 'Are you sure? This action cannot be undone!' %> -
-<% end %> diff --git a/app/views/characters/_form.html.erb b/app/views/characters/_form.html.erb index bdb6b4b0..b0f847cb 100644 --- a/app/views/characters/_form.html.erb +++ b/app/views/characters/_form.html.erb @@ -1,14 +1,22 @@ -<%= form_for @character, :url => character_create_process_path, :html => { :class => 'form-horizontal' } do |f| %>