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")
|
2020-05-25 09:04:54 -07:00
|
|
|
|
%button.close{ data: { dismiss: :modal }, type: :button }
|
|
|
|
|
%span{ aria: { hidden: true } } ×
|
2022-07-26 17:06:42 -07:00
|
|
|
|
%span.sr-only= 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" }
|
|
|
|
|
%a.nav-link.active{ href: "#lists-list", aria: { controls: "lists-list" }, data: { toggle: :tab }, role: :tab }
|
|
|
|
|
= t(".tab.list.title")
|
|
|
|
|
%li.nav-item{ role: "presentation" }
|
|
|
|
|
%a.nav-link{ href: "#create", aria: { controls: "create" }, data: { toggle: :tab }, role: :tab }
|
|
|
|
|
= 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")
|