gitlabhq/app/views/wikis/_form.html.haml

17 lines
394 B
Plaintext
Raw Normal View History

2012-02-19 15:35:31 +01:00
= form_for @wiki do |f|
-if @wiki.errors.any?
#error_explanation
%h2= "#{pluralize(@wiki.errors.count, "error")} prohibited this wiki from being saved:"
%ul
- @wiki.errors.full_messages.each do |msg|
%li= msg
.field
= f.label :title
= f.text_field :title
.field
= f.label :content
= f.text_area :content
.actions
= f.submit 'Save'