Nicer auto-styling for the Billing Details form
This commit is contained in:
parent
fce6116d60
commit
b36967a690
|
@ -8,6 +8,7 @@ class Application_Form_BillingClient extends Zend_Form
|
||||||
/*$this->setDecorators(array(
|
/*$this->setDecorators(array(
|
||||||
array('ViewScript', array('viewScript' => 'form/billing-purchase.phtml'))));*/
|
array('ViewScript', array('viewScript' => 'form/billing-purchase.phtml'))));*/
|
||||||
$client = BillingController::getClientDetails();
|
$client = BillingController::getClientDetails();
|
||||||
|
$this->setAttrib("id", "clientdetails_form");
|
||||||
|
|
||||||
$notEmptyValidator = Application_Form_Helper_ValidationTypes::overrideNotEmptyValidator();
|
$notEmptyValidator = Application_Form_Helper_ValidationTypes::overrideNotEmptyValidator();
|
||||||
$emailValidator = Application_Form_Helper_ValidationTypes::overrideEmailAddressValidator();
|
$emailValidator = Application_Form_Helper_ValidationTypes::overrideEmailAddressValidator();
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<?php
|
||||||
|
$this->form->getElement("submit")->setAttrib("class", "right-align");
|
||||||
|
$this->form->getElement("country")->setAttrib("class", "right-align");
|
||||||
|
$this->form->getElement("securityqid")->setAttrib("class", "right-align");
|
||||||
|
?>
|
||||||
<div class="ui-widget ui-widget-content block-shadow clearfix padded-strong billing-panel">
|
<div class="ui-widget ui-widget-content block-shadow clearfix padded-strong billing-panel">
|
||||||
<H2>Billing Account Details</H2>
|
<H2>Billing Account Details</H2>
|
||||||
<?php if (isset($this->errorMessage)) {?>
|
<?php if (isset($this->errorMessage)) {?>
|
||||||
|
|
|
@ -168,4 +168,22 @@
|
||||||
#invoices_table .unpaid
|
#invoices_table .unpaid
|
||||||
{
|
{
|
||||||
color: #ff0000;
|
color: #ff0000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** This form is the separate one on the Billing Account Details page (BillingClient.php) */
|
||||||
|
#clientdetails_form dt {
|
||||||
|
float: left;
|
||||||
|
clear: both;
|
||||||
|
width: 50%;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
#clientdetails_form dd {
|
||||||
|
float: left;
|
||||||
|
margin-left: 0px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
#clientdetails_form .right-align
|
||||||
|
{
|
||||||
|
/*text-align: right;*/
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
Loading…
Reference in New Issue