Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2018-12-30 19:30:21 +0300
committerdartcafe <github@dartcafe.de>2018-12-30 19:30:21 +0300
commit943fcde264d7353cd3a2dfe00946a1764f8461bf (patch)
treed4ae3f9e1b2282ea77206ab3ba9b7a107253b2a2 /templates
parent2958732a73c722cdc938d6b7554a80e088932945 (diff)
Progress
Diffstat (limited to 'templates')
-rw-r--r--templates/vote.tmpl.php18
1 files changed, 13 insertions, 5 deletions
diff --git a/templates/vote.tmpl.php b/templates/vote.tmpl.php
index 629177fb..066ebf05 100644
--- a/templates/vote.tmpl.php
+++ b/templates/vote.tmpl.php
@@ -179,6 +179,12 @@
<ul class="flex-column table-body">
<?php
+
+
+
+
+
+
if ($votes !== null) {
//group by user
$others = array();
@@ -247,6 +253,7 @@
print_unescaped('</li>');
}
}
+
$toggleTooltip = $l->t('Switch all options at once');
if (!$expired) {
print_unescaped('<li class="flex-row user current-user">');
@@ -270,7 +277,7 @@
print_unescaped(' <div class="toggle"></div>');
print_unescaped(' </div>');
print_unescaped('</div>');
- print_unescaped('<ul class="flex-row">');
+ print_unescaped('<div class="flex-row">');
$i_tot = 0;
foreach ($options as $optionElement) {
@@ -280,7 +287,7 @@
if (isset($userVoted)) {
foreach ($userVoted as $vote) {
if ($optionElement->getPollOptionText() === $vote->getVoteOptionText()) {
- $class = $vote->getVoteAnswer() . ' icon-' . $vote->getVoteAnswer();
+ $class = 'lala' . $vote->getVoteAnswer() . ' icon-' . $vote->getVoteAnswer() . ' ' . $vote->getVoteAnswer();
break;
} else {
$class = 'unvoted';
@@ -293,11 +300,12 @@
$updatedPoll = true;
}
- print_unescaped('<li id="voteid_' . $optionElement->getId() . '" class="flex-column active poll-cell ' . $class . '" data-value="' . $optionElement->getPollOptionText() . '" data-unvoted="' . $dataUnvoted . '"></li>');
-
+ print_unescaped('<div class="poll-cell">');
+ print_unescaped(' <div id="voteid_' . $optionElement->getId() . '" class="flex-column poll-cell active ' . $class . '" data-value="' . $optionElement->getPollOptionText() . '" data-unvoted="' . $dataUnvoted . '"></div>');
+ print_unescaped('</div>');
$i_tot++;
}
- print_unescaped('</ul>');
+ print_unescaped('</div>');
print_unescaped('</li>');
}
?>