/
tokensCreateDropdownItems.php
45 lines (41 loc) · 1.7 KB
/
tokensCreateDropdownItems.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
<!-- Add new token entry -->
<ul class="dropdown-menu">
<?php if ($hasTokensCreatePermission): ?>
<li>
<a class="pjax dropdown-item" href="<?php echo Yii::App()->createUrl("admin/tokens/sa/addnew/surveyid/$oSurvey->sid"); ?>" >
<span class="ri-add-circle-fill"></span>
<?php eT("Add participant"); ?>
</a>
</li>
<!-- Create dummy tokens -->
<li>
<a class="pjax dropdown-item" href="<?php echo Yii::App()->createUrl("admin/tokens/sa/adddummies/surveyid/$oSurvey->sid"); ?>" >
<span class="ri-add-box-fill"></span>
<?php eT("Create dummy participants"); ?>
</a>
</li>
<?php endif; ?>
<?php if ($hasTokensCreatePermission && $hasTokensImportPermission): ?>
<li role="separator" class="dropdown-divider"></li>
<?php endif; ?>
<!-- Import tokens -->
<?php if ($hasTokensImportPermission): ?>
<li>
<h6 class="dropdown-header"><?php eT("Import participants from:"); ?></h6>
</li>
<!-- from CSV file -->
<li>
<a class="pjax dropdown-item" href="<?php echo Yii::App()->createUrl("admin/tokens/sa/import/surveyid/$oSurvey->sid") ?>" >
<span class="ri-download-2-fill"></span>
<?php eT("CSV file"); ?>
</a>
</li>
<!-- from LDAP query -->
<li>
<a class="pjax dropdown-item" href="<?php echo Yii::App()->createUrl("admin/tokens/sa/importldap/surveyid/$oSurvey->sid") ?>" >
<span class="ri-download-2-fill"></span>
<?php eT("LDAP query"); ?>
</a>
</li>
<?php endif; ?>
</ul>