2013-12-06 03:23:46 +01:00
|
|
|
<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://..."')) ?>
|
|
|
|
|
2014-10-20 01:14:33 +02:00
|
|
|
<?= Helper\form_checkbox('rtl', t('Force RTL mode (Right-to-left language)'), 1, isset($values['rtl']) ? $values['rtl'] : false) ?><br />
|
|
|
|
|
|
|
|
<?= Helper\form_checkbox('download_content', t('Download full content'), 1, isset($values['download_content']) ? $values['download_content'] : false) ?><br />
|
|
|
|
|
|
|
|
<?= Helper\form_checkbox('enabled', t('Activated'), 1, isset($values['enabled']) ? $values['enabled'] : false) ?>
|
|
|
|
|
2013-12-06 03:23:46 +01:00
|
|
|
<div class="form-actions">
|
2014-07-26 13:33:15 +02:00
|
|
|
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
|
|
|
|
<?= t('or') ?> <a href="?action=feeds"><?= t('cancel') ?></a>
|
2013-12-06 03:23:46 +01:00
|
|
|
</div>
|
2014-10-20 01:14:33 +02:00
|
|
|
</form>
|
|
|
|
<br/>
|
|
|
|
<div class="alert alert-error">
|
|
|
|
<ul>
|
|
|
|
<li><a href="?action=confirm-remove-feed&feed_id=<?= $values['id'] ?>"><?= t('Remove this feed') ?></a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|