2017-06-08 01:11:25 +08:00
|
|
|
<div class="modal fade" id="copy-repo-modal" tabindex="-1" role="dialog">
|
2023-07-03 17:11:51 +08:00
|
|
|
<%= form_with model: @tmp_repository,
|
|
|
|
url: team_repository_copy_path(id: @repository, format: :json),
|
2023-08-09 21:47:33 +08:00
|
|
|
data: { remote: true } do |f| %>
|
2024-01-16 00:17:55 +08:00
|
|
|
<div class="modal-dialog" role="document" data-e2e="e2e-MD-invDuplicateAT">
|
2017-06-08 01:11:25 +08:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2024-01-16 00:17:55 +08:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" data-e2e="e2e-BT-invDuplicateMD-close">
|
2023-08-17 19:55:17 +08:00
|
|
|
<i class="sn-icon sn-icon-close"></i>
|
2017-06-08 01:11:25 +08:00
|
|
|
</button>
|
2020-07-06 18:47:42 +08:00
|
|
|
<h3 class="modal-title"><%= t("repositories.index.modal_copy.title_html", name: @repository.name ) %></h3>
|
2017-06-08 01:11:25 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
2020-07-06 18:47:42 +08:00
|
|
|
<div class="form-group sci-input-container">
|
2023-07-03 17:11:51 +08:00
|
|
|
<label><%= t("repositories.index.modal_copy.name") %></label>
|
2017-06-08 01:11:25 +08:00
|
|
|
<%= f.text_field :name,
|
|
|
|
autofocus: true,
|
2020-07-06 18:47:42 +08:00
|
|
|
class: "sci-input-field",
|
2017-06-08 01:11:25 +08:00
|
|
|
placeholder: t("repositories.index.modal_copy.name_placeholder") %>
|
2024-02-28 20:42:11 +08:00
|
|
|
<div class="text-red-500">
|
|
|
|
<%= t("repositories.index.modal_copy.description") %>
|
|
|
|
</div>
|
2017-06-08 01:11:25 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2024-01-16 00:17:55 +08:00
|
|
|
<%= f.submit t("repositories.index.modal_copy.copy"), class: "btn btn-success", data: { e2e: "e2e-BT-invDuplicateMD-copy" } %>
|
2017-06-08 01:11:25 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|