-
Notifications
You must be signed in to change notification settings - Fork 986
/
index.php
76 lines (65 loc) · 2.52 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/* @var $this TemplateOptionsController */
/* @var $dataProvider CActiveDataProvider */
// TODO: rename to template_list.php
?>
<div class="col-lg-12 list-surveys">
<?php $this->renderPartial('super/fullpagebar_view', array(
'fullpagebar' => array(
'returnbutton'=>array(
'url'=>'index',
'text'=>gT('Close'),
),
)
)); ?>
<h3><?php eT('Available templates:'); ?></h3>
<div class="row">
<div class="col-sm-12 content-right">
<?php $this->widget('bootstrap.widgets.TbGridView', array(
'dataProvider' => $model->search(),
'columns' => array(
array(
'header' => gT('Preview'),
'name' => 'preview',
'value'=> '$data->preview',
'type'=>'raw',
'htmlOptions' => array('class' => 'col-md-1'),
),
array(
'header' => gT('name'),
'name' => 'templates_name',
'value'=>'$data->templates_name',
'htmlOptions' => array('class' => 'col-md-2'),
),
array(
'header' => gT('Description'),
'name' => 'templates_name',
'value'=>'$data->template->description',
'htmlOptions' => array('class' => 'col-md-3'),
'type'=>'raw',
),
array(
'header' => gT('type'),
'name' => 'templates_type',
'value'=>'$data->typeIcon',
'type' => 'raw',
'htmlOptions' => array('class' => 'col-md-2'),
),
array(
'header' => gT('extends'),
'name' => 'templates_extends',
'value'=>'$data->template->extends',
'htmlOptions' => array('class' => 'col-md-2'),
),
array(
'header' => '',
'name' => 'actions',
'value'=>'$data->buttons',
'type'=>'raw',
'htmlOptions' => array('class' => 'col-md-1'),
),
)));
?>
</div>
</div>
</div>