Reorganize AdSpace properties for prices and permissions.
Remove click and impression prices. Remove groupToPurchase. Expose minimum clicks and impressions to the UI.
This commit is contained in:
parent
7b15f13ffb
commit
fe253042ea
4 changed files with 62 additions and 23 deletions
|
|
@ -345,6 +345,20 @@ sub www_editAdSpace {
|
|||
hoverHelp => $i18n->get("description help"),
|
||||
label => $i18n->get("description"),
|
||||
);
|
||||
$f->integer(
|
||||
name => "minimumClicks",
|
||||
value => $session->form->get('minimumClicks') || ($adSpace && $adSpace->get('minimumClicks')),
|
||||
defaultValue => 1000,
|
||||
hoverHelp => $i18n->get("minimum clicks help"),
|
||||
label => $i18n->get("minimum clicks"),
|
||||
);
|
||||
$f->integer(
|
||||
name => "minimumImpressions",
|
||||
value => $session->form->get('minimumImpressions') || ($adSpace && $adSpace->get('minimumImpressions')),
|
||||
defaultValue => 1000,
|
||||
hoverHelp => $i18n->get("minimum impressions help"),
|
||||
label => $i18n->get("minimum impressions"),
|
||||
);
|
||||
$f->integer(
|
||||
name => "width",
|
||||
value => $session->form->get('width') || ($adSpace && $adSpace->get('width')),
|
||||
|
|
@ -396,11 +410,13 @@ sub www_editAdSpaceSave {
|
|||
my $i18n = WebGUI::International->new( $session, "AdSpace" );
|
||||
|
||||
my %properties = (
|
||||
name => $session->form->process("name", "text"),
|
||||
title => $session->form->process("title", "text"),
|
||||
description => $session->form->process("description", "textarea"),
|
||||
width => $session->form->process("width", "integer"),
|
||||
height => $session->form->process("height", "integer"),
|
||||
name => $session->form->process("name", "text"),
|
||||
title => $session->form->process("title", "text"),
|
||||
description => $session->form->process("description", "textarea"),
|
||||
width => $session->form->process("width", "integer"),
|
||||
height => $session->form->process("height", "integer"),
|
||||
minimumClicks => $session->form->process("minimumClicks", "integer"),
|
||||
minimumImpressions => $session->form->process("minimumImpressions", "integer"),
|
||||
);
|
||||
|
||||
### Validate form entry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue