2017-06-06 21:50:43 +08:00
|
|
|
<div class="modal" id="create-repo-modal" tabindex="-1" role="dialog" aria-labelledby="create-repo-modal-label">
|
2023-08-11 19:44:26 +08:00
|
|
|
<%= form_with model: @repository, url: repositories_path, html: { data: { remote: true } } do |f| %>
|
2023-10-20 16:05:42 +08:00
|
|
|
<div class="modal-dialog" role="document" data-e2e="e2e-MD-invNewInventory">
|
2017-06-06 19:18:44 +08:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2023-12-15 23:33:13 +08:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close" data-e2e="e2e-BT-invNewInventoryMD-close"><i class="sn-icon sn-icon-close"></i></button>
|
2020-07-06 18:47:42 +08:00
|
|
|
<h3 class="modal-title" id="create-repo-modal-label">
|
2017-06-06 19:18:44 +08:00
|
|
|
<%= t("repositories.index.modal_create.title") %>
|
2020-07-06 18:47:42 +08:00
|
|
|
</h3>
|
2017-06-06 19:18:44 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2023-12-15 23:33:13 +08:00
|
|
|
<div class="form-group sci-input-container">
|
2023-10-20 16:05:42 +08:00
|
|
|
<label><%= t("repositories.index.modal_create.name_label") %> </label>
|
2020-07-06 18:47:42 +08:00
|
|
|
<%= f.text_field :name,
|
|
|
|
autofocus: true,
|
|
|
|
class: "sci-input-field",
|
|
|
|
placeholder: t("repositories.index.modal_create.name_placeholder") %>
|
|
|
|
</div>
|
2017-06-06 19:18:44 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2023-12-15 23:33:13 +08:00
|
|
|
<button type="button" data-e2e="e2e-BT-invNewInventoryMD-cancel" class="btn btn-secondary" data-dismiss="modal"><%=t "general.cancel" %></button>
|
|
|
|
<%= f.submit t("repositories.index.modal_create.submit"), class: "btn btn-success", 'data-e2e':"e2e-BT-invNewInventoryMD-create" %>
|
2017-06-06 19:18:44 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|