public function renderMoreButton() { $pager = Yii::createComponent(array('class' => Yii::app()->controller->pathAliasBase . 'components.MobileRecordIndexPager', 'pages' => $this->dataProvider->getPagination())); $currentPage = $pager->getCurrentPage(false); $pageCount = $pager->getPageCount(); //$href = $pager->createPageUrl ($currentPage + 1), //$href = UrlUtil::mergeParams (Yii::app()->request->url, array ( //)); if ($currentPage + 1 < $pageCount) { $html = CHtml::openTag('a', array('href' => $pager->createPageUrl($currentPage + 1), 'class' => 'more-button record-list-item')); $html .= X2Html::fa('ellipsis-h'); $html .= '<span>' . CHtml::encode(Yii::t('app', 'More')) . '</span>'; $html .= "</a>"; echo $html; } }
<ul id="top-contacts-list"> <?php $bookmarkInfo = array(); foreach ($bookmarkRecords as $record) { $bookmarkInfo[get_class($record)][] = $record->id; echo '<li id="contact' . $record->id . '">'; if ($record instanceof Contacts) { $link = '<strong>' . CHtml::encode($record->firstName) . ' ' . CHtml::encode($record->lastName) . '</strong><br />' . CHtml::encode($record->phone); } elseif (isset($record->name)) { $link = '<strong>' . CHtml::encode($record->name) . '</strong><br />'; } if (isset($link) && $record->asa('X2LinkableBehavior')) { echo CHtml::link($link, $record->url); } unset($link); echo CHtml::link(X2Html::fa('fa-times'), '#', array('class' => 'delete-link', 'onclick' => "\n x2.topContacts.removeTopContact ('" . $record->id . "', " . CJSON::encode(get_class($record)) . "); \n return false;\n ")); echo "</li>\n"; } if (isset(Yii::app()->controller->modelClass) && is_subclass_of(Yii::app()->controller->modelClass, 'X2Model') && Yii::app()->controller->action->id == 'view' && $viewId != null && (!isset($bookmarkInfo[Yii::app()->controller->modelClass]) || !in_array($viewId, $bookmarkInfo[Yii::app()->controller->modelClass]))) { // must not already be in Top Contacts $currentRecord = X2Model::model(Yii::app()->controller->modelClass)->findByPk($viewId); if ($currentRecord instanceof Contacts) { $name = CHtml::encode($currentRecord->firstName) . ' ' . CHtml::encode($currentRecord->lastName); } elseif (isset($currentRecord->name)) { $name = CHtml::encode($currentRecord->name); } else { $name = ''; } echo '<li>'; echo CHtml::link(Yii::t('app', 'Add {name}', array('{name}' => $name)), '#', array('onclick' => "\n x2.topContacts.addTopContact('" . $viewId . "', " . CJSON::encode(Yii::app()->controller->modelClass) . "); \n return false;")); echo "</li>\n";
/** * renders boolean fields in view layouts as icons, instead of as unchecked checkboxes. */ protected function renderBoolean($field, $makeLinks, $textOnly, $encode) { $fieldName = $field->fieldName; $bool = $this->owner->{$fieldName}; if ($textOnly) { $text = $bool ? Yii::t('app', 'Yes') : Yii::t('app', 'No'); return $this->render($text, $encode); } $html = $bool ? X2Html::fa('check', array('class' => 'field-checked')) : X2Html::fa('times', array('class' => 'field-unchecked')); return $html; }
public function renderAttribute($fieldName, $makeLinks = true, $textOnly = true, $encode = true) { switch ($fieldName) { case 'image': $imageLink = $this->getImage(true); return '<div class="media-image"> <div class="full-size-screen">' . X2Html::fa('expand') . Yii::t('media', 'View Full Size') . ' </div> ' . $imageLink . ' </div>'; break; } return call_user_func_array('parent::' . __FUNCTION__, func_get_args()); }
<div class="icon-container"> <?php echo X2Html::fa('fa-bullhorn'); ?> </div> <div class="icon-description"> <p> <?php echo CHtml::link(Yii::t('app', 'Marketing'), array('/marketing/marketing/index')); ?> </p> </div> </div> <div class="row"> <div class="icon-container"> <?php echo X2Html::fa('fa-bullseye'); ?> </div> <div class="icon-description"> <p> <?php echo CHtml::link(Yii::t('opportunities', 'Opportunities'), array('/opportunities/opportunities/index')); ?> </p> </div> </div> <div class="row"> <div class="icon-container"> <?php echo X2Html::x2icon('package'); ?> </div>
<ul id='email-settings-menu' class='x2-popup-dropdown-menu' style='display: none;'> <li> <span><?php echo Yii::t('app', 'Set Default Template'); ?> </span> </li> </ul> <?php } ?> <?php // echo X2Html::fa ('fa-expand', array ( // 'class' => 'email-fullscreen-button x2-icon-button fa-lg x2-hide', // )); echo X2Html::fa('fa-level-down', array('class' => 'email-reattach-button x2-icon-button fa-lg x2-hide', 'style' => 'visibility: hidden;', 'title' => CHtml::encode(Yii::t('app', 'Reattach email form')))); ?> </div> <?php $formConfig = array('enableAjaxValidation' => false, 'method' => 'post'); $form = $this->beginWidget('CActiveForm', $formConfig); echo X2Html::loadingIcon(array('id' => 'email-sending-icon', 'style' => 'display: none')); echo $this->specialFields; echo $form->hiddenField($this->model, 'modelId'); echo CHtml::hiddenField('associationType', $associationType); echo $form->hiddenField($this->model, 'modelName'); echo CHtml::hiddenField('contactFlag', $this->contactFlag); ?> <div class='email-inputs form'> <div class="row"> <div id="inline-email-errors" class="error" style="display:none"></div>
/** * renders inline edit buttons in the extra column */ public function renderInlineButtons() { $html = '<div class="inline-edit-icons">'; $html .= CHtml::link(X2Html::fa('fa-edit'), '#', array('class' => 'edit-icon active', 'title' => Yii::t('app', 'Edit field'))); $html .= CHtml::link(X2Html::fa('fa-times-circle'), '#', array('class' => 'cancel-icon', 'title' => Yii::t('app', 'Cancel changes'))); $html .= CHtml::link(X2Html::fa('fa-check-circle'), '#', array('class' => 'confirm-icon', 'title' => Yii::t('app', 'Confirm changes'))); $html .= '</div>'; return $html; }
public function photoAttachmentButton() { $html = ''; $html .= "<div class='photo-attach-button icon-button'>" . X2Html::fa('camera') . '</div>'; return $html; }
<?php echo MobileFormatter::formatDateRelative($data->timestamp); ?> </div> <div class='controls'> <?php if ($showComments) { ?> <div data-x2-url='<?php echo $this->createAbsoluteUrl('/profile/mobileViewEvent/id/' . $data->id); ?> ' class='comments'> <div> <?php echo X2Html::fa('comment'); ?> </div> </div> <div class='comment-count'> <?php if ($commentCount = $data->comments()->count()) { echo $commentCount; } ?> </div> <?php } ?> </div> </div>
$fieldHtml = $model->renderAttribute($field->fieldName, true, false); } } if ($fieldHtml === '') { $htmlString .= ' '; } else { $htmlString .= $fieldHtml; } $htmlString .= '</span>'; } } unset($item); if ($inlineEdit) { $htmlString .= CHtml::link(X2Html::fa('fa-edit'), '#', array('class' => 'edit-icon active', 'title' => Yii::t('app', 'Edit field'))); $htmlString .= CHtml::link(X2Html::fa('fa-check-circle'), '#', array('class' => 'confirm-icon', 'title' => Yii::t('app', 'Confirm changes'))); $htmlString .= CHtml::link(X2Html::fa('fa-times-circle'), '#', array('class' => 'cancel-icon', 'title' => Yii::t('app', 'Cancel changes'))); } $htmlString .= '</div>'; $htmlString .= '</div>'; } } $htmlString .= '</td>'; } } unset($col); $htmlString .= '</tr>'; } $htmlString .= '</table></div>'; } unset($row); $htmlString .= '</div>';
?> <div id="campaign-attachments-wrapper" class="x2-layout form-view"> <div class="formSection collapsible <?php echo $showAttachments ? 'showSection' : ''; ?> "> <div class="formSectionHeader"> <a href="javascript:void(0)" class="formSectionHide"> <?php echo X2Html::fa('fa-caret-down'); ?> </a> <a href="javascript:void(0)" class="formSectionShow"> <?php echo X2Html::fa('fa-caret-right'); ?> </a> <span class="sectionTitle"><?php echo Yii::t('app', 'Attachments'); ?> </span> </div> <div id="campaign-attachments" class="tableWrapper" style="padding: 5px; <?php echo $showAttachments ? '' : 'display: none;'; ?> "> <div style="min-height: 100px;"> <?php $attachments = $model->attachments;
/** * Renders a section header * @param array $section Section Options */ public function renderSectionHeader($section) { $html = X2Html::openTag('div', array('class' => 'formSectionHeader')); // Add the collapse Icon if ($section['collapsible']) { $html .= X2Html::link(X2Html::fa('fa-caret-down'), 'javascript:void(0)', array('class' => 'formSectionHide')); $html .= X2Html::link(X2Html::fa('fa-caret-right'), 'javascript:void(0)', array('class' => 'formSectionShow')); } $html .= X2Html::tag('span', array('class' => 'sectionTitle', 'title' => addslashes($section['title'])), Yii::t(strtolower(Yii::app()->controller->id), $section['title'])); $html .= '</div>'; return $html; }
if ($model instanceof Profile) { echo CHtml::encode(Modules::displayName(false, 'Users')); } else { echo CHtml::encode($this->getModuleObj()->getDisplayName(false)); } ?> </h1> </div> <?php if ($model instanceof X2Model) { if ($this->hasMobileAction('mobileUpdate') && Yii::app()->user->checkAccess(ucfirst($this->module->name) . 'Update', $authParams)) { ?> <div class='refresh-content' data-refresh-selector='.header-content-right'> <div class='header-content-right'> <div class='edit-button ui-btn icon-btn' data-x2-url='<?php echo $this->createAbsoluteUrl('mobileUpdate', array('id' => $model->id)); ?> '> <?php echo X2Html::fa('pencil'); ?> </div> </div> </div> <?php } } $this->renderPartial('application.modules.mobile.views.mobile._recordDetails', array('model' => $model));
public static function minimizeButton(array $htmlOptions = array(), $hideableSelector = null, $left = true, $defaultOpen = false) { $orientation = $left ? 'left' : 'right'; if ($hideableSelector) { $js = "\$('{$hideableSelector}').toggle ();"; } else { $js = ""; } $html = X2Html::fa('fa-caret-' . $orientation, array_merge(array('style' => !$defaultOpen ? '' : 'display: none;', 'onClick' => '$(this).hide (); $(this).next ().show ();' . $js . '; event.stopPropagation (); event.preventDefault ();'), $htmlOptions)) . X2Html::fa('fa-caret-down', array_merge(array('style' => $defaultOpen ? '' : 'display: none;', 'onClick' => '$(this).hide (); $(this).prev ().show ();' . $js . '; event.stopPropagation (); event.preventDefault ();'), $htmlOptions)); return $html; }
public function getIcon() { return X2Html::fa($this->type === 'folder' ? 'folder-open' : 'file-text'); }
'> <?php echo X2Html::x2icon('funnel'); ?> </a> <a href='#' id='drag-and-drop-view-button' title='<?php echo Yii::t('workflow', 'Pipeline View'); ?> ' class='x2-button<?php echo $perStageWorkflowView ? '' : ' disabled-link'; ?> '> <?php echo X2Html::fa('long-arrow-right'); ?> </a> </div> <a href='#' id='workflow-filters' class='filter-button right x2-button' title='<?php echo Yii::t('workflow', 'Filters'); ?> ' <?php echo $perStageWorkflowView ? 'style="display: none;"' : ''; ?> ><span></span> </a> <a href='#' id='add-a-deal-button' class='right x2-button'
echo CHtml::link(CHtml::tag('span', array('class' => 'feed-make-unimportant-icon fa fa-exclamation-circle inactive-icon', 'title' => CHtml::encode(Yii::t('profile', 'Make unimportant'))), ' '), '#', array('class' => 'unimportant-link', 'id' => $data->id . '-unimportant-link', 'style' => $important ? '' : 'display:none;')); ?> <?php if (Yii::app()->params->isAdmin) { // echo " | "; $sticky = $data->sticky == 1; echo CHtml::link(CHtml::tag('span', array('class' => 'sticky-icon fa fa-thumb-tack active-icon'), ' '), '#', array('class' => 'sticky-link x2-hint', 'id' => $data->id . '-sticky-link', 'style' => $sticky ? 'display:none;' : '', 'title' => Yii::t('app', 'Making an event sticky will cause it to always ' . 'show up at the top of the feed.'))); echo CHtml::link(CHtml::tag('span', array('class' => 'unsticky-icon fa fa-thumb-tack inactive-icon', 'title' => Yii::t('profile', 'Undo Sticky')), ' '), '#', array('class' => 'unsticky-link', 'id' => $data->id . '-unsticky-link', 'style' => $sticky ? '' : 'display:none;')); } ?> <?php $likeDisplay = $likedPost ? 'display:none' : ''; $unlikeDisplay = !$likedPost ? 'display:none' : ''; // echo " | "; echo CHtml::tag('span', array('id' => $data->id . '-like-button', 'class' => 'like-button', 'style' => $likeDisplay), X2Html::fa('fa-thumbs-up', array('class' => 'like-icon active-icon', 'title' => CHtml::encode(Yii::t('app', 'Like this post'))))); echo CHtml::link(CHtml::tag('span', array('class' => 'unlike-icon fa fa-thumbs-up inactive-icon', 'title' => CHtml::encode(Yii::t('app', 'Unlike this post'))), ' '), '#', array('id' => $data->id . '-unlike-button', 'class' => 'unlike-button', 'style' => $unlikeDisplay)); echo CHtml::link($likeCount, '#', array('id' => $data->id . '-like-count', 'class' => 'like-count active-icon')); // echo " | "; echo CHtml::link(CHtml::tag('span', array('class' => 'broadcast-icon fa fa-bullhorn active-icon', 'title' => CHtml::encode(Yii::t('app', 'Broadcast this post'))), ' '), '#', array('id' => $data->id . '-broadcast-button', 'class' => 'broadcast-button')); ?> </span> </div> <?php ?> </div> <div id="<?php echo $data->id; ?> -like-history-box" class="like-history-box" style="display:none;clear:both;">
public function getIcon() { return X2Html::fa($this->labelIconClass, array('class' => 'widget-label-icon')); }
</a> <div id="example-box" style="display:none;"><img src="<?php echo Yii::app()->theme->getBaseUrl() . "/images/examplecsv.png"; ?> "/></div> <br><br> </div> <div class="form" style="width:600px;"> <?php unset($_SESSION['model']); echo "<h3>" . Yii::t('admin', 'Upload File') . "</h3>"; echo CHtml::form('importModels', 'post', array('enctype' => 'multipart/form-data', 'id' => 'importModels')); echo CHtml::fileField('data', '', array('id' => 'data')) . "<br>"; echo CHtml::hiddenField('model', $model); echo "<i>" . Yii::t('app', 'Allowed filetypes: .csv') . "</i><br><br>"; echo "<h3>" . Yii::t('admin', 'Import Map') . " <a class='pseudo-link' id='toggle-map-upload'>" . X2Html::fa('fa-caret-down') . "</a></h3>"; echo "<div id='upload-map' style='display:none;'>"; echo Yii::t('admin', "You may select a predefined map here, or upload your own.") . "<br />"; $availImportMaps = $this->availableImportMaps($model); if (empty($availImportMaps)) { echo "<div style='color:red'>"; echo Yii::t('app', "No related import maps were found."); echo "</div>"; } else { echo CHtml::radioButtonList('x2maps', null, $availImportMaps, array('labelOptions' => array('style' => 'display:inline'))); } echo "<br /><br />"; echo CHtml::fileField('mapping', '', array('id' => 'mapping')) . "<br>"; echo "<i>" . Yii::t('app', 'Allowed filetypes: .json') . "</i>"; echo "</div><br><br>"; echo CHtml::submitButton(Yii::t('app', 'Submit'), array('class' => 'x2-button'));
?> ' placeholder='<?php echo 'Search ' . ucfirst($title); ?> ' /> </form> <div class='search-clear-button ui-btn'> <i class='fa fa-close'></i> </div> </div> </div> <?php $this->widget('application.modules.mobile.components.RecordIndexListView', array('dataProvider' => $dataProvider, 'template' => '{items}{moreButton}', 'itemView' => $model instanceof Topics ? 'application.modules.mobile.views.mobile._topicsIndexItem' : 'application.modules.mobile.views.mobile._recordIndexItem', 'htmlOptions' => array('class' => 'record-index-list-view'), 'emptyText' => '<div>' . CHtml::encode(Yii::t('app', 'No results found.')) . '<div>')); if ($this->hasMobileAction('mobileCreate') && Yii::app()->user->checkAccess(ucfirst($this->module->name) . 'Create')) { ?> <a href='<?php echo $this->createAbsoluteUrl('mobileCreate'); ?> '> <div class='record-create-button fixed-corner-button'> <?php echo X2Html::fa('plus'); ?> </div> </a> <?php }
* The interactive user interfaces in modified source and object code versions * of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU Affero General Public License version 3. * * In accordance with Section 7(b) of the GNU Affero General Public License version 3, * these Appropriate Legal Notices must retain the display of the "Powered by * X2Engine" logo. If the display of the logo is not reasonably feasible for * technical reasons, the Appropriate Legal Notices must display the words * "Powered by X2Engine". *****************************************************************************************/ ?> <div class="topic-entry view"> <div class="clear-fix"> <div class="topic-sticky"> <?php echo $data->sticky ? X2Html::fa('thumb-tack') : ' '; ?> </div> <div class="topic-title"> <?php echo $data->getLink(); ?> </div> <div class="topic-attributes"> <div class="topic-reply-count"> <?php echo $data->renderAttribute('replyCount'); ?> </div> <div class="topic-last-updated"> <div class='avatar-container'>
/** * Renders the avatar image with max dimension 95x95 * @param int $id the profile id */ public static function renderFullSizeAvatar($id, $dimensionLimit = 95) { if ($id instanceof Profile) { $model = $id; } else { $model = Profile::model()->findByPk($id); } if (isset($model->avatar) && $model->avatar != '' && !file_exists($model->avatar) && strpos($model->avatar, 'uploads') !== false && strpos($model->avatar, 'protected') === false) { $path = explode(DIRECTORY_SEPARATOR, $model->avatar); $oldPathIndex = array_search('uploads', $path); array_splice($path, $oldPathIndex + 1, 0, 'protected'); $newPath = implode(DIRECTORY_SEPARATOR, $path); if (file_exists($newPath)) { $model->avatar = $newPath; $model->update(array('avatar')); } } if (isset($model->avatar) && $model->avatar != '' && file_exists($model->avatar)) { $imgSize = @getimagesize($model->avatar); if (!$imgSize) { $imgSize = array(45, 45); } $maxDimension = max($imgSize[0], $imgSize[1]); $scaleFactor = 1; if ($maxDimension > $dimensionLimit) { $scaleFactor = $dimensionLimit / $maxDimension; } $imgSize[0] = round($imgSize[0] * $scaleFactor); $imgSize[1] = round($imgSize[1] * $scaleFactor); return Profile::renderAvatarImage($id, $imgSize[0], $imgSize[1], array('class' => 'avatar-image')); } else { return X2Html::fa('user', array('class' => 'avatar-image default-avatar', 'style' => "font-size: {$dimensionLimit}px")); // echo '<img id="avatar-image" width="'.$dimensionLimit.'" height="'.$dimensionLimit.'" src='. // Yii::app()->request->baseUrl."/uploads/default.png".'>'; } }
<div class="row" id='signin-button-container'> <button class='x2-button x2-blue' id='signin-button'> <?php // echo CHtml::image ( // Yii::app()->theme->baseUrl.'/images/loginButtonIcon.png', 'X2'); echo Yii::t('app', 'Sign in'); ?> </button> <!--<button class='x2-button x2-blue' id='mobile-signin-button' title='<?php echo CHtml::encode(Yii::t('app', 'X2Touch Sign In')); ?> '> <?php echo X2Html::fa('mobile'); ?> </button>--> <div class='clearfix'></div> </div> <div class='row remember-me-row'> <div class="cell remember-me-cell"> <?php if ($model->rememberMe) { echo $form->hiddenField($model, 'rememberMe', array('value' => 1)); ?> <a href="<?php echo Yii::app()->createUrl('/site/site/forgetMe'); ?> " class="x2-link x2-minimal-link text-link">
<br /> <?php $pendingAssetUrls = CJSON::encode($model->assetBaseUrls); if (array_key_exists('Admin', $_POST) && array_key_exists('assetBaseUrls', $_POST['Admin'])) { $pendingAssetUrls = $_POST['Admin']['assetBaseUrls']; } echo CHtml::hiddenField('Admin[assetBaseUrls]', $pendingAssetUrls); ?> <?php echo CHtml::error($model, 'assetBaseUrls'); ?> <div id='assetUrls'> </div> <?php echo CHtml::htmlButton(X2Html::fa('plus') . ' ' . Yii::t('admin', 'Add Asset Domain'), array('id' => 'newAssetBaseUrl', 'class' => 'x2-button small', 'style' => 'padding: 1px;')); ?> <?php $fa_times = X2HTML::fa('times', array('class' => 'removeAssetUrl', 'style' => 'cursor: pointer')); $assetDomainErrors = array(); if (isset($model->errors['assetBaseUrls'])) { $assetDomainErrors = $model->errors['assetBaseUrls']; } Yii::app()->clientScript->registerScript('assetBaseUrlJs', ' if (typeof x2 == "undefined") x2 = {}; if (typeof x2.assetBaseUrl == "undefined") x2.assetBaseUrl = {}; x2.assetBaseUrl.removeAssetUrlButton = ' . CJavaScript::encode($fa_times) . '; x2.assetBaseUrl.pendingAssetUrls = ' . CJSON::encode($model->assetBaseUrls) . ';
/** * @return string HTML string containing settings menu options */ protected function getSettingsMenuContentEntries() { return ($this->relabelingEnabled ? '<li class="relabel-widget-button">' . X2Html::fa('fa-edit') . Yii::t('app', 'Rename Widget') . '</li>' : '') . ($this->canBeDeleted ? '<li class="delete-widget-button">' . X2Html::fa('fa-trash') . Yii::t('app', 'Delete Widget') . '</li>' : ''); }
<div class='event-view'> <?php $this->renderPartial($this->pathAliasBase . 'views.mobile._activityEventItem', array('data' => $model, 'showComments' => false)); $this->widget('application.modules.mobile.components.RecordIndexListView', array('dataProvider' => $dataProvider, 'template' => '{items}{moreButton}', 'itemView' => 'application.modules.mobile.views.mobile._activityEventItem', 'viewData' => array('showComments' => false, 'showRecipient' => false), 'htmlOptions' => array('class' => 'record-index-list-view comment-list-view'))); ?> <div id='footer' data-role="footer" class='comment-publisher fixed-footer control-panel'> <?php $form = $this->beginWidget('MobileActiveForm', array('htmlOptions' => array('class' => 'comment-publisher-form'), 'jSClassParams' => array('validate' => 'js:function () { return $.trim (this.form$.find ("input[type=\'text\']").val ()); }'))); ?> <div class='photo-attachments-container'> </div> <div class='photo-attach-button icon-button'> <?php echo X2Html::fa('camera'); ?> </div> <?php echo $form->textField($formModel, 'text', array('placeholder' => 'Add a reply...', 'class' => 'reply-box')); ?> <div class='submit-button disabled'><?php echo CHtml::encode(Yii::t('mobile', 'Post')); ?> </div> <?php $this->endWidget(); ?> </div>
<div class="buttons"> <?php if (!Yii::app()->user->isGuest) { if (empty($data->type) || $data->type == 'weblead') { if ($data->complete == 'Yes' && Yii::app()->user->checkAccess('ActionsUncomplete', array('assignedTo' => $data->assignedTo))) { echo CHtml::link(X2Html::fa('fa-undo'), '#', array('class' => 'uncomplete-button', 'title' => Yii::t('app', 'uncomplete'), 'data-action-id' => $data->id)); } elseif (Yii::app()->user->checkAccess('ActionsComplete', array('assignedTo' => $data->assignedTo))) { echo CHtml::link(X2Html::fa('fa-check-circle'), '#', array('class' => 'complete-button', 'title' => Yii::t('app', 'complete'), 'data-action-id' => $data->id)); } } if ($data->type != 'workflow') { if (Yii::app()->user->checkAccess('ActionsUpdate', array('assignedTo' => $data->assignedTo))) { echo $data->type != 'attachment' && $data->type != 'email' ? ' ' . CHtml::link(X2Html::fa('fa-edit'), '#', array('class' => 'update-button', 'title' => Yii::t('app', 'edit'), 'data-action-id' => $data->id)) : ''; } if (Yii::app()->user->checkAccess('ActionsDelete', array('assignedTo' => $data->assignedTo))) { echo ' ' . CHtml::link(X2Html::fa('fa-times'), '#', array('onclick' => 'deleteAction(' . $data->id . ', "' . $data->type . '"); return false', 'title' => Yii::t('app', 'delete'))); } } } ?> </div> </div> <div class="description"> <?php if ($type == 'attachment' && $data->completedBy != 'Email') { echo Media::attachmentActionText(Yii::app()->controller->convertUrls($data->actionDescription), true, true); } else { if ($type == 'workflow') { if ($data->complete == 'Yes') { echo ' <b>' . Yii::t('workflow', 'Completed') . '</b> ' . Formatter::formatLongDateTime($data->completeDate); } else {
<div class="form"> <?php if (!empty($model)) { echo '<div style="width:600px;">'; echo Yii::t('admin', 'Please click the button below to begin the export. Do not close this ' . 'page until the export is finished, which may take some time if you have a large number ' . 'of records. A counter will keep you updated on how many records have been successfully ' . 'updated.'); ?> <br><br> <?php if (isset($listName)) { echo Yii::t('admin', 'You are currently exporting: ') . "<b>{$listName}</b>"; } ?> </div> <h3><?php echo Yii::t('admin', 'Customize CSV') . CHtml::link(X2Html::fa('fa-caret-down', array('id' => 'expand-exportSeparator')), '#'); ?> </h3> <div id='exportSeparator' style='display:none'> <?php echo CHtml::label(Yii::t('admin', 'Delimeter'), 'delimeter'); echo CHtml::textField('delimeter', ',') . '<br />'; echo CHtml::label(Yii::t('admin', 'Enclosure'), 'enclosure'); echo CHtml::textField('enclosure', '"'); ?> </div> <br> <div class="exportOption"> <?php if (Yii::app()->params->isAdmin) {
protected function getSettingsMenuContentEntries() { return '<li class="grid-settings-button">' . X2Html::fa('fa-gear') . Yii::t('profile', 'Widget Grid Settings') . ' </li>' . parent::getSettingsMenuContentEntries(); }
?> <?php echo X2Html::fa('fa-play'); ?> <span class='button-text'> <?php echo Yii::t('marketing', 'Pause'); ?> </span> </button> <button class="refresh x2-button" title="<?php echo CHtml::encode(Yii::t('marketing', 'Click to refresh displays of campaign data on this page.')); ?> "> <?php echo X2Html::fa('fa-refresh'); ?> <?php echo Yii::t('marketing', 'Refresh'); ?> </button> <span id="emailProgressControl-throbber" style="display: none;" class='load8 x2-loader loader' ></span> <div id="emailProgressControl-textStatus"></div> </div> </div> <div class="emailProgressControl-section"> <div id="emailProgressControl-errorContainer"> <hr /> <strong><?php echo Yii::t('marketing', 'Errors that occurred when attempting to send email:'); ?>