editlink.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html>
  3. <head>{include="includes"}
  4. <link type="text/css" rel="stylesheet" href="../inc/awesomplete.css" />
  5. </head>
  6. <body
  7. {if="$link.title==''"}onload="document.linkform.lf_title.focus();"
  8. {elseif="$link.description==''"}onload="document.linkform.lf_description.focus();"
  9. {else}onload="document.linkform.lf_tags.focus();"{/if} >
  10. <div id="pageheader">
  11. {if="$source !== 'firefoxsocialapi'"}
  12. {include="page.header"}
  13. {/if}
  14. <div id="editlinkform">
  15. <form method="post" name="linkform">
  16. <input type="hidden" name="lf_linkdate" value="{$link.linkdate}">
  17. <label for="lf_url"><i>URL</i></label><br><input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input"><br>
  18. <label for="lf_title"><i>Title</i></label><br><input type="text" name="lf_title" id="lf_title" value="{$link.title}" class="lf_input"><br>
  19. <label for="lf_description"><i>Description</i></label><br><textarea name="lf_description" id="lf_description" rows="4" cols="25">{$link.description}</textarea><br>
  20. <label for="lf_tags"><i>Tags</i></label><br>
  21. <input type="text" name="lf_tags" id="lf_tags" value="{$link.tags}" class="lf_input"
  22. data-list="{loop="$tags"}{$key}, {/loop}" data-multiple autocomplete="off" ><br>
  23. {loop="$edit_link_plugin"}
  24. {$value}
  25. {/loop}
  26. {if="($link_is_new && $default_private_links) || $link.private == true"}
  27. <input type="checkbox" checked="checked" name="lf_private" id="lf_private">
  28. &nbsp;<label for="lf_private"><i>Private</i></label><br>
  29. {else}
  30. <input type="checkbox" name="lf_private" id="lf_private">
  31. &nbsp;<label for="lf_private"><i>Private</i></label><br>
  32. {/if}
  33. <input type="submit" value="Save" name="save_edit" class="bigbutton">
  34. <input type="submit" value="Cancel" name="cancel_edit" class="bigbutton">
  35. {if="!$link_is_new"}<input type="submit" value="Delete" name="delete_link" class="bigbutton delete" onClick="return confirmDeleteLink();">{/if}
  36. <input type="hidden" name="token" value="{$token}">
  37. {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer}">{/if}
  38. </form>
  39. </div>
  40. </div>
  41. {if="$source !== 'firefoxsocialapi'"}
  42. {include="page.footer"}
  43. {/if}
  44. <script src="inc/awesomplete.min.js#"></script>
  45. <script src="inc/awesomplete-multiple-tags.js#"></script>
  46. <script>
  47. awesompleteUniqueTag('#lf_tags');
  48. </script>
  49. </body>
  50. </html>