2022-07-26 17:06:42 -07:00
|
|
|
.modal.fade#modal-list-memberships{ aria: { hidden: true, labelledby: "modal-list-memberships-label" }, role: :dialog, tabindex: -1 }
|
2020-05-25 09:04:54 -07:00
|
|
|
.modal-dialog
|
|
|
|
.modal-content
|
|
|
|
.modal-header
|
2022-07-26 17:06:42 -07:00
|
|
|
%h5.modal-title#modal-list-memberships-label= t(".title")
|
2023-01-04 02:48:22 -08:00
|
|
|
%button.btn-close{ data: { dismiss: :modal }, type: :button }
|
2023-01-04 02:12:40 -08:00
|
|
|
%span.visually-hidden= t("voc.close")
|
2020-05-25 09:04:54 -07:00
|
|
|
%div{ role: :tabpanel }
|
|
|
|
%ul.nav.nav-tabs.mt-1{ role: :tablist }
|
2022-07-26 17:06:42 -07:00
|
|
|
%li.nav-item{ role: "presentation" }
|
2023-01-04 03:23:47 -08:00
|
|
|
%a.nav-link.active{ href: "#lists-list", aria: { controls: "lists-list" }, data: { bs_toggle: :tab }, role: :tab }
|
2022-07-26 17:06:42 -07:00
|
|
|
= t(".tab.list.title")
|
|
|
|
%li.nav-item{ role: "presentation" }
|
2023-01-04 03:23:47 -08:00
|
|
|
%a.nav-link{ href: "#create", aria: { controls: "create" }, data: { bs_toggle: :tab }, role: :tab }
|
2022-07-26 17:06:42 -07:00
|
|
|
= t(".tab.create.title")
|
2020-05-25 09:04:54 -07:00
|
|
|
|
|
|
|
.tab-content
|
2022-07-26 17:06:42 -07:00
|
|
|
.tab-pane.active{ role: :tabpanel, id: "lists-list" }
|
2020-05-25 09:04:54 -07:00
|
|
|
%ul.list-group
|
|
|
|
- current_user.lists.each do |list|
|
2022-07-26 17:06:42 -07:00
|
|
|
= render "modal/list/item", list: list, user: user
|
|
|
|
.tab-pane{ role: :tabpanel, id: "create" }
|
2020-05-25 09:04:54 -07:00
|
|
|
.modal-body
|
2022-07-26 17:06:42 -07:00
|
|
|
%input.form-control#new-list-name{ type: :text, placeholder: t(".tab.create.placeholder") }
|
|
|
|
%button.btn.btn-primary#create-list{ type: :button, data: { user: user.screen_name } }= t(".tab.create.action")
|
2020-05-25 09:04:54 -07:00
|
|
|
.modal-footer
|
2022-07-26 17:06:42 -07:00
|
|
|
%button.btn.btn-primary{ name: "gm-save", type: :button, data: { dismiss: :modal } }= t("voc.close")
|