diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index 3962fa5..84d8e4f 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -1,5 +1,3 @@ //= require_tree . //= require_self //= require 'custom' -@import 'bootstrap-sprockets'; -@import 'bootstrap'; diff --git a/app/assets/stylesheets/custom.css.scss b/app/assets/stylesheets/custom.css.scss index e2b26c5..af45d7d 100644 --- a/app/assets/stylesheets/custom.css.scss +++ b/app/assets/stylesheets/custom.css.scss @@ -1,3 +1,19 @@ +@import 'bootstrap-sprockets'; +@import 'bootstrap'; + body { padding-top: 70px; } + +#form-errors { + color: #f00; + ul { + list-style: none; + margin: 0 0 18px 0; + } +} + +.field_with_errors { + @extend .form-group; + @extend .has-error; +} diff --git a/app/views/application/_form_messages.html.erb b/app/views/application/_form_messages.html.erb new file mode 100644 index 0000000..8106272 --- /dev/null +++ b/app/views/application/_form_messages.html.erb @@ -0,0 +1,12 @@ +<% if object.errors.any? %> +
<%= notice %>
-<%= link_to 'Edit', edit_friendship_path(@friendship) %> | <%= link_to 'Back', friendships_path %>