templates za delo z linki

master
janko 2023-08-27 18:55:24 +02:00
parent ce78dc767b
commit e5739afbe7
3 changed files with 13 additions and 6 deletions

View File

@ -0,0 +1,5 @@
{% extends 'link.html' %}
{% block link %}
<p>Bad link</p>
{% endblock %}

View File

@ -6,10 +6,10 @@
<main>
<form method="post" enctype="multipart/form-data" action="/import_link/import">
<ol>
<li> <input placeholder="insert link" type="link" name="import_type"/></li>
<li> <button name="import_type" type="submit" value="import_txt">.txt file list of links</button></li>
<li> <button name="import_type" type="submit" value="import_twitter_bookmarks">import twitter bookmarks</button></li>
<li> <button name="import_type" type="submit" value="import_raindrop_links">import links from raindrop.io</button></li>
<li> <input placeholder="insert link" type="link" name="import_link"/></li>
<li> <button name="import_txt" type="submit" value="import_txt">.txt file list of links</button></li>
<li> <button name="import_twitter" type="submit" value="import_twitter_bookmarks">import twitter bookmarks</button></li>
<li> <button name="import_raindrop" type="submit" value="import_raindrop_links">import links from raindrop.io</button></li>
</ol>
</form>
</main>

View File

@ -4,8 +4,10 @@
{% block content %}
<main>
<form class="dropzone dropzone-form" method="post" enctype="multipart/form-data" action="/upload/uploader">
<span id="dropzone-txt" class="dropzone-txt">Drop file here or click to upload.</span>
<form class="dropzone dropzone-form" method="post" enctype="multipart/form-data" action="/import_link/import_txt">
<span id="dropzone-txt" class="dropzone-txt">
Drop .txt file here or click to upload
(1 link per line pls). </span>
<input class="dropzone-input" type="file" name="file" runat="server" accept=".txt" multiple >
</form>
</main>