Fix UI for wiki error message

Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
上级 9eb7fe6d
= form_for [@project, @page], method: @page.persisted? ? :put : :post, html: { class: 'form-horizontal' } do |f|
-if @page.errors.any?
#error_explanation
%h2= "#{pluralize(@page.errors.count, "error")} prohibited this wiki from being saved:"
%ul
.alert.alert-danger
- @page.errors.full_messages.each do |msg|
%li= msg
%p= msg
= f.hidden_field :title, value: @page.title
.form-group
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册