gitlab-org--gitlab-foss/app/views/projects/blob/_new_dir.html.haml

23 lines
1,010 B
Text
Raw Normal View History

#modal-create-new-dir.modal
.modal-dialog
.modal-content
.modal-header
%a.close{ href: "#", "data-dismiss" => "modal" } ×
2017-06-07 16:13:44 -04:00
%h3.page-title= _('Create New Directory')
.modal-body
= form_tag project_create_dir_path(@project, @id), method: :post, remote: false, class: 'form-horizontal js-create-dir-form js-quick-submit js-requires-input' do
.form-group
2017-06-07 16:13:44 -04:00
= label_tag :dir_name, _('Directory name'), class: 'control-label'
.col-sm-10
= text_field_tag :dir_name, params[:dir_name], required: true, class: 'form-control'
2017-06-07 16:13:44 -04:00
= render 'shared/new_commit_form', placeholder: _("Add new directory")
2015-12-02 08:34:20 -05:00
.form-actions
2017-06-07 16:13:44 -04:00
= submit_tag _("Create directory"), class: 'btn btn-create'
2015-12-02 08:34:20 -05:00
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
- unless can?(current_user, :push_code, @project)
.inline.prepend-left-10
= commit_in_fork_help