</fieldset> <div class="clearfix"></div> </div> <div class="clearfix"></div> <div class="form-actions"> <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->event->isNewRecord ? 'Create' : 'Save')); ?> </div> <?php $this->endWidget(); PostItemHelper::registerExcerptScripts('event-form'); /* Yii::app()->clientScript->registerScript(__FILE__.'#'.$this->getAction()->getId(), <<<EOD jQuery(document).on('submit','#event-form', function(e){ var excerpt=''; $('p',$('<div>'+$('#PostItem_description').getCode()+'</div>')).each(function(idx,value){excerpt+=$(value).text()+" ";}); if(excerpt.length>500) excerpt=excerpt.substring(0,450); $('#PostItem_excerpt').val(excerpt); }); EOD , CClientScript::POS_READY); */ ?>
<?php //echo $form->textFieldRow($model->workshop,'workshop_image',array('class'=>'span12','maxlength'=>100)); ?> <div class="form-actions"> <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->workshop->isNewRecord ? $isEmp ? 'Request' : 'Create' : 'Update')); ?> </div> <?php $this->endWidget(); PostItemHelper::registerExcerptScripts('workshop-form'); /* Yii::app()->clientScript->registerScript(__FILE__.'#'.$this->getAction()->getId(), <<<EOD jQuery(document).on('submit','#workshop-form', function(e){ var excerpt=''; $('p',$('<div>'+$('#PostItem_description').getCode()+'</div>')).each(function(idx,value){excerpt+=$(value).text()+" ";}); if(excerpt.length>500) excerpt=excerpt.substring(0,450); $('#PostItem_excerpt').val(excerpt); }); EOD , CClientScript::POS_READY); ?> */ ?>
"> <div class="span2"> <span class="label label-info label-date"> <?php if ($data['is_running']) { echo $data['start_date'] . " – " . $data['end_date']; } else { echo Yii::t('view', 'workshop.not_running'); } ?> </span> </div> <div class="span10 rowspan"> <?php $workshopContent = $this->widget('bootstrap.widgets.TbBox', array('title' => $data['title'] . PostItemHelper::drawPostItemLabel(Workshop::POST_TYPE, $data['workshop_cat_name']), 'content' => $this->renderPartial('//layouts/_workshop_content', array('data' => $data), true)), true); if (!Yii::app()->user->isGuest) { echo CHtml::link($workshopContent, array('workshop/workshop/view', 'id' => $data['id']), array('class' => 'posting-link')); } else { if (Yii::app()->user->isGuest) { echo CHtml::link($workshopContent, array('/auth/login'), array('class' => 'posting-link')); } } ?> <blockquote class="span3 facilitator"> <p> <strong>Facilitator</strong> <small> <?php
<?php if (!$model->certification->isNewRecord) { ?> <div class="control-group "> <div class="controls"><span class="label label-info"><i class="icon-info"></i> This is the current image.</span><br/><br/><a class="thumbnail"><?php echo chtml::image($model->certification->getCertImageUrl(), 'certification image'); ?> </a></div> </div> <?php } ?> <div class="form-actions"> <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->certification->isNewRecord ? 'Create' : 'Save')); ?> </div> <?php $this->endWidget(); PostItemHelper::registerExcerptScripts('certification-form'); Yii::app()->clientScript->registerScript(__FILE__ . '#' . $this->getAction()->getId(), <<<EOD \t\tjQuery(document).on('change','#Certification_provider_id',function(e){ \t\t\tvar selectedProvider=\$(this).find('option:selected'); \t\t\tif(\$(this).val()!='')\$('#Certification_provider').val(selectedProvider.text()); \t\t}); EOD , CClientScript::POS_READY);
<?php /* @var SiteController $this*/ ?> <div id="article_listings"> <div class="date_time"> <?php echo $data['date_created']; ?> </div> <div class="news_head"> <?php $this->widget('bootstrap.widgets.TbBox', array('title' => $data['title'] . PostItemHelper::drawPostItemLabel($data['post_type_id']), 'content' => $this->renderPartial('//layouts/_article_content', array('data' => $data), true))); ?> </div> </div>