/usergroup/views/groups/view.php
PHP | 52 lines | 35 code | 17 blank | 0 comment | 1 complexity | 9f3e81e1e7ac74c9974b85f77a4192d3 MD5 | raw file
- <? Yum::register('css/yum.css');
- $this->breadcrumbs=array(
- Yum::t('Usergroups')=>array('index'),
- $model->title,
- );
- ?>
- <h3> <? echo $model->title; ?> </h3>
- <p> <? echo $model->description; ?> </p>
- <?
- if($model->owner)
- printf('%s: %s',
- Yum::t('Owner'),
- CHtml::link($model->owner->username, array(
- '//profile/profile/view', 'id' => $model->owner_id)));
- printf('<h4> %s </h4>', Yum::t('Participants'));
- $this->widget('zii.widgets.CListView', array(
- 'dataProvider'=>$model->getParticipantDataProvider(),
- 'itemView'=>'_participant',
- ));
- ?>
- <div style="clear: both;"> </div>
- <?
- printf('<h3> %s </h3>', Yum::t('Messages'));
- $this->widget('zii.widgets.CListView', array(
- 'dataProvider'=>$model->getMessageDataProvider(),
- 'itemView'=>'_message',
- ));
- ?>
- <? echo CHtml::link(Yum::t('Write a message'), '', array(
- 'onClick' => "$('#usergroup_message').toggle(500)")); ?>
- <div style="display:none;" id="usergroup_message">
- <h3> <? echo Yum::t('Write a message'); ?> </h3>
- <? $this->renderPartial('_message_form', array('group_id' => $model->id)); ?>
- </div>
- <div style="clear: both;"> </div>