From: Ivan Kohler Date: Tue, 19 May 2015 04:17:44 +0000 (-0700) Subject: customer view UI X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=3e9a428cbc8abd4af6fea8eb828126519b43198b customer view UI --- diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html index 7d4bd1054..e228e6555 100644 --- a/httemplate/elements/change_history_common.html +++ b/httemplate/elements/change_history_common.html @@ -3,6 +3,7 @@ % my $bgcolor2 = '#ffffff'; % my $bgcolor = ''; + User Date @@ -14,6 +15,7 @@ Action Description + % foreach my $item ( @history ) { % my $history_other = ''; diff --git a/httemplate/elements/freeside.css b/httemplate/elements/freeside.css index 1e2574f6e..4fd06a0bf 100644 --- a/httemplate/elements/freeside.css +++ b/httemplate/elements/freeside.css @@ -240,23 +240,26 @@ div.fstabcontainer { } table.grid { - border: 1px solid #cccccc; - -moz-box-shadow: 1px 1px 2px #666666; - -webkit-box-shadow: 1px 1px 2px #666666; - box-shadow: 1px 1px 2px #666666; - filter: progid:DXImageTransform.Microsoft.Shadow(color='#666666', Direction=135, Strength=2); + border: 1px solid #999999; + border-radius: 2px; } th, td { vertical-align: top; } -th.grid { +thead th.grid { padding-left: 3px; padding-right: 3px; padding-bottom: 2px; border: none; empty-cells: show; + font-weight:normal; + font-size:90%; + valign: bottom; + color: #666666; + background: #ffffff; + border-bottom: 1px solid #666666; } td.grid { diff --git a/httemplate/elements/quotations.html b/httemplate/elements/quotations.html index 1d80a48ea..2af101652 100644 --- a/httemplate/elements/quotations.html +++ b/httemplate/elements/quotations.html @@ -8,6 +8,7 @@ % my $bgcolor1 = '#eeeeee'; % my $bgcolor2 = '#ffffff'; % my $bgcolor = ''; + # <% mt('Date') |h %> @@ -15,6 +16,7 @@ <% mt('Recurring') |h %> + % foreach my $quotation (@quotations) { % if ( $bgcolor eq $bgcolor1 ) { % $bgcolor = $bgcolor2; diff --git a/httemplate/elements/table-tickets.html b/httemplate/elements/table-tickets.html index f89f98422..d722c9d2b 100644 --- a/httemplate/elements/table-tickets.html +++ b/httemplate/elements/table-tickets.html @@ -5,11 +5,14 @@ View <% mt('resolved') |h %>
+% if ( @tickets ) { + <& /elements/table-grid.html &> % my $bgcolor1 = '#eeeeee'; % my $bgcolor2 = '#ffffff'; % my $bgcolor = ''; + <% mt('#') |h %> <% mt('Subject') |h %> @@ -26,6 +29,7 @@ View <% mt('Service') |h %> % } + % foreach my $ticket ( @tickets ) { % my $href = FS::TicketSystem->href_ticket($ticket->{id}); @@ -91,6 +95,8 @@ View % } +%} + <%init> diff --git a/httemplate/view/cust_main/appointments.html b/httemplate/view/cust_main/appointments.html index 9bec7b9ae..f8c1bb686 100644 --- a/httemplate/view/cust_main/appointments.html +++ b/httemplate/view/cust_main/appointments.html @@ -20,17 +20,20 @@ %# <% mt('resolved') |h %>
+%if ( @tickets ) { <& /elements/table-grid.html &> % my $bgcolor1 = '#eeeeee'; % my $bgcolor2 = '#ffffff'; % my $bgcolor = ''; + <% mt('Type') |h %> <% mt('Date') |h %> <% mt('Status') |h %> <% mt('Owner') |h %> + % foreach my $ticket ( @tickets ) { % my $href = FS::TicketSystem->href_ticket($ticket->{id}); @@ -69,7 +72,7 @@ % } - +%} <%init> my $cust_main = shift; diff --git a/httemplate/view/cust_main/contacts_new.html b/httemplate/view/cust_main/contacts_new.html index 683841c33..590409df9 100644 --- a/httemplate/view/cust_main/contacts_new.html +++ b/httemplate/view/cust_main/contacts_new.html @@ -1,11 +1,10 @@ +%if ( @cust_contacts ) {
Contacts <& /elements/table-grid.html &> -% my $bgcolor1 = '#eeeeee'; -% my $bgcolor2 = '#ffffff'; -% my $bgcolor = $bgcolor2; -% my $th = ''; + +% my $th = ''; <%$th%>Type <%$th%>Contact @@ -16,7 +15,11 @@ % } <%$th%>Comment + +% my $bgcolor1 = '#ffffff'; +% my $bgcolor2 = '#eeeeee'; +% my $bgcolor = $bgcolor2; % foreach my $cust_contact ( @cust_contacts ) { % my $contact = $cust_contact->contact; % my $td = qq(); @@ -59,6 +62,7 @@ % } % } +%} <%once> my @phone_type = qsearch({table=>'phone_type', order_by=>'weight'}); diff --git a/httemplate/view/cust_main/notes/notes.html b/httemplate/view/cust_main/notes/notes.html index fa45a68f2..b4ea87c19 100644 --- a/httemplate/view/cust_main/notes/notes.html +++ b/httemplate/view/cust_main/notes/notes.html @@ -89,6 +89,7 @@ style="display:<% $display %>" > <& /elements/table-grid.html &> + <% mt('Date') |h %> % if ( $conf->exists('cust_main_note-display_times') ) { @@ -103,6 +104,7 @@   % } + % $skipheader = (!$conf->exists('note-classes') || $conf->config('note-classes') < 2); % $last_classnum = $note->classnum; % } diff --git a/httemplate/view/cust_main/packages/section.html b/httemplate/view/cust_main/packages/section.html index 7a85d6b03..fe9f283c7 100755 --- a/httemplate/view/cust_main/packages/section.html +++ b/httemplate/view/cust_main/packages/section.html @@ -1,4 +1,5 @@ % if ( @$packages ) { + % #my $width = $show_location ? 'WIDTH="25%"' : 'WIDTH="33%"'; <% mt('Package') |h %> @@ -8,6 +9,7 @@ <% mt('Services') |h %> % } + % #$FS::cust_pkg::DEBUG = 2; % foreach my $cust_pkg (@$packages) { diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 171c29cb7..458469cb1 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -28,6 +28,7 @@ % my $bgcolor2 = '#ffffff'; % my $bgcolor = ''; + <% mt('Date') |h %> <% mt('Description') |h %> @@ -37,6 +38,7 @@ <% mt('Refund') |h %> <% mt('Balance') |h %> + %#display payment history