<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
<?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
<li class="fields">
<?php if ($_dob->isEnabled()): ?>
<div class="field"><?php echo $_dob->setDate($this->getFormData()->getDob())->toHtml() ?></div>
<?php endif ?>
<?php if ($_gender->isEnabled()): ?>
<div class="field"><?php echo $_gender->setGender($this->getFormData()->getGender())->toHtml() ?></div>
<?php endif ?>
</li>
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
<?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
<li class="fields">
<?php if ($_dob->isEnabled()): ?>
<div class="field"><?php echo $_dob->setDate($this->getCustomer()->getDob())->toHtml() ?></div>
<?php endif ?>
<?php if ($_gender->isEnabled()): ?>
<div class="field"><?php echo $_gender->setGender($this->getCustomer()->getGender())->toHtml() ?></div>
<?php endif ?>
</li>