Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mage_Customer_Block_Form_Register
- <?php
- /**
- * Magento
- *
- * NOTICE OF LICENSE
- *
- * This source file is subject to the Academic Free License (AFL 3.0)
- * that is bundled with this package in the file LICENSE_AFL.txt.
- * It is also available through the world-wide-web at this URL:
- * http://opensource.org/licenses/afl-3.0.php
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@magentocommerce.com so we can send you a copy immediately.
- *
- * DISCLAIMER
- *
- * Do not edit or add to this file if you wish to upgrade Magento to newer
- * versions in the future. If you wish to customize Magento for your
- * needs please refer to http://www.magentocommerce.com for more information.
- *
- * @category design
- * @package base_default
- * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
- */
- ?>
- <?php
- /**
- * Create account form template
- *
- * @see app/design/frontend/base/default/template/customer/form/register.phtml
- */
- /** @var $this Mage_Customer_Block_Form_Register */
- ?>
- <?php //echo $this->getLayout()->createBlock('cms/block')->setBlockId('identification_top')->toHtml();?>
- <div class="middle-bottom-blk account-create">
- <div class="container">
- <div class="row">
- <div class="page-title">
- <h1><?php echo $this->__('Create an Account') ?></h1>
- </div>
- <?php echo $this->getChildHtml('form_fields_before')?>
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
- <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate">
- <?php echo $this->getBlockHtml('formkey') ?>
- <div class="dashboard-rt">
- <div class="panel panel-default">
- <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
- <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
- <div class="panel-heading">
- <h2 class="pull-left"><?php echo $this->__('Personal Information') ?></h2>
- <div class="clearfix"></div>
- </div>
- <div class="panel-body">
- <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getFormData())->setForceUseCustomerAttributes(true)->toHtml() ?>
- <div class="form-group">
- <label for="email_address" class="required"><?php echo $this->__('Email Address') ?><em>*</em></label>
- <input placeholder="Email" type="email" name="email" id="email_address" value="<?php echo $this->escapeHtml($this->getFormData()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="form-control input-text validate-email required-entry" />
- </div>
- <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
- <?php if ($_dob->isEnabled()): ?>
- <li><?php echo $_dob->setDate($this->getFormData()->getDob())->toHtml() ?></li>
- <?php endif ?>
- <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
- <?php if ($_taxvat->isEnabled()): ?>
- <li><?php echo $_taxvat->setTaxvat($this->getFormData()->getTaxvat())->toHtml() ?></li>
- <?php endif ?>
- <?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
- <?php if ($_gender->isEnabled()): ?>
- <li><?php echo $_gender->setGender($this->getFormData()->getGender())->toHtml() ?></li>
- <?php endif ?>
- </div>
- </div>
- <?php if($this->getShowAddressFields()): ?>
- <div class="fieldset">
- <input type="hidden" name="create_address" value="1" />
- <h2 class="legend"><?php echo $this->__('Address Information') ?></h2>
- <ul class="form-list">
- <li class="fields">
- <div class="field">
- <label for="company"><?php echo $this->__('Company') ?></label>
- <div class="input-box">
- <input type="text" name="company" id="company" value="<?php echo $this->escapeHtml($this->getFormData()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" />
- </div>
- </div>
- <div class="field">
- <label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
- <div class="input-box">
- <input type="text" name="telephone" id="telephone" value="<?php echo $this->escapeHtml($this->getFormData()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" />
- </div>
- </div>
- </li>
- <?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
- <li class="wide">
- <label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
- <div class="input-box">
- <input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getFormData()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text <?php echo $_streetValidationClass ?>" />
- </div>
- </li>
- <?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
- <?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
- <li class="wide">
- <div class="input-box">
- <input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getFormData()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address %s', $_i) ?>" id="street_<?php echo $_i ?>" class="input-text <?php echo $_streetValidationClass ?>" />
- </div>
- </li>
- <?php endfor; ?>
- <li class="fields">
- <div class="field">
- <label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
- <div class="input-box">
- <input type="text" name="city" value="<?php echo $this->escapeHtml($this->getFormData()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="city" />
- </div>
- </div>
- <div class="field">
- <label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
- <div class="input-box">
- <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
- <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
- </select>
- <script type="text/javascript">
- //<![CDATA[
- $('region_id').setAttribute('defaultValue', "<?php echo $this->getFormData()->getRegionId() ?>");
- //]]>
- </script>
- <input type="text" id="region" name="region" value="<?php echo $this->escapeHtml($this->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
- </div>
- </div>
- </li>
- <li class="fields">
- <div class="field">
- <label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
- <div class="input-box">
- <input type="text" name="postcode" value="<?php echo $this->escapeHtml($this->getFormData()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
- </div>
- </div>
- <div class="field">
- <label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
- <div class="input-box">
- <?php echo $this->getCountryHtmlSelect() ?>
- </div>
- </div>
- </li>
- </ul>
- <input type="hidden" name="default_billing" value="1" />
- <input type="hidden" name="default_shipping" value="1" />
- </div>
- <?php endif; ?>
- <div class="panel panel-default">
- <div class="panel-heading">
- <h2 class="pull-left"><?php echo $this->__('Login Information') ?></h2>
- <div class="clearfix"></div>
- </div>
- <div class="panel-body">
- <div class="form-group">
- <label for="password" class="required"><?php echo $this->__('Password') ?><em>*</em></label>
- <input placeholder="Enter Password" type="password" name="password" id="password" title="<?php echo $this->__('Password') ?>" class="form-control input-text required-entry validate-password" />
- </div>
- <div class="form-group">
- <label for="confirmation" class="required"><?php echo $this->__('Confirm Password') ?><em>*</em></label>
- <input placeholder="Confirm Password" type="password" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" class="form-control input-text required-entry validate-cpassword" />
- </div>
- <?php echo $this->getChildHtml('form.additional.info'); ?>
- <?php echo $this->getChildHtml('persistent.remember.me'); ?>
- </div>
- <?php echo $this->getChildHtml('persistent.remember.me.tooltip'); ?>
- </div>
- <div class="clearfix sve">
- <em>* Required Fields</em>
- </div>
- <a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>" class="btn btn-hdr btn-info reg"><?php echo $this->__('Back') ?></a>
- <button class=" btn btn-hdr btn-acard pull-right" type="submit" title="<?php echo $this->__('Submit') ?>"><?php echo $this->__('Submit') ?></button>
- <?php if (Mage::helper('checkout')->isContextCheckout()): ?>
- <input name="context" type="hidden" value="checkout" />
- <?php endif; ?>
- </div>
- </form>
- <script type="text/javascript">
- //<![CDATA[
- var dataForm = new VarienForm('form-validate', true);
- <?php if($this->getShowAddressFields()): ?>
- new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
- <?php endif; ?>
- //]]>
- </script>
- </div>
- </div>
- </div>
- class Comp_Seller_Block_Account_Register extends Mage_Customer_Block_Form_Register
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement