diff options
author | wendy0402 <wendykurniawan92@gmail.com> | 2017-07-23 15:19:10 +0700 |
---|---|---|
committer | wendy0402 <wendykurniawan92@gmail.com> | 2017-08-03 07:38:11 +0700 |
commit | 29be4e0f58622aea146aa8c362eb30c08b082839 (patch) | |
tree | 891c69a2f8795a9d40528a37203936436e9014b2 /app/views | |
parent | 43c015472b5f85f7f345c825687a562f4cb3a13d (diff) | |
download | gitlab-ce-29be4e0f58622aea146aa8c362eb30c08b082839.tar.gz |
Allow wiki pages to be renamed in the UI
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/wikis/_form.html.haml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/projects/wikis/_form.html.haml b/app/views/projects/wikis/_form.html.haml index adb8d5aaecb..e5a1fccf9ba 100644 --- a/app/views/projects/wikis/_form.html.haml +++ b/app/views/projects/wikis/_form.html.haml @@ -3,9 +3,12 @@ = form_for [@project.namespace.becomes(Namespace), @project, @page], method: @page.persisted? ? :put : :post, html: { class: 'form-horizontal wiki-form common-note-form prepend-top-default js-quick-submit' } do |f| = form_errors(@page) - = f.hidden_field :title, value: @page.title - if @page.persisted? = f.hidden_field :last_commit_sha, value: @page.last_commit_sha + + .form-group + .col-sm-12= f.label :title, class: 'control-label-full-width' + .col-sm-12= f.text_field :title, class: 'form-control', value: @page.title .form-group .col-sm-12= f.label :format, class: 'control-label-full-width' .col-sm-12 |