add: products ui
This commit is contained in:
parent
8f76578f1b
commit
fd529d3847
31 changed files with 1041 additions and 49 deletions
17
crates/app/src/public/html/profile/shop.lisp
Normal file
17
crates/app/src/public/html/profile/shop.lisp
Normal file
|
@ -0,0 +1,17 @@
|
|||
(text "{% extends \"profile/base.html\" %} {% block content %} {% if profile.settings.enable_questions and (user or profile.settings.allow_anonymous_questions) %}")
|
||||
(div
|
||||
("style" "display: contents")
|
||||
(text "{{ components::create_question_form(receiver=profile.id, header=profile.settings.motivational_header, drawing_enabled=profile.settings.enable_drawings, allow_anonymous=profile.settings.allow_anonymous_questions) }}"))
|
||||
(text "{%- endif %}")
|
||||
(text "{{ macros::profile_nav(selected=\"shop\") }}")
|
||||
(div
|
||||
("class" "card_nest")
|
||||
(div
|
||||
("class" "card small flex gap_2 items_center")
|
||||
(icon (text "store"))
|
||||
(str (text "auth:label.shop")))
|
||||
(div
|
||||
("class" "card w_full flex flex_col gap_2")
|
||||
(text "{% for item in list %} {{ components::product_listing_card(product=item) }} {% endfor %}")
|
||||
(text "{{ components::pagination(page=page, items=list|length) }}")))
|
||||
(text "{% endblock %}")
|
Loading…
Add table
Add a link
Reference in a new issue