first success
This commit is contained in:
parent
15a2cbd840
commit
1869017ff3
2 changed files with 17 additions and 17 deletions
|
|
@ -60,48 +60,48 @@ sub definition {
|
||||||
fieldType => "template",
|
fieldType => "template",
|
||||||
namespace => "AdSku",
|
namespace => "AdSku",
|
||||||
defaultValue => 'eqb9sWjFEVq0yHunGV8IGw', # TODO
|
defaultValue => 'eqb9sWjFEVq0yHunGV8IGw', # TODO
|
||||||
label => $i18n->get("purchase template"),
|
label => $i18n->get("property purchase template"),
|
||||||
hoverHelp => $i18n->get("purchase template help"),
|
hoverHelp => $i18n->get("property purchase template help"),
|
||||||
},
|
},
|
||||||
manageTemplate => {
|
manageTemplate => {
|
||||||
tab => "display",
|
tab => "display",
|
||||||
fieldType => "template",
|
fieldType => "template",
|
||||||
namespace => "AdSku",
|
namespace => "AdSku",
|
||||||
defaultValue => 'eqb9sWjFEVq0yHunGV8IGw', # TODO
|
defaultValue => 'eqb9sWjFEVq0yHunGV8IGw', # TODO
|
||||||
label => $i18n->get("manage template"),
|
label => $i18n->get("property manage template"),
|
||||||
hoverHelp => $i18n->get("manage template help"),
|
hoverHelp => $i18n->get("property manage template help"),
|
||||||
},
|
},
|
||||||
adSpace => {
|
adSpace => {
|
||||||
tab => "properties",
|
tab => "properties",
|
||||||
fieldType => "AdSpace",
|
fieldType => "AdSpace",
|
||||||
namespace => "AdSku",
|
namespace => "AdSku",
|
||||||
label => $i18n->get("ad space"),
|
label => $i18n->get("property ad space"),
|
||||||
hoverHelp => $i18n->get("ad Space help"),
|
hoverHelp => $i18n->get("property ad Space help"),
|
||||||
},
|
},
|
||||||
pricePerClick => {
|
pricePerClick => {
|
||||||
tab => "properties",
|
tab => "properties",
|
||||||
defaultValue => '0.00',
|
defaultValue => '0.00',
|
||||||
fieldType => "float",
|
fieldType => "float",
|
||||||
label => $i18n->get("price per click"),
|
label => $i18n->get("property price per click"),
|
||||||
hoverHelp => $i18n->get("price per click help"),
|
hoverHelp => $i18n->get("property price per click help"),
|
||||||
},
|
},
|
||||||
pricePerImpression => {
|
pricePerImpression => {
|
||||||
tab => "properties",
|
tab => "properties",
|
||||||
defaultValue => '0.00',
|
defaultValue => '0.00',
|
||||||
fieldType => "float",
|
fieldType => "float",
|
||||||
label => $i18n->get("price per impression"),
|
label => $i18n->get("property price per impression"),
|
||||||
hoverHelp => $i18n->get("price per impression help"),
|
hoverHelp => $i18n->get("property price per impression help"),
|
||||||
},
|
},
|
||||||
clickDiscounts => {
|
clickDiscounts => {
|
||||||
fieldType => 'textarea',
|
fieldType => 'textarea',
|
||||||
label => $i18n->get('click discounts'),
|
label => $i18n->get('property click discounts'),
|
||||||
hoverHelp => $i18n->get('click discounts help'),
|
hoverHelp => $i18n->get('property click discounts help'),
|
||||||
defaultValue => '',
|
defaultValue => '',
|
||||||
},
|
},
|
||||||
impressionDiscounts => {
|
impressionDiscounts => {
|
||||||
fieldType => 'textarea',
|
fieldType => 'textarea',
|
||||||
label => $i18n->get('impression discounts'),
|
label => $i18n->get('property impression discounts'),
|
||||||
hoverHelp => $i18n->get('impression discounts help'),
|
hoverHelp => $i18n->get('property impression discounts help'),
|
||||||
defaultValue => '',
|
defaultValue => '',
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
@ -110,8 +110,8 @@ sub definition {
|
||||||
if ($session->setting->get("useKarma")) {
|
if ($session->setting->get("useKarma")) {
|
||||||
$properties{ karma } = {
|
$properties{ karma } = {
|
||||||
type => 'integer',
|
type => 'integer',
|
||||||
label => $i18n->get('adsku karma'),
|
label => $i18n->get('property adsku karma'),
|
||||||
hoverHelp => $i18n->get('adsku karma description'),
|
hoverHelp => $i18n->get('property adsku karma description'),
|
||||||
defaultvalue => 0,
|
defaultvalue => 0,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ Returns a group pull-down field. A group pull down provides a select list that p
|
||||||
|
|
||||||
sub toHtml {
|
sub toHtml {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
$self->set('options', { map { $_->getId => $_->getName } ( WebGUI::AdSpace->getAdSpaces() ) } );
|
$self->set('options', { map { $_->getId => $_->get('name') } ( @{ WebGUI::AdSpace->getAdSpaces($self->session) } ) } );
|
||||||
return $self->SUPER::toHtml();
|
return $self->SUPER::toHtml();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue