2020-12-01 16:59:08 +08:00
|
|
|
<div class="modal" id="new-project-folder-modal" tabindex="-1" role="dialog" aria-labelledby="new-project-folder-modal-label">
|
2023-08-09 21:47:33 +08:00
|
|
|
<%= form_with model: @project_folder, data: { remote: true } do |f| %>
|
2020-12-01 16:59:08 +08:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2020-12-29 05:49:52 +08:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="<%= t('general.close') %>"><span aria-hidden="true">×</span></button>
|
2020-12-01 16:59:08 +08:00
|
|
|
<h4 class="modal-title" id="new-project-folder-modal-label">
|
2020-12-29 05:49:52 +08:00
|
|
|
<%= t('projects.index.modal_new_project_folder.modal_title') %>
|
2020-12-01 16:59:08 +08:00
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2020-12-29 05:49:52 +08:00
|
|
|
<p><%= t('projects.index.modal_new_project_folder.description') %></p>
|
2020-12-01 16:59:08 +08:00
|
|
|
<div class="form-group sci-input-container">
|
2020-12-29 05:49:52 +08:00
|
|
|
<%= f.hidden_field :parent_folder_id %>
|
2021-01-12 17:51:17 +08:00
|
|
|
<%= f.hidden_field :archived %>
|
2023-07-03 17:11:51 +08:00
|
|
|
<label><%= t('projects.index.modal_new_project_folder.name') %></label>
|
|
|
|
<%= f.text_field :name, placeholder: t('projects.index.modal_new_project_folder.name_placeholder'), class: 'sci-input-field' %>
|
2020-12-01 16:59:08 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2020-12-29 05:49:52 +08:00
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%= t('general.cancel') %></button>
|
|
|
|
<%= f.submit t('projects.index.modal_new_project_folder.create'), class: 'btn btn-primary' %>
|
2020-12-01 16:59:08 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|