-
Notifications
You must be signed in to change notification settings - Fork 988
/
listquestiongroupsTopbarLeft_view.php
67 lines (65 loc) · 2.11 KB
/
listquestiongroupsTopbarLeft_view.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
<?php
/** @var $oSurvey Survey */
/** @var $hasSurveyContentCreatePermission */
if ($oSurvey->isActive) : ?>
<span class="btntooltip d-inline-block" data-bs-toggle="tooltip" data-bs-placement="bottom"
title="<?php eT("This survey is currently active."); ?>">
<?php
$this->widget(
'ext.ButtonWidget.ButtonWidget',
[
'name' => 'add-new-group-button',
'text' => gT('Add new group'),
'icon' => 'ri-add-circle-fill',
'htmlOptions' => [
'class' => 'btn btn-outline-secondary btntooltip',
'disabled' => 'disabled',
],
]
);
$this->widget(
'ext.ButtonWidget.ButtonWidget',
[
'name' => 'import-group-button',
'text' => gT('Import group'),
'icon' => 'ri-download-2-fill',
'htmlOptions' => [
'class' => 'btn btn-outline-secondary btntooltip',
'disabled' => 'disabled',
],
]
);
?>
</span>
<?php elseif ($hasSurveyContentCreatePermission) : ?>
<!-- Add group -->
<?php
$this->widget(
'ext.ButtonWidget.ButtonWidget',
[
'name' => 'add-new-group-button',
'text' => gT('Add new group'),
'icon' => 'ri-add-circle-fill',
'link' => Yii::App()->createUrl("questionGroupsAdministration/add/surveyid/" . $oSurvey->sid),
'htmlOptions' => [
'class' => 'btn btn-outline-secondary',
],
]
);
?>
<!-- Import -->
<?php
$this->widget(
'ext.ButtonWidget.ButtonWidget',
[
'name' => 'import-group-button',
'text' => gT('Import group'),
'icon' => 'ri-download-2-fill',
'link' => Yii::App()->createUrl("questionGroupsAdministration/importview/surveyid/" . $oSurvey->sid),
'htmlOptions' => [
'class' => 'btn btn-outline-secondary',
],
]
);
?>
<?php endif; ?>