scinote-web/app/views/repositories/_create_repository_modal.html.erb
Mojca Lorber 51c4eeb106 renaming
2017-06-06 15:50:43 +02:00

24 lines
1.2 KiB
Text

<div class="modal" id="create-repo-modal" tabindex="-1" role="dialog" aria-labelledby="create-repo-modal-label">
<%= bootstrap_form_for [@team, @repository], remote: :true do |f| %>
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="create-repo-modal-label">
<%= t("repositories.index.modal_create.title") %>
</h4>
</div>
<div class="modal-body">
<%= f.text_field :name,
autofocus: true,
label: t("repositories.index.modal_create.name_label"),
placeholder: t("repositories.index.modal_create.name_placeholder") %>
</div>
<div class="modal-footer">
<%= f.submit t("repositories.index.modal_create.submit"), class: "btn btn-primary" %>
<button type="button" class="btn btn-default" data-dismiss="modal"><%= t("general.cancel") %></button>
</div>
</div>
</div>
<% end %>
</div>