diff options
| author | 2020-06-05 10:09:31 +0200 | |
|---|---|---|
| committer | 2020-06-05 10:09:31 +0200 | |
| commit | d4554fa087f9057610085ca685cd8fb79d8f2bd0 (patch) | |
| tree | 60ab634136516e98d0885d1033a5636233f837b7 /app/views/subscription/index.phtml | |
| parent | 27f0b614189c090028dfb9a56d1b21f1adf263d4 (diff) | |
Change add feed action (#3027)
* Docker Alpine 3.12 (#3025)
https://alpinelinux.org/posts/Alpine-3.12.0-released.html
With PHP 7.3.18 (from 7.3.17) (and Apache 2.4.43 unchanged).
No other significant change spotted
* Ensure feed attributes are used before load
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/subscription/index.phtml')
| -rw-r--r-- | app/views/subscription/index.phtml | 59 |
1 files changed, 4 insertions, 55 deletions
diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtml index a92359151..131a1db91 100644 --- a/app/views/subscription/index.phtml +++ b/app/views/subscription/index.phtml @@ -5,71 +5,20 @@ <h2><?= _t('sub.title') ?></h2> - <form id="add_rss" method="post" action="<?= _url('feed', 'add') ?>" autocomplete="off"> - <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> - <div class="stick"> - <input type="url" name="url_rss" class="long" placeholder="<?= _t('sub.feed.add') ?>" /> - <div class="dropdown"> - <div id="dropdown-cat" class="dropdown-target"></div> - - <a class="dropdown-toggle btn" href="#dropdown-cat"><?= _i('down') ?></a> - <ul class="dropdown-menu"> - <li class="dropdown-close"><a href="#close">❌</a></li> - - <li class="dropdown-header"><?= _t('sub.category') ?></li> - - <li class="input"> - <select name="category" id="category"> - <?php foreach ($this->categories as $cat) { ?> - <option value="<?= $cat->id() ?>"<?= $cat->id() == 1 ? ' selected="selected"' : '' ?>> - <?= $cat->name() ?> - </option> - <?php } ?> - <option value="nc"><?= _t('sub.category.new') ?></option> - </select> - </li> - - <li class="input" aria-hidden="true"> - <input type="text" name="new_category[name]" id="new_category_name" autocomplete="off" placeholder="<?= _t('sub.category.new') ?>" /> - </li> - - <li class="separator"></li> - - <li class="dropdown-header"><?= _t('sub.feed.auth.http') ?></li> - <li class="input"> - <input type="text" name="http_user" id="http_user_feed" value=" " autocomplete="off" placeholder="<?= _t('sub.feed.auth.username') ?>" /> - </li> - <li class="input"> - <input type="password" name="http_pass" id="http_pass_feed" autocomplete="new-password" placeholder="<?= _t('sub.feed.auth.password') ?>" /> - </li> - </ul> - </div> - <button class="btn" type="submit"><?= _i('add') ?></button> - </div> - </form> - <p class="alert alert-warn"> <?= _t('sub.feed.moved_category_deleted', $this->default_category->name()) ?> </p> + <p class="alert alert-warn"> + <?= _t('sub.add', _url('subscription', 'add')) ?> + </p> + <?php if ($this->onlyFeedsWithError): ?> <p class="alert alert-warn"> <?= _t('sub.feed.showing.error') ?> </p> <?php endif; ?> - <div class="box"> - <div class="box-title"><label for="new-category"><?= _t('sub.category.add') ?></label></div> - - <ul class="box-content box-content-centered"> - <form action="<?= _url('category', 'create') ?>" method="post"> - <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> - <li class="item"><input type="text" id="new-category" name="new-category" placeholder="<?= _t('sub.category.new') ?>" /></li> - <li class="item"><button class="btn btn-important" type="submit"><?= _t('gen.action.submit') ?></button></li> - </form> - </ul> - </div> - <form id="controller-category" method="post" aria-hidden="true"> <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> </form> |
