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

22 lines
1,016 B
Text
Raw Normal View History

#modal-create-new-dir.modal
2018-01-09 04:08:28 -05:00
.modal-dialog.modal-lg
.modal-content
.modal-header
2017-06-07 16:13:44 -04:00
%h3.page-title= _('Create New Directory')
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
%span{ "aria-hidden": true } ×
.modal-body
= form_tag project_create_dir_path(@project, @id), method: :post, remote: false, class: 'js-create-dir-form js-quick-submit js-requires-input' do
.form-group.row
= label_tag :dir_name, _('Directory name'), class: 'col-form-label col-sm-2'
.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
= submit_tag _("Create directory"), class: 'btn btn-success'
2015-12-02 08:34:20 -05:00
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
= render 'shared/projects/edit_information'