Skip to content
Snippets Groups Projects
Verified Commit 1a4c9118 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix UI for wiki error message

parent 9eb7fe6d
No related branches found
No related tags found
1 merge request!6949gitlab.com issue #229 - no_avatar.png path in coffee
= 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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment