Skip to content

Commit

Permalink
updated UI
Browse files Browse the repository at this point in the history
  • Loading branch information
schmunk42 committed Oct 23, 2013
1 parent 0a1ece9 commit 5dc96b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
13 changes: 3 additions & 10 deletions components/views/overlay.php
Expand Up @@ -23,7 +23,7 @@
'items' => array(
array(
'buttonType' => 'link',
'label' => 'Edit Widget <span class="label '.$model->statusCssClass.'">' . $model->status . '</span>',
'label' => 'Edit Widget <span class="label label-'.$model->statusCssClass.'">' . $model->status . '</span>',
'visible' => $model->isUpdateable,
'url' => array(
'/p3widgets/p3Widget/update',
Expand Down Expand Up @@ -61,7 +61,7 @@
),
array(
'buttonType' => 'link',
'label' => 'Edit Translation <span class="label">' . $model->translationModel->status . '</span>',
'label' => 'Edit Translation <span class="label label-'.$model->translationModel->statusCssClass.'">' . $model->translationModel->status . '</span>',
'visible' => ($model->translationModel->isUpdateable && !$model->translationModel->isNewRecord),
'url' => array(
'/p3widgets/p3WidgetTranslation/update',
Expand All @@ -83,7 +83,7 @@


if ($model->isUpdateable) {
echo '<div class="handle">';
echo ' <div class="handle">';
$this->widget(
'TbButton',
array(
Expand Down Expand Up @@ -147,13 +147,6 @@
'returnUrl' => Yii::app()->request->getUrl()
),
'icon' => 'plus',
'htmlOptions' => array(
'data-toggle' => 'tooltip',
'data-placement' => 'bottom',
'title' => "Create a new Widget in container {$this->id}"
)
),
array(
'items' => Yii::app()->getModule('p3widgets')->buildWidgetMenuItems($widgetAttributes)
),
),
Expand Down
6 changes: 5 additions & 1 deletion components/views/widget.php
@@ -1,6 +1,10 @@
<div class="widget"
data-toggle="tooltip"
title="<?php echo "{$model->alias} #{$model->id}" ?>"
data-html="true"
title="<?php echo "{$model->alias}
<span class='label label-{$model->statusCssClass}'><i class='icon icon-pencil'></i></span>
<span class='label label-{$model->translationModel->statusCssClass}'><i class='icon icon-flag'></i></span>
" ?>"
id="<?php echo P3WidgetContainer::WIDGET_CSS_PREFIX . $model->id ?>">

<?php $this->render(
Expand Down
2 changes: 1 addition & 1 deletion models/P3Widget.php
Expand Up @@ -31,7 +31,7 @@ public function init()

public function getItemLabel()
{
return '#' . $this->id . ' ' . $this->alias . ' ' . $this->module_id . '/' . $this->controller_id . '/' . $this->action_name . '/' . $this->container_id . '/' . $this->request_param . ':' . $this->rank;
return '#' . $this->id . ' ' . $this->alias . ' /' . $this->module_id . '/' . $this->controller_id . '/' . $this->action_name . '/' . $this->request_param . ' ' . $this->container_id . ':' . $this->rank;
}

public function behaviors()
Expand Down

0 comments on commit 5dc96b5

Please sign in to comment.