Mailing List Archive

[interchange] Strap version of Admin create-customer page
commit 1b0af5b8e8acd14c7433336315513b685972a281
Author: Josh Lavin <digory@cpan.org>
Date: Fri Nov 3 07:46:53 2017 -0700

Strap version of Admin create-customer page

which only redirects viewers to the front-end of the website, since the
original create-customer page is broken for usernick and email-as-login.

dist/strap/include/menus/Customers.txt | 11 +++++++++++
dist/strap/pages/admin/customer_create.html | 25 +++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)
---
diff --git a/dist/strap/include/menus/Customers.txt b/dist/strap/include/menus/Customers.txt
new file mode 100644
index 0000000..df76c98
--- /dev/null
+++ b/dist/strap/include/menus/Customers.txt
@@ -0,0 +1,11 @@
+code mgroup msort next_line indicator exclude_on depends_on page form name super inactive description help_name img_dn img_up img_sel img_icon url debug
+001 Customers x001 showactive admin/customer showactive=1 Active Customers 0 1
+002 Customers x002 showinactive admin/customer showinactive=1 Inactive Customers 0 1
+003 Customers x003 admin/customer_create Create new customer 0
+004 x004 admin/customer_mailing Customer Mailing 0 Send mail to all customers on a list
+005 Customers x005 1 deletecustomer customer admin/customer_view customer=[cgi customer] View 0
+006 Customers x006 deletecustomer customer admin/customer_ship customer=[cgi customer] Shipping 0
+007 Customers x007 deletecustomer customer admin/customer_bill customer=[cgi customer] Billing 0
+008 Customers x008 deletecustomer customer admin/customer_all customer=[cgi customer] All 0
+009 Customers x009 deletecustomer customer admin/customer_pref customer=[cgi customer] Preferences 0
+010 Customers x010 deletecustomer customer admin/entry customer=[cgi customer] Enter Order 0
diff --git a/dist/strap/pages/admin/customer_create.html b/dist/strap/pages/admin/customer_create.html
new file mode 100644
index 0000000..bad5b43
--- /dev/null
+++ b/dist/strap/pages/admin/customer_create.html
@@ -0,0 +1,25 @@
+[tmp page_title][L]Customer manager[/L]: [L]Create customer[/L][/tmp]
+[set ui_class]Customers[/set]
+[set page_banner][L]Create customer[/L][/set]
+[set help_name]customer.create[/set]
+[set icon_name]icon_people.gif[/set]
+
+@_UI_STD_HEAD_@
+
+<!-- ----- BEGIN REAL STUFF ----- -->
+
+[perl tables=country]### pre-open database for calcs below[/perl]
+
+<p>With the "Strap"-type catalog, there is not currently a way to create customers via the Admin, because certain fields, like <i>usernick</i>, will not be set. Additionally, the user will not be able to login with their email, and their username counter will not match any other users.</p>
+
+<p>Rather than re-creating the <i>New Account</i> page here, the best course of action is to log out of the Admin and create the customer on the website.</p>
+
+<form action="[area login]" method=get>
+ <input type=hidden name=mv_action value=cancel>
+ <input type=submit value="[L]Log out and visit the New Account page[/L]">
+</form>
+
+<!-- ----- END REAL STUFF ----- -->
+
+@_UI_STD_FOOTER_@
+<!-- page: @@MV_PAGE@@ -->

_______________________________________________
interchange-cvs mailing list
interchange-cvs@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs