X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=2023a6cfe0c83fa57a925cf391fc0315f2d7dd3f;hb=7a7bcda9d75c951df9c911ce60d5b0551765daf2;hp=38703bfef6149964918f94927bff29723ce082de;hpb=03ceab71dad1e5eb366865d304e5e459cc905ce4;p=freeside.git diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index 38703bfef..2023a6cfe 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -4,42 +4,18 @@ - - - - +% foreach my $field ( @fields ) { + +% }
- - >
- First name -
- - >
- Last name -
- - >
- Title/Position -
- - >
- Comment -
+ get($field) |h %>" + <% $onchange %> + >
+ <% $label{$field} %> +
@@ -69,4 +45,12 @@ if ( $curr_value ) { $contact = new FS::contact {}; } +tie my %label, 'Tie::IxHash', + 'first' => 'First name', + 'last' => 'Last name', + 'title' => 'Title/Position', + 'comment' => 'Comment', +; +my @fields = keys %label; +