You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

admin.php 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com>
  4. *
  5. * @license GNU AGPL version 3 or any later version
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU Affero General Public License as
  9. * published by the Free Software Foundation, either version 3 of the
  10. * License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Affero General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. *
  20. */
  21. script('core', [
  22. 'dist/systemtags',
  23. ]);
  24. script('systemtags', 'admin');
  25. style('systemtags', 'settings');
  26. /** @var \OCP\IL10N $l */
  27. ?>
  28. <form id="systemtags" class="section" data-systemtag-id="">
  29. <h2><?php p($l->t('Collaborative tags')); ?></h2>
  30. <p class="settings-hint"><?php p($l->t('Collaborative tags are available for all users. Restricted tags are visible to users but cannot be assigned by them. Invisible tags are for internal use, since users cannot see or assign them.')); ?></p>
  31. <input type="hidden" name="systemtag" id="systemtag" placeholder="<?php p($l->t('Select tag …')); ?>" />
  32. <h3 id="systemtag_create"><?php p($l->t('Create a new tag')); ?></h3>
  33. <div class="systemtag-input">
  34. <input type="text" id="systemtag_name" name="systemtag_name" placeholder="<?php p($l->t('Name')); ?>">
  35. <select id="systemtag_level">
  36. <option value="3"><?php p($l->t('Public')); ?></option>
  37. <option value="2"><?php p($l->t('Restricted')); ?></option>
  38. <option value="0"><?php p($l->t('Invisible')); ?></option>
  39. </select>
  40. <a id="systemtag_delete" class="hidden button"><span><?php p($l->t('Delete')); ?></span></a>
  41. <a id="systemtag_reset" class="button"><span><?php p($l->t('Reset')); ?></span></a>
  42. <a id="systemtag_submit" class="button"><span><?php p($l->t('Create')); ?></span></a>
  43. </div>
  44. </form>