diff --git a/admin-dev/themes/default/template/controllers/referrers/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/referrers/helpers/form/form.tpl index 10e7a8b6b..b6bdb3bec 100644 --- a/admin-dev/themes/default/template/controllers/referrers/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/referrers/helpers/form/form.tpl @@ -27,12 +27,13 @@ {block name="other_fieldsets"} {if $f == 1}
- - {l s='Help'} - +

+ {l s='Help'} +

+
@@ -75,45 +76,43 @@ {/block} {block name="other_input"} - {if $key == 'help'} - - {l s='Get help!'} + + {l s='Get help!'} {/if} +{/block} + +{block name="fieldset"} + {if $f == 3} + + {else} + {$smarty.block.parent} + {/if} {/block} {block name="label"} - - {if $input.name == 'http_referer_regexp'} - + {/if} {/block} {block name="script"} + $( document ).ready(function() { + $('.toggle_help').click(function() { + $('#tracking_help').slideToggle(); - $(document).ready(function() { - $('fieldset#fieldset_3 legend').css('cursor', 'pointer'); - $('fieldset#fieldset_3 legend').click(function(){ - $('#tracking_expert').slideToggle(); + if ($(this).find('i').hasClass('icon-chevron-sign-down')) + $(this).find('i').removeClass('icon-chevron-sign-down').addClass('icon-chevron-sign-up'); + else if ($(this).find('i').hasClass('icon-chevron-sign-up')) + $(this).find('i').removeClass('icon-chevron-sign-up').addClass('icon-chevron-sign-down'); }); }); - {/block} diff --git a/controllers/admin/AdminReferrersController.php b/controllers/admin/AdminReferrersController.php index 6f6f94141..02a20f9b7 100644 --- a/controllers/admin/AdminReferrersController.php +++ b/controllers/admin/AdminReferrersController.php @@ -198,55 +198,50 @@ class AdminReferrersControllerCore extends AdminController $this->fields_form[0] = array('form' => array( 'legend' => array( 'title' => $this->l('Affiliate'), - 'image' => '../img/admin/affiliation.png' + 'icon' => 'icon-group' ), 'input' => array( array( 'type' => 'text', 'label' => $this->l('Name:'), 'name' => 'name', - 'size' => 20, 'required' => true ), array( 'type' => 'password', 'label' => $this->l('Password:'), 'name' => 'passwd', - 'size' => 20, 'desc' => $this->l('Leave blank if no change') ) ), 'desc' => array( $this->l('Affiliates can access their data with this name and password.'), - $this->l('Front access:').' '.$uri.'modules/trackingfront/stats.php' + $this->l('Front access:').' '.$uri.'modules/trackingfront/stats.php' ) )); $this->fields_form[1] = array('form' => array( 'legend' => array( 'title' => $this->l('Commission plan'), - 'image' => '../img/admin/money.png' + 'icon' => 'icon-dollar' ), 'input' => array( array( 'type' => 'text', 'label' => $this->l('Click fee:'), 'name' => 'click_fee', - 'size' => 8, 'desc' => $this->l('Fee given for each visit.') ), array( 'type' => 'text', 'label' => $this->l('Base fee:'), 'name' => 'base_fee', - 'size' => 8, 'desc' => $this->l('Fee given for each order placed.') ), array( 'type' => 'text', 'label' => $this->l('Percent fee:'), 'name' => 'percent_fee', - 'size' => 8, 'desc' => $this->l('Percent of the sales.') ) ) @@ -264,7 +259,7 @@ class AdminReferrersControllerCore extends AdminController $this->fields_form[2] = array('form' => array( 'legend' => array( 'title' => $this->l('Technical information -- Simple mode.'), - 'image' => '../img/admin/affiliation.png' + 'icon' => 'icon-cogs' ), 'help' => true, 'input' => array( @@ -274,7 +269,7 @@ class AdminReferrersControllerCore extends AdminController 'name' => 'http_referer_like', 'cols' => 40, 'rows' => 1, - 'h3' => $this->l('HTTP referrer') + 'legend' => $this->l('HTTP referrer') ), array( 'type' => 'textarea', @@ -289,7 +284,7 @@ class AdminReferrersControllerCore extends AdminController 'name' => 'request_uri_like', 'cols' => 40, 'rows' => 1, - 'h3' => $this->l('Request URI') + 'legend' => $this->l('Request URI') ), array( 'type' => 'textarea', @@ -310,7 +305,7 @@ class AdminReferrersControllerCore extends AdminController $this->fields_form[3] = array('form' => array( 'legend' => array( 'title' => $this->l('Technical information -- Expert mode'), - 'image' => '../img/admin/affiliation.png' + 'icon' => 'icon-cogs' ), 'input' => array( array( @@ -319,7 +314,7 @@ class AdminReferrersControllerCore extends AdminController 'name' => 'http_referer_regexp', 'cols' => 40, 'rows' => 1, - 'h3' => $this->l('HTTP referrer') + 'legend' => $this->l('HTTP referrer') ), array( 'type' => 'textarea', @@ -334,7 +329,7 @@ class AdminReferrersControllerCore extends AdminController 'name' => 'request_uri_regexp', 'cols' => 40, 'rows' => 1, - 'h3' => $this->l('Request URI') + 'legend' => $this->l('Request URI') ), array( 'type' => 'textarea',