Navigation Menu

Skip to content

Commit

Permalink
Strap version of Admin create-customer page
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jlav1n committed Nov 3, 2017
1 parent 5455a2b commit 1b0af5b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 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
25 changes: 25 additions & 0 deletions 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@@ -->

0 comments on commit 1b0af5b

Please sign in to comment.