summaryrefslogtreecommitdiff
path: root/app/views/projects/wikis/_new.html.haml
blob: f0547e9c0575d7259e853b44949b440d58d84604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%div#modal-new-wiki.modal
  .modal-dialog
    .modal-content
      .modal-header
        %a.close{href: "#", "data-dismiss" => "modal"} ×
        %h3.page-title New Wiki Page
      .modal-body
        = 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)
        %p.hidden.text-danger{data: { error: "slug" }}
          The page slug is invalid. Please don't use characters other then: a-z 0-9 _ - and /
        %p.hint
          Please don't use spaces.
        .form-actions
          = link_to 'Create Page', '#', class: 'build-new-wiki btn btn-create'