Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* @var $this CustomerController */
- /* @var $model Customer */
- $this->breadcrumbs=array(
- 'Customers'=>array('index'),
- 'Create',
- );
- $this->menu=array(
- array('label'=>'Customer Menu', 'itemOptions'=>array('class'=>'nav-header')),
- array('label'=>'Manage Customers', 'url'=>array('admin'),'icon'=>'icon-wrench'),
- );
- ?>
- <div class="content_left">
- <div class="progress_bar">
- Customer Information <span id="percent"></span> Complete
- <?php
- $this->widget('bootstrap.widgets.TbProgress', array(
- 'striped'=>true,
- 'animated'=>true,
- ));
- ?>
- </div>
- <?php
- $box = $this->beginWidget('bootstrap.widgets.TbBox', array(
- 'title' => 'Create Customer',
- 'headerIcon'=>'icon-plus',
- // when displaying a table, if we include bootstra-widget-table class
- // the table will be 0-padding to the box
- 'htmlOptions' => array('class'=>'bootstrap-widget-table')
- ));?>
- <div id="crmbox">
- <?php /** @var BootActiveForm $form */
- $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
- 'id'=>'customer-form',
- 'type'=>'horizontal',
- 'enableAjaxValidation'=>false,
- )); ?>
- <!--<?php
- $form=$this->beginWidget('CActiveForm', array(
- 'id'=>'customer-form',
- 'enableAjaxValidation'=>false,
- )); ?>-->
- <p class="note" style="color:#555;font-weight:bold;font-style: italic"><span class="label label-important">Important! </span> Fields with <span class="required">*</span> are required.</p>
- <fieldset><table><tbody>
- <?php echo $this->renderPartial('_form', array('model'=>$customer, 'form' => $form)); ?>
- <?php
- foreach($address as $key=>$value)
- {
- echo $this->renderPartial('_address', array('model'=>$value,'key'=>$key, 'form' => $form));
- }
- ?>
- <!-------------------------------------- ADDRESS INPUT ----------------------------->
- </tbody></table></fieldset>
- <div class="btn-toolbar" style="float:right;margin-right:70px;">
- <?php
- $this->widget('bootstrap.widgets.TbButton', array(
- 'buttonType'=>'submit',
- 'type'=>'primary',
- 'size'=>'large',
- 'label'=>'Create',
- 'loadingText'=>'Creating...',
- 'htmlOptions'=>array('id'=>'buttonStateful'),
- ));
- $this->widget('bootstrap.widgets.TbButtonGroup', array(
- 'size'=>'large',
- 'buttons'=>array(
- array('label'=>'Cancel', 'url'=>array('/crm/customer')),),
- ));
- ?>
- </div>
- <!--<div class="row buttons">
- <?php
- $model = $address;
- echo CHtml::submitButton($customer->isNewRecord ? 'Create' : 'Save'); ?>
- </div>-->
- <?php $this->endWidget(); ?>
- <?php $this->endWidget();?><!-- widget of form -->
- <?php $this->endWidget(); ?><!-- widget of box-->
- </div>
- </div>
- <!-- right part of content
- <div class="content_right">
- <?php
- $this->widget('bootstrap.widgets.TbMenu', array(
- 'type'=>'list',
- 'items' => array(
- array('label'=>'Customer Relation Management Menu', 'itemOptions'=>array('class'=>'nav-header')),
- array('label'=>'Customers', 'url'=>array('/customers/customer'),'icon'=>'icon-list'),
- array('label'=>'Contacts', 'url'=>array('/customers/contact'),'icon'=>'icon-list'),
- array('label'=>'Leads', 'url'=>array('/customers/lead'),'icon'=>'icon-list'),
- '',
- array('label'=>'Customer Menu', 'itemOptions'=>array('class'=>'nav-header')),
- array('label'=>'Manage Customer', 'url'=>array('/customers/customer/admin'),'icon'=>'icon-wrench'),
- )
- ));
- ?>
- </div> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement