settings_form.html 821 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {% extends "base_detail.html" %}
  2. {% load mathfilters %}
  3. {% load static %}
  4. {% load naturalduration %}
  5. {% block head_extra %}
  6. <style>
  7. .container {
  8. max-width: 500px;
  9. float:left;
  10. }
  11. p {
  12. margin-bottom: 15px;
  13. }
  14. label {
  15. display: block;
  16. font-weight: bold;
  17. margin-bottom: 5px;
  18. }
  19. input[type="text"] {
  20. width: 100%;
  21. padding: 8px;
  22. border: 1px solid #ccc;
  23. border-radius: 4px;
  24. font-size: 14px;
  25. }
  26. input[type="checkbox"] {
  27. margin-left: 5px;
  28. transform: scale(1.2);
  29. }
  30. input:focus {
  31. outline: none;
  32. border-color: #007bff;
  33. box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
  34. }
  35. </style>
  36. {% endblock %}
  37. {% block title %}Settings{% endblock %}
  38. {% block details %}
  39. <form method="post">{% csrf_token %}
  40. {{form.as_p}}
  41. <input type="submit" value="Save">
  42. </form>
  43. {% endblock %}