dd47b3f82e
- each feed can have multiple groups assigned - group assignments are done on the add or edit feed page - groups are only visible on the unread page - groups are exported via the fever api - it's not possible do delete a group manually from the database (the group will be removed automatically, as soon as the last association of a group to a feed is removed) - if you try to create an already existing group, the existing group is used to prevent duplicates
49 lines
2.1 KiB
PHP
49 lines
2.1 KiB
PHP
<div class="page-header">
|
|
<h2><?= t('Edit subscription') ?></h2>
|
|
<ul>
|
|
<li><a href="?action=add"><?= t('add') ?></a></li>
|
|
<li><a href="?action=feeds"><?= t('feeds') ?></a></li>
|
|
<li><a href="?action=import"><?= t('import') ?></a></li>
|
|
<li><a href="?action=export"><?= t('export') ?></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<form method="post" action="?action=edit-feed" autocomplete="off">
|
|
|
|
<?= Helper\form_hidden('id', $values) ?>
|
|
|
|
<?= Helper\form_label(t('Title'), 'title') ?>
|
|
<?= Helper\form_text('title', $values, $errors, array('required')) ?>
|
|
|
|
<?= Helper\form_label(t('Website URL'), 'site_url') ?>
|
|
<?= Helper\form_text('site_url', $values, $errors, array('required', 'placeholder="http://..."')) ?>
|
|
|
|
<?= Helper\form_label(t('Feed URL'), 'feed_url') ?>
|
|
<?= Helper\form_text('feed_url', $values, $errors, array('required', 'placeholder="http://..."')) ?>
|
|
|
|
<?= Helper\form_checkbox('rtl', t('Force RTL mode (Right-to-left language)'), 1, $values['rtl']) ?><br />
|
|
|
|
<?= Helper\form_checkbox('download_content', t('Download full content'), 1, $values['download_content']) ?><br />
|
|
|
|
<?= Helper\form_checkbox('cloak_referrer', t('Cloak the image referrer'), 1, $values['cloak_referrer']) ?><br />
|
|
|
|
<?= Helper\form_checkbox('enabled', t('Activated'), 1, $values['enabled']) ?><br />
|
|
|
|
<?= Helper\form_label(t('Groups'), 'groups'); ?>
|
|
|
|
<div id="grouplist">
|
|
<?php foreach ($groups as $group): ?>
|
|
<?= Helper\form_checkbox('feed_group_ids[]', $group['title'], $group['id'], in_array($group['id'], $values['feed_group_ids']), 'hide') ?>
|
|
<?php endforeach ?>
|
|
<?= Helper\form_text('create_group', $values, array(), array('placeholder="'.t('add a new group').'"')) ?>
|
|
</div>
|
|
|
|
<div class="form-actions">
|
|
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
|
|
<?= t('or') ?> <a href="?action=feeds"><?= t('cancel') ?></a>
|
|
</div>
|
|
</form>
|
|
<div class="form-actions">
|
|
<a href="?action=confirm-remove-feed&feed_id=<?= $values['id'] ?>" class="btn btn-red"><?= t('Remove this feed') ?></a>
|
|
</div>
|