Nicer auto-styling for the Billing Details form

This commit is contained in:
Albert Santoni 2014-06-25 20:32:41 -04:00
parent fce6116d60
commit b36967a690
3 changed files with 24 additions and 0 deletions

View File

@ -8,6 +8,7 @@ class Application_Form_BillingClient extends Zend_Form
/*$this->setDecorators(array(
array('ViewScript', array('viewScript' => 'form/billing-purchase.phtml'))));*/
$client = BillingController::getClientDetails();
$this->setAttrib("id", "clientdetails_form");
$notEmptyValidator = Application_Form_Helper_ValidationTypes::overrideNotEmptyValidator();
$emailValidator = Application_Form_Helper_ValidationTypes::overrideEmailAddressValidator();

View File

@ -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">
<H2>Billing Account Details</H2>
<?php if (isset($this->errorMessage)) {?>

View File

@ -168,4 +168,22 @@
#invoices_table .unpaid
{
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%;
}