Commit d52a3281dccefa5fcb774b9f0314abba7edfc820
Exists in
spb-stable
and in
2 other branches
Merge branch 'small-ui-improvements' into 'master'
Small ui improvements * fix ugly errors block when admin save invalid user * fix ugly errors when you tries to save invalid wiki page
Showing
2 changed files
with
4 additions
and
5 deletions
Show diff stats
app/views/admin/users/_form.html.haml
... | ... | @@ -2,9 +2,9 @@ |
2 | 2 | = form_for [:admin, @user], html: { class: 'form-horizontal' } do |f| |
3 | 3 | -if @user.errors.any? |
4 | 4 | #error_explanation |
5 | - %ul.unstyled.alert.alert-danger | |
5 | + .alert.alert-danger | |
6 | 6 | - @user.errors.full_messages.each do |msg| |
7 | - %li= msg | |
7 | + %p= msg | |
8 | 8 | |
9 | 9 | %fieldset |
10 | 10 | %legend Account | ... | ... |
app/views/projects/wikis/_form.html.haml
1 | 1 | = form_for [@project, @page], method: @page.persisted? ? :put : :post, html: { class: 'form-horizontal' } do |f| |
2 | 2 | -if @page.errors.any? |
3 | 3 | #error_explanation |
4 | - %h2= "#{pluralize(@page.errors.count, "error")} prohibited this wiki from being saved:" | |
5 | - %ul | |
4 | + .alert.alert-danger | |
6 | 5 | - @page.errors.full_messages.each do |msg| |
7 | - %li= msg | |
6 | + %p= msg | |
8 | 7 | |
9 | 8 | = f.hidden_field :title, value: @page.title |
10 | 9 | .form-group | ... | ... |