mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 13:45:25 +08:00
35 lines
1.6 KiB
Text
35 lines
1.6 KiB
Text
<div class="modal fade" id="copy-repo-modal" tabindex="-1" role="dialog">
|
|
<%= form_with model: @tmp_repository,
|
|
url: team_repository_copy_path(id: @repository, format: :json),
|
|
data: { remote: true } do |f| %>
|
|
<div class="modal-dialog" role="document" data-e2e="e2e-MD-invDuplicateAT">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" data-e2e="e2e-BT-invDuplicateMD-close">
|
|
<i class="sn-icon sn-icon-close"></i>
|
|
</button>
|
|
<h3 class="modal-title"><%= t("repositories.index.modal_copy.title_html", name: @repository.name ) %></h3>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
|
<div class="form-group sci-input-container">
|
|
<label><%= t("repositories.index.modal_copy.name") %></label>
|
|
<%= f.text_field :name,
|
|
autofocus: true,
|
|
class: "sci-input-field",
|
|
placeholder: t("repositories.index.modal_copy.name_placeholder") %>
|
|
<div class="text-red-500">
|
|
<%= t("repositories.index.modal_copy.description") %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<%= f.submit t("repositories.index.modal_copy.copy"), class: "btn btn-success", data: { e2e: "e2e-BT-invDuplicateMD-copy" } %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|