summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-10-11 04:17:59 -0700
committerThomas Tanghus <thomas@tanghus.net>2013-10-11 04:17:59 -0700
commit31714f8871eb21b9c6097e0c4edcbe97fb8a35a3 (patch)
tree82bb1b1c2d26fab819b69444d28f2f0882669dca /core/templates
parent4336d42ab095c304d0a46bb30c2d0203e606597e (diff)
parent9c230f8c85cf80efb10093e66e1197c200c185c1 (diff)
downloadnextcloud-server-31714f8871eb21b9c6097e0c4edcbe97fb8a35a3.tar.gz
nextcloud-server-31714f8871eb21b9c6097e0c4edcbe97fb8a35a3.zip
Merge pull request #5133 from owncloud/js_vcategories_to_tags
Js vcategories to tags
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/edit_categories_dialog.php19
-rw-r--r--core/templates/tags.html14
2 files changed, 14 insertions, 19 deletions
diff --git a/core/templates/edit_categories_dialog.php b/core/templates/edit_categories_dialog.php
deleted file mode 100644
index ea155bdf0ba..00000000000
--- a/core/templates/edit_categories_dialog.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-$categories = isset($_['categories'])?$_['categories']:array();
-?>
-<div id="edit_categories_dialog" title="<?php p($l->t('Edit categories')); ?>">
-<!-- ?php print_r($types); ? -->
- <form method="post" id="categoryform">
- <div class="scrollarea">
- <ul id="categorylist">
- <?php foreach($categories as $category): ?>
- <li><input type="checkbox" name="categories[]" value="<?php p($category); ?>" /><?php p($category); ?></li>
- <?php endforeach; ?>
- </ul>
- </div>
- <div class="bottombuttons">
- <input type="text" id="category_addinput" name="category" />
- <button id="category_addbutton" disabled="disabled"><?php p($l->t('Add')); ?></button>
- </div>
- </form>
-</div>
diff --git a/core/templates/tags.html b/core/templates/tags.html
new file mode 100644
index 00000000000..ae3d072b381
--- /dev/null
+++ b/core/templates/tags.html
@@ -0,0 +1,14 @@
+<div id="tagsdialog">
+ <div class="content">
+ <div class="scrollarea">
+ <ul class="taglist">
+ <li><input type="checkbox" name="ids[]" id="tag_{id}" value="{name}" />
+ <label for="tag_{id}">{name}</label>
+ </li>
+ </ul>
+ </div>
+ <div class="bottombuttons">
+ <input type="text" class="addinput" name="tag" placeholder="{addText}" />
+ </div>
+ </div>
+</div>