scinote-web/app/views/repositories/_create_repository_modal.html.erb
Alex Kriuchykhin 528d411910
e2e - modified and added new tags at inventories section [SCI-9813] (#6741) (#6832)
Co-authored-by: Martin Artnik <martin@scinote.net>
Co-authored-by: mvrazic <144342580+mvrazic@users.noreply.github.com>
2023-12-15 16:33:13 +01:00

27 lines
1.5 KiB
Text

<div class="modal" id="create-repo-modal" tabindex="-1" role="dialog" aria-labelledby="create-repo-modal-label">
<%= form_with model: @repository, url: repositories_path, html: { data: { remote: true } } do |f| %>
<div class="modal-dialog" role="document" data-e2e="e2e-MD-invNewInventory">
<div class="modal-content">
<div class="modal-header">
<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>
<h3 class="modal-title" id="create-repo-modal-label">
<%= t("repositories.index.modal_create.title") %>
</h3>
</div>
<div class="modal-body">
<div class="form-group sci-input-container">
<label><%= t("repositories.index.modal_create.name_label") %> </label>
<%= f.text_field :name,
autofocus: true,
class: "sci-input-field",
placeholder: t("repositories.index.modal_create.name_placeholder") %>
</div>
</div>
<div class="modal-footer">
<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" %>
</div>
</div>
</div>
<% end %>
</div>