diff options
author | Joas Schilling <coding@schilljs.com> | 2016-07-21 11:51:42 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-07-27 16:29:25 +0300 |
commit | 5bb35577db9fed771667573cbd5ce6bdebe45ae0 (patch) | |
tree | 4e9ac718265b0537a95d731d18be52005c9c47e3 /apps/systemtags/templates | |
parent | 5bdb620af3bf3128c5a33365dc66b046c580d0b7 (diff) |
Add a simple Admin UI to manage systemtags
Diffstat (limited to 'apps/systemtags/templates')
-rw-r--r-- | apps/systemtags/templates/admin.php | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/apps/systemtags/templates/admin.php b/apps/systemtags/templates/admin.php new file mode 100644 index 00000000000..883e998ed61 --- /dev/null +++ b/apps/systemtags/templates/admin.php @@ -0,0 +1,59 @@ +<?php +/** + * @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com> + * + * @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/>. + * + */ + +vendor_script('core', 'select2/select2'); +vendor_style('core', 'select2/select2'); +script('core', [ + 'oc-backbone-webdav', + 'systemtags/systemtags', + 'systemtags/systemtagmodel', + 'systemtags/systemtagscollection', +]); + +script('systemtags', 'admin'); + +/** @var \OCP\IL10N $l */ +?> + +<form id="systemtags" class="section" data-systemtag-id=""> + <h2><?php p($l->t('Collaborative tags')); ?></h2> + + <input type="hidden" name="systemtag" id="systemtag" placeholder="<?php p($l->t('Select tag…')); ?>" style="width: 400px;" /> + + <br><br> + + <input type="text" id="systemtag_name" name="systemtag_name" placeholder="<?php p($l->t('Name')); ?>" style="width: 200px;"> + + <span id="systemtag_delete" class="hidden"> + <img src="<?php p(\OCP\Template::image_path('core', 'actions/delete.svg')); ?>" alt="<?php p($l->t('Delete')); ?>"> + </span> + + <br> + + <select id="systemtag_level"> + <option value="3"><?php p($l->t('Public')); ?></option> + <option value="2"><?php p($l->t('Restricted')); ?></option> + <option value="0"><?php p($l->t('Invisible')); ?></option> + </select> + + <input type="button" id="systemtag_submit" value="<?php p($l->t('Create')); ?>"> + <input type="button" id="systemtag_reset" value="<?php p($l->t('Reset')); ?>"> +</form> |