Commit 1a4c9118aec5c25bf39cdc6db640569bf5c6d0e9
1 parent
9eb7fe6d
Exists in
spb-stable
and in
2 other branches
Fix UI for wiki error message
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
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 | ... | ... |