$this->Directive->dataBind();
$validate = $this->getRequired();
$this->DirectiveValidator->setVisible($validate);
+ $cssclass = $this->getCssClass();
+ if ($cssclass) {
+ $cssclass .= ' ' . $this->Directive->getCssClass();
+ $this->Directive->setCssClass($cssclass);
+ }
}
}
?>
Label="<%[ Month ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
</div>
<div id="month_range<%=$this->MonthSingle->ClientID%>" class="w3-margin month<%=$this->MonthSingle->ClientID%>" style="display: <%=$this->MonthRange->Checked ? 'block' : 'none'%>">
Label="<%[ From month ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
<com:Application.Web.Portlets.DirectiveComboBox
ID="MonthRangeTo"
Label="<%[ To month ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
</div>
<hr />
Label="<%[ Week ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
</div>
<div id="week_range<%=$this->WeekSingle->ClientID%>" class="w3-margin week<%=$this->WeekSingle->ClientID%>" style="display: <%=$this->WeekRange->Checked ? 'block' : 'none'%>">
Label="<%[ From week ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
<com:Application.Web.Portlets.DirectiveComboBox
ID="WeekRangeTo"
Label="<%[ To week ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
</div>
Label="<%[ Day ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
</div>
<div id="day_range<%=$this->DaySingle->ClientID%>" class="w3-margin day<%=$this->DaySingle->ClientID%>" style="display: <%=$this->DayRange->Checked ? 'block' : 'none'%>">
Label="<%[ From day ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
<com:Application.Web.Portlets.DirectiveComboBox
ID="DayRangeTo"
Label="<%[ To day ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
</div>
<hr />
Label="<%[ Day of week ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
</div>
<div id="day_range<%=$this->WdaySingle->ClientID%>" class="w3-margin day<%=$this->WdaySingle->ClientID%>" style="display: <%=$this->WdayRange->Checked ? 'block' : 'none'%>">
Label="<%[ From day of week ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
<com:Application.Web.Portlets.DirectiveComboBox
ID="WdayRangeTo"
Label="<%[ To day of week ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
</div>
<hr />
Label="<%[ Hour ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
<com:Application.Web.Portlets.DirectiveTextBox
ID="TimeMinAt"
Label="<%[ Minute ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
</div>
<div id="day_range<%=$this->TimeAt->ClientID%>" class="w3-margin day<%=$this->TimeAt->ClientID%>" style="display: <%=$this->TimeHourly->Checked ? 'block' : 'none'%>">
Label="<%[ Minute ]%>"
InConfig="true"
Show="true"
+ CssClass="smallbox"
/>
</div>
</div>
const GROUP_NAME = 'GroupName';
const IS_DIRECTIVE_CREATED = 'IsDirectiveCreated';
const VALIDATION_GROUP = 'ValidationGroup';
+ const CSSCLASS = 'CssClass';
public $display_directive;
public function setValidationGroup($validation_group) {
$this->setViewState(self::VALIDATION_GROUP, $validation_group);
}
+
+ public function getCssClass() {
+ return $this->getViewState(self::CSSCLASS);
+ }
+
+ public function setCssClass($cssclass) {
+ $this->setViewState(self::CSSCLASS, $cssclass);
+ }
}
?>
$this->Directive->setText($directive_value);
$validate = $this->getRequired();
$this->DirectiveValidator->setVisible($validate);
+ $cssclass = $this->getCssClass();
+ if ($cssclass) {
+ $cssclass .= ' ' . $this->Directive->getCssClass();
+ $this->Directive->setCssClass($cssclass);
+ }
}
}
?>
font-weight: bold;
text-shadow: 1px 1px 0 #fff;
}
+
+.smallbox {
+ width: 160px;
+}