BigW Consortium Gitlab

_new.html.haml 744 Bytes
Newer Older
1
%div#modal-new-wiki.modal
Dmitriy Zaporozhets committed
2 3 4 5 6 7 8 9
  .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
Vinnie Okada committed
10
        = 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)
11 12
        %p.hidden.text-danger{data: { error: "slug" }}
          The page slug is invalid. Please don't use characters other then: a-z 0-9 _ - and /
Dmitriy Zaporozhets committed
13
        %p.hint
14
          Please don't use spaces.
Dmitriy Zaporozhets committed
15 16
      .modal-footer
        = link_to 'Build', '#', class: 'build-new-wiki btn btn-create'