diff --git a/lnbits/extensions/shop/templates/shop/_chat_box.html b/lnbits/extensions/shop/templates/shop/_chat_box.html new file mode 100644 index 00000000..87755e41 --- /dev/null +++ b/lnbits/extensions/shop/templates/shop/_chat_box.html @@ -0,0 +1,57 @@ + + +
Messages
+
+ + + + + + + +
+
+ +
+ +
+
+ + + + + + + +
+
+
diff --git a/lnbits/extensions/shop/templates/shop/_dialogs.html b/lnbits/extensions/shop/templates/shop/_dialogs.html new file mode 100644 index 00000000..600897b6 --- /dev/null +++ b/lnbits/extensions/shop/templates/shop/_dialogs.html @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ Update Product + + Create Product + + Cancel +
+
+
+
+ + + + + + +
+ Update Shipping Zone + Create Shipping Zone + + Cancel +
+
+
+
+ + + + + + + +
+ Update Marketplace + Launch Marketplace + + Cancel +
+
+
+
+ + + + + + + + + + +
+
+ Generate keys +
+
+ Restore keys +
+
+ + + + + +
+ Update Stall + Create Stall + Cancel +
+
+
+
+ + +
How to use Shop
+ + + Create Shipping Zones you're willing to ship to. You can define + different values for different zones. + + + + + + Create a Stall and provide private and public keys to use for + communication. If you don't have one, LNbits will create a key pair for + you. It will be saved and can be used on other stalls. + + + + + + + Create your products, add a small description and an image. Choose to + what stall, if you have more than one, it belongs to + + + +
+ +
+
+
+
+
diff --git a/lnbits/extensions/shop/templates/shop/_tables.html b/lnbits/extensions/shop/templates/shop/_tables.html new file mode 100644 index 00000000..9b731c20 --- /dev/null +++ b/lnbits/extensions/shop/templates/shop/_tables.html @@ -0,0 +1,428 @@ + + + +
+
+
Orders
+
+
+ Export to CSV +
+
+ + {% raw %} + + + {% endraw %} + +
+
+ + + + +
+
+
Products
+
+
+ Export to CSV +
+
+ + {% raw %} + + + {% endraw %} + +
+
+ + + + +
+
+
Market Stalls
+
+
+ Export to CSV +
+
+ + {% raw %} + + + {% endraw %} + +
+
+ + + + +
+
+
Marketplaces
+
+
+ Export to CSV +
+
+ + {% raw %} + + + {% endraw %} + +
+
+ + + + +
+
+
Shipping Zones
+
+
+ Export to CSV +
+
+ + {% raw %} + + + {% endraw %} + +
+
diff --git a/lnbits/extensions/shop/templates/shop/index.html b/lnbits/extensions/shop/templates/shop/index.html index ec75c107..e2241e37 100644 --- a/lnbits/extensions/shop/templates/shop/index.html +++ b/lnbits/extensions/shop/templates/shop/index.html @@ -1,348 +1,7 @@ {% extends "base.html" %} {% from "macros.jinja" import window_vars with context %} {% block page %}
- - - - - - - - - - - - - - - - - - - - - - - -
- Update Product - - Create Product - - Cancel -
-
-
-
- - - - - - -
- Update Shipping Zone - Create Shipping Zone - - Cancel -
-
-
-
- - - - - - - -
- Update Marketplace - Launch Marketplace - - Cancel -
-
-
-
- - - - - - - - - - -
-
- Generate keys -
-
- Restore keys -
-
- - - - - -
- Update Stall - Create Stall - Cancel -
-
-
-
- + {% include "shop/_dialogs.html" %}
@@ -427,444 +86,7 @@ - - - -
-
-
Orders
-
-
- Export to CSV -
-
- - {% raw %} - - - {% endraw %} - -
-
- - - - -
-
-
Products
-
-
- Export to CSV -
-
- - {% raw %} - - - {% endraw %} - -
-
- - - - -
-
-
Market Stalls
-
-
- Export to CSV -
-
- - {% raw %} - - - {% endraw %} - -
-
- - - - -
-
-
Marketplaces
-
-
- Export to CSV -
-
- - {% raw %} - - - {% endraw %} - -
-
- - - - -
-
-
Shipping Zones
-
-
- Export to CSV -
-
- - {% raw %} - - - {% endraw %} - -
-
+ {% include "shop/_tables.html" %} @@ -926,186 +148,8 @@ - - -
Messages
-
- - - - - - - -
-
- -
- -
-
- - - - - - - -
-
-
- + {% include "shop/_chat_box.html" %}
- - -
How to use Shop
- - - Create Shipping Zones you're willing to ship to. You can define - different values for different zones. - - - - - - Create a Stall and provide private and public keys to use for - communication. If you don't have one, LNbits will create a key pair - for you. It will be saved and can be used on other stalls. - - - - - - - Create your products, add a small description and an image. Choose to - what stall, if you have more than one, it belongs to - - - -
- -
-
-
-
-
{% endblock %} {% block scripts %} {{ window_vars(user) }}