gitlab-org--gitlab-foss/app/views/projects/wikis/_new.html.haml

22 lines
936 B
Text
Raw Normal View History

2016-06-15 10:31:41 -04:00
- @no_container = true
2016-06-30 09:01:26 -04:00
%div{ class: container_class }
2016-12-23 04:37:12 -05:00
#modal-new-wiki.modal
2016-06-15 10:31:41 -04:00
.modal-dialog
.modal-content
.modal-header
%a.close{ href: "#", "data-dismiss" => "modal" } ×
2016-06-15 10:31:41 -04:00
%h3.page-title New Wiki Page
.modal-body
%form.new-wiki-page
.form-group
= label_tag :new_wiki_path do
%span Page slug
= text_field_tag :new_wiki_path, nil, placeholder: 'how-to-setup', class: 'form-control', required: true, :'data-wikis-path' => namespace_project_wikis_path(@project.namespace, @project), autofocus: true
%span.new-wiki-page-slug-tip
2017-02-12 23:23:54 -05:00
= icon('lightbulb-o')
Tip: You can specify the full path for the new file.
We will automatically create any missing directories.
2016-06-15 10:31:41 -04:00
.form-actions
= button_tag 'Create page', class: 'build-new-wiki btn btn-create'