2015-09-17 01:45:22 -04:00
|
|
|
#modal-create-new-dir.modal
|
2018-01-09 04:08:28 -05:00
|
|
|
.modal-dialog.modal-lg
|
2015-09-17 01:45:22 -04:00
|
|
|
.modal-content
|
|
|
|
.modal-header
|
2017-06-07 16:13:44 -04:00
|
|
|
%h3.page-title= _('Create New Directory')
|
2018-06-01 10:01:37 -04:00
|
|
|
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
|
|
|
|
%span{ "aria-hidden": true } ×
|
2015-09-17 01:45:22 -04:00
|
|
|
.modal-body
|
2018-04-12 16:11:22 -04:00
|
|
|
= 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
|
2018-04-12 19:16:56 -04:00
|
|
|
= label_tag :dir_name, _('Directory name'), class: 'col-form-label col-sm-2'
|
2015-09-17 01:45:22 -04:00
|
|
|
.col-sm-10
|
2015-12-02 08:36:44 -05:00
|
|
|
= text_field_tag :dir_name, params[:dir_name], required: true, class: 'form-control'
|
2015-11-17 12:53:56 -05:00
|
|
|
|
2017-06-07 16:13:44 -04:00
|
|
|
= render 'shared/new_commit_form', placeholder: _("Add new directory")
|
2015-11-17 12:53:56 -05:00
|
|
|
|
2015-12-02 08:34:20 -05:00
|
|
|
.form-actions
|
2018-09-18 05:58:22 -04:00
|
|
|
= 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"
|
2015-09-17 01:45:22 -04:00
|
|
|
|
2018-02-28 03:06:18 -05:00
|
|
|
= render 'shared/projects/edit_information'
|