diff options
| author | levinse <levinse> | 2010-12-07 20:38:52 +0000 | 
|---|---|---|
| committer | levinse <levinse> | 2010-12-07 20:38:52 +0000 | 
| commit | 8468ce6abd28b145bfde14a210a166cca46115dc (patch) | |
| tree | 3c7a85b45d1a8fb655dd4abf2ed22570c74ece93 /httemplate/elements | |
| parent | c58774a70c3326ad2ba5a7a38b174dfbd76a9f78 (diff) | |
added prospect support to qualifications, RT7111
Diffstat (limited to 'httemplate/elements')
| -rw-r--r-- | httemplate/elements/popup_link-prospect_main.html | 42 | 
1 files changed, 42 insertions, 0 deletions
| diff --git a/httemplate/elements/popup_link-prospect_main.html b/httemplate/elements/popup_link-prospect_main.html new file mode 100644 index 000000000..cc22e3e12 --- /dev/null +++ b/httemplate/elements/popup_link-prospect_main.html @@ -0,0 +1,42 @@ +<%doc> + +Example: + +  include('/elements/init_overlib.html') + +  include( '/elements/popup_link-cust_main.html', { #hashref or a list, either way + +    #required +    'action'         => 'content.html', # uri for content of popup which should +                                        #   be suitable for appending keywords +    'label'          => 'click me',     # text of <A> tag +    'cust_main'      => $cust_main      # a FS::cust_main object +    +    #strongly recommended (you want a title, right?) +    'actionlabel     => 'You clicked',  # popup title +    +    #opt +    'width'          => '540', +    'color'          => '#ff0000', +    'closetext'      => 'Go Away',      # the value '' removes the link +  ) + +</%doc> +% if ( $params->{'prospect_main'} ) { +<% include('/elements/popup_link.html', $params ) %>\ +% } +<%init> + +my $params = { 'closetext' => 'Close' }; + +if (ref($_[0]) eq 'HASH') { +  $params = { %$params, %{ $_[0] } }; +} else { +  $params = { %$params, @_ }; +} +  +$params->{'action'} .= +  ( $params->{'action'} =~ /\?/ ? ';' : '?' ). +  'prospectnum='. $params->{'prospect_main'}->prospectnum; + +</%init> | 
