22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
<div name="assignments" class="position-relative" data-controller="dialog" data-action="keydown.esc->dialog#close click@document->dialog#closeOnClickOutside">
|
|
<button class="btn full-width justify-start borderless" data-action="click->dialog#open:stop">
|
|
<%= image_tag "person.svg", aria: { hidden: true }, size: 24 %>
|
|
<span>Assign to someone</span>
|
|
</button>
|
|
|
|
<dialog class="combox-popup panel align-center gap-half fill-white shadow" data-dialog-target="dialog">
|
|
<%= form_with url: bucket_bubble_assignment_toggles_path(bubble.bucket, bubble), data: { controller: "form" } do |form| %>
|
|
<%= form.combobox :assignee_id, users, required: true,
|
|
render_in: { partial: "bubbles/users/listbox_option", as: :user, locals: { bubble: bubble } },
|
|
data: { controller: "autofocus", action: "hw-combobox:selection->form#submit" } %>
|
|
<% end %>
|
|
|
|
<form method="dialog">
|
|
<button class="btn txt-small" title="Close (esc)">
|
|
<%= image_tag "remove.svg", aria: { hidden: true }, size: 24 %>
|
|
<span class="for-screen-reader">Close</span>
|
|
</button>
|
|
</form>
|
|
</dialog>
|
|
</div>
|