7f8a520f8a
Rename btn-new, btn-create and btn-save to btn-success Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
21 lines
1,016 B
Text
21 lines
1,016 B
Text
#modal-create-new-dir.modal
|
|
.modal-dialog.modal-lg
|
|
.modal-content
|
|
.modal-header
|
|
%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'
|
|
|
|
= render 'shared/new_commit_form', placeholder: _("Add new directory")
|
|
|
|
.form-actions
|
|
= submit_tag _("Create directory"), class: 'btn btn-success'
|
|
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
|
|
|
|
= render 'shared/projects/edit_information'
|