mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
30cfe78805
Add edit modal for project folders [SCI-5265]
23 lines
1.2 KiB
Text
23 lines
1.2 KiB
Text
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title" id="edit-project-modal-label">
|
|
<%= t('projects.index.modal_edit_project.modal_title', project: @project.name) %>
|
|
</h4>
|
|
</div>
|
|
<%= bootstrap_form_for @project, url: project_path(@project ,format: :json), method: :put, remote: true do |f| %>
|
|
<div class="modal-body">
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
|
<%= f.text_field :name, label: t("projects.index.modal_new_project.name"), autofocus: true, placeholder: t("projects.index.modal_new_project.name_placeholder") %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= f.enum_btn_group :visibility, label: t("projects.index.modal_new_project.visibility"), btn_names: { hidden: t("projects.index.modal_new_project.visibility_hidden"), visible: t("projects.index.modal_new_project.visibility_visible") } %>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%=t "general.cancel" %></button>
|
|
<button class="btn btn-primary" type="submit"><%=t "projects.index.modal_edit_project.submit" %></button>
|
|
</div>
|
|
<% end %>
|