From 985adebbccf51c25ebeb049675c78830b98246aa Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Wed, 29 Aug 2018 14:09:58 -0400 Subject: [PATCH] RT# 75817 - updated UI to be more intuitive Conflicts: httemplate/edit/cust_main-contacts.html httemplate/elements/contact.html --- httemplate/edit/cust_main-contacts.html | 34 ++++++++++++------ httemplate/elements/contact.html | 49 +++++++++++++++++++------- httemplate/elements/validate_password.html | 3 +- httemplate/misc/xmlhttp-validate_password.html | 4 +-- 4 files changed, 64 insertions(+), 26 deletions(-) diff --git a/httemplate/edit/cust_main-contacts.html b/httemplate/edit/cust_main-contacts.html index 7dedfe04d..aeedd78e5 100644 --- a/httemplate/edit/cust_main-contacts.html +++ b/httemplate/edit/cust_main-contacts.html @@ -1,12 +1,25 @@ -<% include('elements/edit.html', - 'name_singular' => 'customer contacts', #yes, we're editing all of them - 'table' => 'cust_main', - 'post_url' => popurl(1). 'process/cust_main-contacts.html', - 'labels' => { 'custnum' => ' ', #XXX supress this line entirely, its being redundant - 'contactnum' => ' ', #'Contact', - #'locationnum' => ' ', - }, - 'fields' => [ + + +<& elements/edit.html, + 'name_singular' => 'customer contacts', #yes, we're editing all of them + 'table' => 'cust_main', + 'post_url' => popurl(1). 'process/cust_main-contacts.html', + 'no_pkey_display' => 1, + 'labels' => { 'custnum' => ' ', #XXX supress this line entirely, its being redundant + 'contactnum' => ' ', #'Contact', + #'locationnum' => ' ', + }, + 'fields' => [ { 'field' => 'contactnum', 'type' => 'contact', 'colspan' => 6, @@ -30,8 +43,7 @@ $conf->config('countrydefault') || 'US', 1, #no balance ), - ) -%> +&> <%init> my $curuser = $FS::CurrentUser::CurrentUser; diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index 678193516..a298a1b15 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -40,6 +40,8 @@ % } % } elsif ( $field eq 'emailaddress' ) { % $value = join(', ', map $_->emailaddress, $contact->contact_email); +% } elsif ( $field eq 'password' ) { +% $value = $contact->get('_password') ? '********' : ''; % } else { % $value = $contact->get($field); % } @@ -51,7 +53,7 @@ ID = "<%$id%>_<%$field%>" STYLE = "width: 140px" > -