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>2021-09-01 22:31:55 +0300
committerdartcafe <github@dartcafe.de>2021-09-03 12:28:14 +0300
commit7ccd1bcadbf7801722fab0c2a4ae1f88d4ff8f37 (patch)
treebcf6d884876a4bdda25baceff284bca609f6b4b2 /templates
parentb79c4c2c6759c4e10cc1094690b49e06c04ff283 (diff)
Add admin page for polls
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'templates')
-rw-r--r--templates/admin.php27
-rw-r--r--templates/polls.tmpl.php5
-rw-r--r--templates/settings.php27
3 files changed, 56 insertions, 3 deletions
diff --git a/templates/admin.php b/templates/admin.php
new file mode 100644
index 00000000..3d060cbe
--- /dev/null
+++ b/templates/admin.php
@@ -0,0 +1,27 @@
+<?php
+ /**
+ * @copyright Copyright (c) 2017 Vinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com>
+ *
+ * @author René Gieling <github@dartcafe.de>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+ declare(strict_types=1);
+
+ script('polls', 'adminSettings');
+?>
+<div id="admin_settings" />
diff --git a/templates/polls.tmpl.php b/templates/polls.tmpl.php
index e29ba7e4..d492140f 100644
--- a/templates/polls.tmpl.php
+++ b/templates/polls.tmpl.php
@@ -21,7 +21,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+ declare(strict_types=1);
-?>
-
-<?php \OCP\Util::addScript('polls', 'polls');
+ script('polls', 'polls');
diff --git a/templates/settings.php b/templates/settings.php
new file mode 100644
index 00000000..31e70f1f
--- /dev/null
+++ b/templates/settings.php
@@ -0,0 +1,27 @@
+<?php
+ /**
+ * @copyright Copyright (c) 2017 Vinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com>
+ *
+ * @author René Gieling <github@dartcafe.de>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+ declare(strict_types=1);
+
+ script('polls', 'userSettings');
+?>
+<div id="user_settings" />