clip-form.tpl 885 B

1234567891011121314151617181920212223242526272829303132333435
  1. % from app.data.filter import get_query_param
  2. % content = setdefault("content", "") or ""
  3. % disabled = (setdefault("disabled", False) or "") and 'disabled="true"'
  4. <form id="paste" method="{{ method }}" action="{{ action }}">
  5. <style>
  6. select::-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. >{{ content }}</textarea>
  33. </form>
  34. <form id="new" method="get" action="{{ action }}">
  35. </form>