owncloud/core

View on GitHub
apps/files_sharing/templates/settings.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * @author Juan Pablo Villafáñez <jvillafanez@solidgear.es>
 *
 * @copyright Copyright (c) 2018, ownCloud GmbH
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * 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, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
script('files_sharing', 'settings');
?>

<div class="section" id="files_sharing">
    <h2 class="app-name"><?php p($l->t('Group Sharing Blacklist')); ?></h2>
    <div class="indent">
        <p><?php p($l->t('Exclude groups from receiving shares')); ?></p>
        <input name="blacklisted_receiver_groups" class="noautosave" value="<?php p($_['blacklistedReceivers']) ?>" style="width: 400px"/>
        <br />
        <em><?php p($l->t('These groups will not be available to share with. Members of the group are not restricted in initiating shares and receiving personal shares/invitations. Furthermore they can receive shares addressed to other groups they are members of as usual.')); ?></em>
    </div>

    <p>
        <input type="checkbox"
               name="public_share_sharers_groups_allowlist_enabled"
               id="publicShareSharersGroupsAllowlistEnabled" class="checkbox noautosave"
               value="1" <?php if ($_['publicShareSharersGroupsAllowlistEnabled'] === 'yes') {
                   print_unescaped('checked="checked"');
               } ?> />
        <label for="publicShareSharersGroupsAllowlistEnabled"><?php p($l->t('Only certain groups are allowed to create public links')); ?></label><br/>
        <span id="setAllowlistPublicShareSharersGroups"
              class="indent <?php if ($_['publicShareSharersGroupsAllowlistEnabled'] === 'no') {
                  p('hidden');
              } ?>">
          <input name="public_share_sharers_groups_allowlist"
                 id="allowlistPublicShareSharersGroups"
                 class="noautosave"
                 value="<?php p($_['publicShareSharersGroupsAllowlist']) ?>"
                 style="width: 400px"/>
          </span>
        </p>
</div>