2015-10-24 18:46:33 +05:30
|
|
|
|
#modal-create-new-dir.modal
|
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
|
|
|
|
%a.close{href: "#", "data-dismiss" => "modal"} ×
|
|
|
|
|
%h3.page-title Create New Directory
|
|
|
|
|
.modal-body
|
2016-06-02 11:05:42 +05:30
|
|
|
|
= form_tag namespace_project_create_dir_path(@project.namespace, @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
|
2015-12-23 02:04:40 +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
|
|
|
|
|
|
|
|
|
= render 'shared/new_commit_form', placeholder: "Add new directory"
|
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
|
.form-actions
|
|
|
|
|
= submit_tag "Create directory", class: 'btn btn-create'
|
|
|
|
|
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
|
2015-10-24 18:46:33 +05:30
|
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
|
- unless can?(current_user, :push_code, @project)
|
|
|
|
|
.inline.prepend-left-10
|
|
|
|
|
= commit_in_fork_help
|
|
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
|
:javascript
|
|
|
|
|
new NewCommitForm($('.js-create-dir-form'))
|