scinote-web/app/views/repositories/_rename_repository_modal.html.erb

33 lines
1.5 KiB
Text
Raw Normal View History

<div class="modal fade" id="rename-repo-modal" tabindex="-1" role="dialog">
2023-07-03 17:11:51 +08:00
<%= form_with model: @repository,
url: team_repository_path(id: @repository, format: :json),
2023-08-09 21:47:33 +08:00
data: { remote: true } do |f| %>
<div class="modal-dialog" role="document" data-e2e="e2e-MD-invRenameAT">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close" data-e2e="e2e-BT-invRenameMD-close">
2023-08-17 19:55:17 +08:00
<i class="sn-icon sn-icon-close"></i>
</button>
2020-07-06 18:47:42 +08:00
<h3 class="modal-title"><%= t("repositories.index.modal_rename.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">
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_rename.name") %></label>
<%= f.text_field :name,
autofocus: true,
2020-07-06 18:47:42 +08:00
class: "sci-input-field",
placeholder: t("repositories.index.modal_rename.name_placeholder") %>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<%= f.submit t("repositories.index.modal_rename.rename"), class: "btn btn-success", data: { e2e: "e2e-BT-invRenameMD-save" } %>
</div>
</div>
</div>
<% end %>
</div>