Skip to content

Commit

Permalink
fancy theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Hudenko committed Nov 23, 2011
1 parent 7741178 commit 3864e2a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
1 change: 0 additions & 1 deletion README

This file was deleted.

Empty file added README.md
Empty file.
8 changes: 8 additions & 0 deletions views/message/default/view.php
Expand Up @@ -11,6 +11,14 @@

<?php $this->renderPartial(Yii::app()->getModule('message')->viewPath . '/_navigation') ?>

<?php $form = $this->beginWidget('CActiveForm', array(
'id'=>'message-delete-form',
'enableAjaxValidation'=>false,
'action' => $this->createUrl('delete/', array('id' => $viewedMessage->id))
)); ?>
<button class="btn danger"><?php echo MessageModule::t("Delete") ?></button>
<?php $this->endWidget(); ?>

<?php if ($isIncomeMessage): ?>
<h2 class="message-from">From: <?php echo $viewedMessage->getSenderName() ?></h2>
<?php else: ?>
Expand Down
4 changes: 3 additions & 1 deletion views/message/fancy/inbox.php
Expand Up @@ -42,7 +42,9 @@
</div>

<?php $this->endWidget(); ?>
<?php $this->widget('CLinkPager', array('pages' => $messagesAdapter->getPagination())) ?>
<div class="pagination">
<?php $this->widget('CLinkPager', array('header' => '', 'pages' => $messagesAdapter->getPagination(), 'htmlOptions' => array('class' => 'pager'))) ?>
</div>
<?php endif; ?>
</div>
</div>
4 changes: 3 additions & 1 deletion views/message/fancy/sent.php
Expand Up @@ -45,7 +45,9 @@

<?php $this->endWidget(); ?>

<?php $this->widget('CLinkPager', array('pages' => $messagesAdapter->getPagination())) ?>
<div class="pagination">
<?php $this->widget('CLinkPager', array('header' => '', 'pages' => $messagesAdapter->getPagination(), 'htmlOptions' => array('class' => 'pager'))) ?>
</div>
<?php endif; ?>
</div>
</div>
2 changes: 1 addition & 1 deletion views/message/fancy/view.php
Expand Up @@ -21,7 +21,7 @@
'enableAjaxValidation'=>false,
'action' => $this->createUrl('delete/', array('id' => $viewedMessage->id))
)); ?>
<button class="btn primary"><?php echo MessageModule::t("Delete Selected") ?></button>
<button class="btn danger"><?php echo MessageModule::t("Delete") ?></button>
<?php $this->endWidget(); ?>

<table class="bordered-table zebra-striped">
Expand Down

0 comments on commit 3864e2a

Please sign in to comment.