]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tpl/changetag.html
Keep up with master changes
[github/shaarli/Shaarli.git] / tpl / changetag.html
index b0bd0d064b9aa6282c1f99642322431269fc207b..13cc5cf1ede43a62815f4f18c225face60ce154b 100644 (file)
@@ -1,16 +1,34 @@
 <!DOCTYPE html>
 <html>
-<head>{include="includes"}</head>
+<head>{include="includes"}
+    <link type="text/css" rel="stylesheet" href="../inc/awesomplete.css" />
+    <script src="inc/awesomplete.min.js#"></script>
+</head>
 <body onload="document.changetag.fromtag.focus();">
 <div id="pageheader">
        {include="page.header"}
        <form method="POST" action="" name="changetag" id="changetag">
-       <input type="hidden" name="token" value="{$token}">
-       Tag: <input type="text" name="fromtag" id="fromtag">
-       <input type="text" name="totag" style="margin-left:40px;"><input type="submit" name="renametag" value="Rename tag" class="bigbutton">
-       &nbsp;&nbsp;or&nbsp; <input type="submit" name="deletetag" value="Delete tag" class="bigbutton" onClick="return confirmDeleteTag();"><br>(Case sensitive)</form>
-<script language="JavaScript">function confirmDeleteTag() { var agree=confirm("Are you sure you want to delete this tag from all links ?"); if (agree) return true ; else return false ; }</script>
+        <input type="hidden" name="token" value="{$token}">
+        <div>
+            <label for="fromtag">Tag:</label>
+        </div>
+        <div>
+            <input type="text" name="fromtag" id="fromtag" list="tagsList" autocomplete="off" class="awesomplete" data-minChars="1"  />
+            <datalist id="tagsList">
+                {loop="$tags"}<option>{$key}</option>{/loop}
+            </datalist>
+        </div>
+
+        <div>
+            <input type="text" name="totag" id="totag">
+            <input type="submit" name="renametag" value="Rename tag" class="bigbutton">
+       &nbsp;&nbsp;or&nbsp; <input type="submit" name="deletetag" value="Delete tag" class="bigbutton" onClick="return confirmDeleteTag();">
+        </div>
+    </form>
+    <div class="clear white">(Case sensitive)</div>
+</div>
+<script>function confirmDeleteTag() { var agree=confirm("Are you sure you want to delete this tag from all links ?"); if (agree) return true ; else return false ; }</script>
 </div>
 {include="page.footer"}
 </body>
-</html>
\ No newline at end of file
+</html>