ui tweaks for prospect edit, RT#7111
authorivan <ivan>
Sun, 13 Mar 2011 04:04:17 +0000 (04:04 +0000)
committerivan <ivan>
Sun, 13 Mar 2011 04:04:17 +0000 (04:04 +0000)
httemplate/edit/elements/edit.html
httemplate/edit/prospect_main.html
httemplate/elements/location.html
httemplate/elements/tr-select-agent.html

index 545221a..975f8fb 100644 (file)
@@ -279,6 +279,9 @@ Example:
 %
 %     #umm.  for select-agent_types at least
 %     'disabled'      => $f->{'disabled'},
+%
+%     #any?
+%     'colspan'       => $f->{'colspan'},
 %   );
 %
 %   $include_common{$_} = $f->{$_} foreach grep exists($f->{$_}),
index eb3e4d6..7473cc2 100644 (file)
        { 'field'       => 'agentnum',
          'type'        => 'select-agent',
          'empty_label' => 'Select agent',
+         'colspan'     => 6,
        },
        { 'field'   => 'company',
-         'type'   => 'text',
+         'type'    => 'text',
          'size'    => 50,
+         'colspan' => 6,
        },
        { 'field'             => 'contactnum',
          'type'              => 'contact',
index e93553e..0b91add 100644 (file)
@@ -140,7 +140,7 @@ Example:
 
 %     #XXX try to parse first
 %     if ( 0 ) {
-%     } else {
+%     } else { #XXX i don't work so well when the dropdown is changed :/  i probably need to be triggered by "default service address"
         Can't parse unit type and number from <B><% $object->get($pre.'address2') |h %></B>
 %    }
 
@@ -156,13 +156,13 @@ Example:
 <TR>
   <<%$th%> ALIGN="right"><%$r%>City</<%$th%>>
   <TD WIDTH="1"><% include('/elements/city.html', %select_hash) %></TD>
-  <<%$th%> ALIGN="right" ID="<%$pre%>countylabel" <%$county_style%>><%$r%>County</<%$th%>>
-  <TD><% include('/elements/select-county.html', %select_hash ) %></TD>
+  <<%$th%> ALIGN="right" WIDTH="1" ID="<%$pre%>countylabel" <%$county_style%>><%$r%>County</<%$th%>>
+  <TD WIDTH="1"><% include('/elements/select-county.html', %select_hash ) %></TD>
   <<%$th%> ALIGN="right" WIDTH="1"><%$r%>State</<%$th%>>
   <TD WIDTH="1">
     <% include('/elements/select-state.html', %select_hash ) %>
   </TD>
-  <<%$th%>><%$r%>Zip</<%$th%>>
+  <<%$th%> ALIGN="right" WIDTH="1"><%$r%>Zip</<%$th%>>
   <TD>
     <INPUT TYPE     = "text"
            NAME     = "<%$pre%>zip"
index 9f2f76a..515a11d 100644 (file)
@@ -33,7 +33,7 @@ Example:
 
   <TR>
     <TD ALIGN="right"><% $opt{'label'} || 'Agent' %></TD>
-    <TD>
+    <TD <% $colspan %>>
       <% include( '/elements/select-agent.html',
                      'curr_value' => $agentnum,
                      'agents'     => \@agents,
@@ -57,4 +57,6 @@ my @agents =
         'viewall_right' => $opt{'viewall_right'},
       );
 
+my $colspan = $opt{'colspan'} ? 'COLSPAN="'.$opt{'colspan'}.'"' : '';
+
 </%init>