2015-10-24 18:46:33 +05:30
|
|
|
|
#modal-create-new-dir.modal
|
2018-03-17 18:26:18 +05:30
|
|
|
|
.modal-dialog.modal-lg
|
2015-10-24 18:46:33 +05:30
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
2017-08-17 22:00:37 +05:30
|
|
|
|
%a.close{ href: "#", "data-dismiss" => "modal" } ×
|
2017-09-10 17:25:29 +05:30
|
|
|
|
%h3.page-title= _('Create New Directory')
|
2015-10-24 18:46:33 +05:30
|
|
|
|
.modal-body
|
2017-09-10 17:25:29 +05:30
|
|
|
|
= 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
|
2015-10-24 18:46:33 +05:30
|
|
|
|
.form-group
|
2017-09-10 17:25:29 +05:30
|
|
|
|
= label_tag :dir_name, _('Directory name'), class: 'control-label'
|
2015-10-24 18:46:33 +05:30
|
|
|
|
.col-sm-10
|
2015-12-23 02:04:40 +05:30
|
|
|
|
= text_field_tag :dir_name, params[:dir_name], required: true, class: 'form-control'
|
2015-11-26 14:37:03 +05:30
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
|
= render 'shared/new_commit_form', placeholder: _("Add new directory")
|
2015-11-26 14:37:03 +05:30
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
|
.form-actions
|
2017-09-10 17:25:29 +05:30
|
|
|
|
= submit_tag _("Create directory"), class: 'btn btn-create'
|
2015-12-23 02:04:40 +05:30
|
|
|
|
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
|
2015-10-24 18:46:33 +05:30
|
|
|
|
|
2018-03-27 19:54:05 +05:30
|
|
|
|
= render 'shared/projects/edit_information'
|