clip-form.tpl 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. % from app.data.filter import get_query_param
  2. % content = setdefault("content", "") or ""
  3. % disabled = (setdefault("disabled", False) and 'readonly="true"') or ""
  4. <form id="paste" method="{{ method }}" action="{{ action }}" enctype="multipart/form-data">
  5. <style>
  6. textarea::-webkit-scrollbar {
  7. width: 11px;
  8. }
  9. textarea {
  10. color: #cccccc;
  11. background-color: #080808;
  12. scrollbar-width: thin;
  13. scrollbar-color: var(--thumbBG) var(--scrollbarBG);
  14. }
  15. textarea::-webkit-scrollbar-track {
  16. background: var(--scrollbarBG);
  17. }
  18. textarea::-webkit-scrollbar-thumb {
  19. background-color: var(--thumbBG) ;
  20. border-radius: 6px;
  21. border: 3px solid var(--scrollbarBG);
  22. }
  23. </style>
  24. <textarea
  25. style="width: 80%"
  26. id="paste-text-area"
  27. name="paste"
  28. rows="30"
  29. {{!disabled}}
  30. required="true"
  31. autofocus="true"
  32. placeholder="Paste something here..."
  33. >{{ content }}</textarea>
  34. </form>
  35. <form id="copy" method="post" action="{{ action }}">
  36. <input id="copy-paste" name="paste" type="text" value="{{ content }}" hidden="true" />
  37. <input id="copy" name="copy" type="text" value="true" hidden="true" />
  38. </form>
  39. <form id="new" method="get" action="{{ action }}"></form>