gitlab-org--gitlab-foss/app/views/wikis/_form.html.haml

18 lines
433 B
Plaintext
Raw Normal View History

2012-02-19 17:05:35 +00:00
= form_for [@project, @wiki] do |f|
2012-02-19 14:35:31 +00:00
-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
2012-02-19 17:05:35 +00:00
= f.hidden_field :slug
2012-02-19 14:35:31 +00:00
.field
= f.label :content
= f.text_area :content
.actions
= f.submit 'Save'