diff options
author | Peter De Wachter <pdewacht@gmail.com> | 2019-08-15 09:48:07 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2019-08-15 21:58:01 -0700 |
commit | d882bbca85b801ed408644800364ec0a5bdcffd4 (patch) | |
tree | 08f4c52970b13d6ca6ce23a694174ed61ada1d2e /template | |
parent | ac45307da63186fea074e8a5573af6d0dad0fd26 (diff) |
Import OPML from URL
Diffstat (limited to 'template')
-rw-r--r-- | template/html/import.html | 11 | ||||
-rw-r--r-- | template/views.go | 13 |
2 files changed, 23 insertions, 1 deletions
diff --git a/template/html/import.html b/template/html/import.html index 0668f25..3a2b987 100644 --- a/template/html/import.html +++ b/template/html/import.html @@ -31,4 +31,15 @@ </div> </form> +<form action="{{ route "fetchOPML" }}" method="post" enctype="multipart/form-data"> + <input type="hidden" name="csrf" value="{{ .csrf }}"> + + <label for="form-url">{{ t "form.import.label.url" }}</label> + <input type="url" name="url" id="form-url"> + + <div class="buttons"> + <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.import" }}</button> + </div> +</form> + {{ end }} diff --git a/template/views.go b/template/views.go index 4f51dc2..86da9c5 100644 --- a/template/views.go +++ b/template/views.go @@ -955,6 +955,17 @@ var templateViewsMap = map[string]string{ </div> </form> +<form action="{{ route "fetchOPML" }}" method="post" enctype="multipart/form-data"> + <input type="hidden" name="csrf" value="{{ .csrf }}"> + + <label for="form-url">{{ t "form.import.label.url" }}</label> + <input type="url" name="url" id="form-url"> + + <div class="buttons"> + <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.import" }}</button> + </div> +</form> + {{ end }} `, "integrations": `{{ define "title"}}{{ t "page.integrations.title" }}{{ end }} @@ -1469,7 +1480,7 @@ var templateViewsMapChecksums = map[string]string{ "feed_entries": "4bb6b96ba4d13dbaf22dcf6dd95ae36b6e5a0c99175d502865a164dc68fd4bae", "feeds": "d11fb629921e22bbf6d9ecb1adcc38922fafcee84f81c437abf47209544bd1c5", "history_entries": "9763d2120cfaeb78d406fdc029197fed2f7cfa7682970eeedae82ae79be65519", - "import": "8349e47a783bb40d8e9248b4771656e5f006185e11079e1c4680dd52633420ed", + "import": "d7abfdc2cd4db38ed695d5fecd140e2e736d3633127589e1292736224dc23798", "integrations": "f85b4a48ab1fc13b8ca94bfbbc44bd5e8784f35b26a63ec32cbe82b96b45e008", "login": "2e72d2d4b9786641b696bedbed5e10b04bdfd68254ddbbdb0a53cca621d200c7", "search_entries": "d71849a4f2b0573c7c76ad0ea941812009e9f022de60895987a781d3e6f08a01", |