]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - themes/baggy/_pocheit-form.twig
saving link form now sends ajax request, article view is now justified
[github/wallabag/wallabag.git] / themes / baggy / _pocheit-form.twig
index 3c4a4d6ebf01b7b4fc8e0175197839676c8e40e0..505ec368e30754fe71858d8a8fdf0bb3161b56de 100755 (executable)
@@ -1,8 +1,10 @@
 <div id="bagit-form" class="messages info">
-
-    <form method="get" action="index.php">
-        <h2>{% trans "Save a link" %}</h2>
+    <form method="get" action="index.php" target="_blank" id="bagit-form-form">
+        <h2><a href="javascript: void(null);" id="bagit-form-close">X</a>
+        {% trans "Save a link" %}</h2>
+        <input type="hidden" name="autoclose" value="1" />
         <input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" />
         <input type="submit" value="{% trans "save link!" %}" />
+        <div id="add-link-result"></div>
     </form>
 </div>