1
0

settings.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. {% extends "base.html" %} {% block title %}Settings - {{ app_name or 'Dune Weaver' }}{%
  2. endblock %}
  3. {% block additional_styles %}
  4. /* Dark mode styles for settings page */
  5. .dark .bg-white {
  6. background-color: #262626;
  7. }
  8. .dark .text-slate-900 {
  9. color: #e5e5e5;
  10. }
  11. .dark .text-slate-800 {
  12. color: #e5e5e5;
  13. }
  14. .dark .text-slate-700 {
  15. color: #d1d5db;
  16. }
  17. .dark .text-slate-600 {
  18. color: #9ca3af;
  19. }
  20. .dark .text-slate-500 {
  21. color: #9ca3af;
  22. }
  23. .dark .border-slate-200 {
  24. border-color: #404040;
  25. }
  26. .dark .border-slate-300 {
  27. border-color: #404040;
  28. }
  29. .dark .divide-slate-100 {
  30. border-color: #404040;
  31. }
  32. .dark .bg-slate-50 {
  33. background-color: #262626;
  34. }
  35. .dark .hover\:bg-slate-50:hover {
  36. background-color: #404040;
  37. }
  38. .dark .bg-slate-100 {
  39. background-color: #404040;
  40. }
  41. .dark .form-input {
  42. background-color: #262626;
  43. border-color: #404040;
  44. color: #e5e5e5;
  45. }
  46. .dark .form-input::placeholder {
  47. color: #9ca3af;
  48. }
  49. .dark .form-input:focus {
  50. border-color: #0c7ff2;
  51. ring-color: #0c7ff2;
  52. }
  53. .dark .form-select {
  54. background-color: #262626;
  55. border-color: #404040;
  56. color: #e5e5e5;
  57. }
  58. .dark .form-select:focus {
  59. border-color: #0c7ff2;
  60. ring-color: #0c7ff2;
  61. }
  62. .dark .focus\:ring-sky-500:focus {
  63. ring-color: #0c7ff2;
  64. }
  65. .dark .focus\:border-sky-500:focus {
  66. border-color: #0c7ff2;
  67. }
  68. .dark .hover\:text-gray-700:hover {
  69. color: #e5e5e5;
  70. }
  71. .dark .text-gray-400 {
  72. color: #9ca3af;
  73. }
  74. /* Autocomplete suggestions dark mode */
  75. .dark #clearFromInSuggestions,
  76. .dark #clearFromOutSuggestions {
  77. background-color: #262626;
  78. border-color: #404040;
  79. }
  80. .dark .suggestion-item {
  81. color: #e5e5e5;
  82. }
  83. .dark .suggestion-item:hover {
  84. background-color: #404040;
  85. }
  86. .dark .suggestion-item.selected {
  87. background-color: #0c7ff2;
  88. color: white;
  89. }
  90. /* Light mode autocomplete styles */
  91. .suggestion-item {
  92. padding: 8px 12px;
  93. cursor: pointer;
  94. color: #1f2937;
  95. transition: background-color 0.15s;
  96. }
  97. .suggestion-item:hover {
  98. background-color: #f3f4f6;
  99. }
  100. .suggestion-item.selected {
  101. background-color: #0c7ff2;
  102. color: white;
  103. }
  104. .suggestion-item mark {
  105. background-color: #fef3c7;
  106. font-weight: 600;
  107. }
  108. .dark .suggestion-item mark {
  109. background-color: #92400e;
  110. color: #fef3c7;
  111. }
  112. {% endblock %}
  113. {% block content %}
  114. <div class="layout-content-container flex flex-col w-full max-w-4xl gap-8 pt-2 pb-[75px]">
  115. <div
  116. class="flex flex-wrap justify-between items-center p-4 bg-white rounded-xl shadow-sm mt-2 sm:mt-8"
  117. >
  118. <h1
  119. class="text-slate-900 tracking-tight text-2xl sm:text-3xl font-bold leading-tight"
  120. >
  121. Settings
  122. </h1>
  123. </div>
  124. <section class="bg-white rounded-xl shadow-sm overflow-hidden">
  125. <h2
  126. class="text-slate-800 text-xl sm:text-2xl font-semibold leading-tight tracking-[-0.01em] px-6 py-4 border-b border-slate-200"
  127. >
  128. Device Connection
  129. </h2>
  130. <div class="divide-y divide-slate-100">
  131. <div
  132. class="flex items-center gap-4 px-6 py-5 hover:bg-slate-50 transition-colors"
  133. >
  134. <div
  135. class="text-slate-600 flex items-center justify-center rounded-lg bg-slate-100 shrink-0 size-12"
  136. >
  137. <span class="material-icons text-3xl">usb_off</span>
  138. </div>
  139. <div class="flex-1">
  140. <p class="text-slate-800 text-base font-medium leading-normal">
  141. Status
  142. </p>
  143. <p
  144. id="serialStatus"
  145. class="text-red-500 text-sm font-medium leading-normal"
  146. >
  147. Disconnected
  148. </p>
  149. </div>
  150. <button
  151. id="disconnectButton"
  152. class="text-xs font-medium text-slate-600 bg-red-100 hover:bg-red-200 text-red-700 px-3 py-1.5 rounded-md transition-colors"
  153. hidden
  154. >
  155. Disconnect
  156. </button>
  157. </div>
  158. <div id="portSelectionDiv" class="px-6 py-5 space-y-4">
  159. <label class="flex flex-col gap-1.5">
  160. <span class="text-slate-700 text-sm font-medium leading-normal"
  161. >Available Serial Ports</span
  162. >
  163. <div class="flex gap-3 items-center">
  164. <select
  165. id="portSelect"
  166. class="form-select flex-1 resize-none overflow-hidden rounded-lg text-slate-900 focus:outline-0 focus:ring-2 focus:ring-sky-500 border border-slate-300 bg-white focus:border-sky-500 h-10 placeholder:text-slate-400 px-4 text-base font-medium leading-normal transition-colors "
  167. >
  168. <option value="">Select a port...</option>
  169. </select>
  170. <button
  171. id="connectButton"
  172. class="flex items-center justify-center gap-2 min-w-[100px] cursor-pointer rounded-lg h-10 px-4 bg-sky-600 hover:bg-sky-700 text-white text-sm font-medium leading-normal tracking-[0.015em] transition-colors flex-shrink-0"
  173. >
  174. <span class="material-icons text-lg">cable</span>
  175. <span class="truncate">Connect</span>
  176. </button>
  177. </div>
  178. <p class="text-xs text-slate-500 mt-2">
  179. Select a port and click 'Connect' to establish a connection.
  180. </p>
  181. </label>
  182. </div>
  183. </div>
  184. </section>
  185. <section class="bg-white rounded-xl shadow-sm overflow-hidden">
  186. <h2
  187. class="text-slate-800 text-xl sm:text-2xl font-semibold leading-tight tracking-[-0.01em] px-6 py-4 border-b border-slate-200"
  188. >
  189. Application Settings
  190. </h2>
  191. <div class="px-6 py-5 space-y-6">
  192. <label class="flex flex-col gap-1.5">
  193. <span class="text-slate-700 text-sm font-medium leading-normal"
  194. >Application Name</span
  195. >
  196. <div class="flex gap-3 items-center">
  197. <div class="relative flex-1">
  198. <input
  199. id="appNameInput"
  200. class="form-input flex w-full min-w-0 resize-none overflow-hidden rounded-lg text-slate-900 focus:outline-0 focus:ring-2 focus:ring-sky-500 border border-slate-300 bg-white focus:border-sky-500 h-10 placeholder:text-slate-400 px-4 pr-10 text-base font-normal leading-normal transition-colors"
  201. placeholder="e.g., Dune Weaver"
  202. value="Dune Weaver"
  203. />
  204. <button
  205. type="button"
  206. onclick="document.getElementById('appNameInput').value='Dune Weaver';"
  207. class="absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-700"
  208. aria-label="Reset to default"
  209. title="Reset to default"
  210. >
  211. <span class="material-icons">restart_alt</span>
  212. </button>
  213. </div>
  214. <button
  215. id="saveAppName"
  216. class="flex items-center justify-center gap-2 min-w-[140px] cursor-pointer rounded-lg h-10 px-4 bg-sky-600 hover:bg-sky-700 text-white text-sm font-medium leading-normal tracking-[0.015em] transition-colors flex-shrink-0"
  217. >
  218. <span class="material-icons text-lg">save</span>
  219. <span class="truncate">Save Name</span>
  220. </button>
  221. </div>
  222. <p class="text-xs text-slate-500 mt-2">
  223. This name will appear in the browser tab and at the top of every page.
  224. </p>
  225. </label>
  226. </div>
  227. </section>
  228. <section class="bg-white rounded-xl shadow-sm overflow-hidden">
  229. <h2
  230. class="text-slate-800 text-xl sm:text-2xl font-semibold leading-tight tracking-[-0.01em] px-6 py-4 border-b border-slate-200"
  231. >
  232. Pattern Clearing
  233. </h2>
  234. <div class="px-6 py-5 space-y-6">
  235. <p class="text-sm text-slate-600">
  236. Customize the clearing behavior used when transitioning between patterns. Set custom patterns and speed to control how sand is distributed.
  237. </p>
  238. <!-- Clearing Speed Section -->
  239. <div class="bg-slate-50 rounded-lg p-4 space-y-4">
  240. <h3 class="text-slate-800 text-base font-semibold">Clearing Speed</h3>
  241. <p class="text-sm text-slate-600">
  242. Set a custom speed for clearing patterns. Leave empty to use the default pattern speed. This allows clearing patterns to run at a different speed than regular patterns.
  243. </p>
  244. <div class="flex flex-col gap-1.5">
  245. <label for="clearPatternSpeedInput" class="text-slate-700 text-sm font-medium leading-normal">
  246. Speed (steps per minute)
  247. </label>
  248. <div class="flex gap-3 items-center">
  249. <input
  250. id="clearPatternSpeedInput"
  251. type="number"
  252. min="50"
  253. max="2000"
  254. step="50"
  255. class="form-input flex-1 resize-none overflow-hidden rounded-lg text-slate-900 focus:outline-0 focus:ring-2 focus:ring-sky-500 border border-slate-300 bg-white focus:border-sky-500 h-10 placeholder:text-slate-400 px-4 text-base font-normal leading-normal transition-colors"
  256. placeholder="Default (use pattern speed)"
  257. value=""
  258. />
  259. <button
  260. id="saveClearSpeed"
  261. class="flex items-center justify-center gap-2 min-w-[120px] cursor-pointer rounded-lg h-10 px-4 bg-sky-600 hover:bg-sky-700 text-white text-sm font-medium leading-normal tracking-[0.015em] transition-colors"
  262. >
  263. <span class="material-icons text-lg">save</span>
  264. <span class="truncate">Save Speed</span>
  265. </button>
  266. </div>
  267. <div id="effectiveClearSpeed" class="text-xs text-slate-500 mt-1"></div>
  268. </div>
  269. </div>
  270. <!-- Custom Patterns Section -->
  271. <div class="bg-slate-50 rounded-lg p-4 space-y-4">
  272. <h3 class="text-slate-800 text-base font-semibold">Custom Clear Patterns</h3>
  273. <p class="text-sm text-slate-600">
  274. Choose specific patterns to use when clearing. Leave empty to use the default clearing behavior.
  275. </p>
  276. <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
  277. <div class="flex flex-col gap-1.5">
  278. <label for="customClearFromInInput" class="text-slate-700 text-sm font-medium leading-normal">Clear From Center Pattern</label>
  279. <div class="relative">
  280. <input
  281. id="customClearFromInInput"
  282. type="text"
  283. class="form-input w-full resize-none overflow-hidden rounded-lg text-slate-900 focus:outline-0 focus:ring-2 focus:ring-sky-500 border border-slate-300 bg-white focus:border-sky-500 h-10 placeholder:text-slate-400 px-4 pr-10 text-base font-normal leading-normal transition-colors"
  284. placeholder="Type to search patterns or leave empty for default"
  285. autocomplete="off"
  286. />
  287. <button
  288. type="button"
  289. id="clearFromInClear"
  290. class="absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 hidden"
  291. aria-label="Clear selection"
  292. title="Clear selection"
  293. >
  294. <span class="material-icons text-xl">close</span>
  295. </button>
  296. <div id="clearFromInSuggestions" class="absolute z-10 w-full mt-1 bg-white border border-slate-300 rounded-lg shadow-lg max-h-60 overflow-y-auto hidden"></div>
  297. </div>
  298. <p class="text-xs text-slate-500 mt-1">
  299. Pattern to use when clearing from the center outward.
  300. </p>
  301. </div>
  302. <div class="flex flex-col gap-1.5">
  303. <label for="customClearFromOutInput" class="text-slate-700 text-sm font-medium leading-normal">Clear From Perimeter Pattern</label>
  304. <div class="relative">
  305. <input
  306. id="customClearFromOutInput"
  307. type="text"
  308. class="form-input w-full resize-none overflow-hidden rounded-lg text-slate-900 focus:outline-0 focus:ring-2 focus:ring-sky-500 border border-slate-300 bg-white focus:border-sky-500 h-10 placeholder:text-slate-400 px-4 pr-10 text-base font-normal leading-normal transition-colors"
  309. placeholder="Type to search patterns or leave empty for default"
  310. autocomplete="off"
  311. />
  312. <button
  313. type="button"
  314. id="clearFromOutClear"
  315. class="absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 hidden"
  316. aria-label="Clear selection"
  317. title="Clear selection"
  318. >
  319. <span class="material-icons text-xl">close</span>
  320. </button>
  321. <div id="clearFromOutSuggestions" class="absolute z-10 w-full mt-1 bg-white border border-slate-300 rounded-lg shadow-lg max-h-60 overflow-y-auto hidden"></div>
  322. </div>
  323. <p class="text-xs text-slate-500 mt-1">
  324. Pattern to use when clearing from the perimeter inward.
  325. </p>
  326. </div>
  327. </div>
  328. <div class="flex justify-end">
  329. <button
  330. id="saveClearPatterns"
  331. class="flex items-center justify-center gap-2 min-w-[140px] cursor-pointer rounded-lg h-10 px-4 bg-sky-600 hover:bg-sky-700 text-white text-sm font-medium leading-normal tracking-[0.015em] transition-colors"
  332. >
  333. <span class="material-icons text-lg">save</span>
  334. <span class="truncate">Save Patterns</span>
  335. </button>
  336. </div>
  337. </div>
  338. </div>
  339. </section>
  340. <section class="bg-white rounded-xl shadow-sm overflow-hidden">
  341. <h2
  342. class="text-slate-800 text-xl sm:text-2xl font-semibold leading-tight tracking-[-0.01em] px-6 py-4 border-b border-slate-200"
  343. >
  344. WLED Configuration
  345. </h2>
  346. <div class="px-6 py-5 space-y-6">
  347. <label class="flex flex-col gap-1.5">
  348. <span class="text-slate-700 text-sm font-medium leading-normal"
  349. >IP Address</span
  350. >
  351. <div class="flex gap-3 items-center">
  352. <div class="relative flex-1">
  353. <input
  354. id="wledIpInput"
  355. class="form-input flex w-full min-w-0 resize-none overflow-hidden rounded-lg text-slate-900 focus:outline-0 focus:ring-2 focus:ring-sky-500 border border-slate-300 bg-white focus:border-sky-500 h-10 placeholder:text-slate-400 px-4 pr-10 text-base font-normal leading-normal transition-colors"
  356. placeholder="e.g., 192.168.1.100"
  357. value=""
  358. />
  359. <button
  360. type="button"
  361. onclick="document.getElementById('wledIpInput').value='';"
  362. class="absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-700"
  363. aria-label="Clear WLED IP"
  364. >
  365. <span class="material-icons">close</span>
  366. </button>
  367. </div>
  368. <button
  369. id="saveWledConfig"
  370. class="flex items-center justify-center gap-2 min-w-[140px] cursor-pointer rounded-lg h-10 px-4 bg-sky-600 hover:bg-sky-700 text-white text-sm font-medium leading-normal tracking-[0.015em] transition-colors flex-shrink-0"
  371. >
  372. <span class="material-icons text-lg">save</span>
  373. <span class="truncate">Save Configuration</span>
  374. </button>
  375. </div>
  376. <p class="text-xs text-slate-500 mt-2">
  377. Enter the IP address of your WLED controller.
  378. </p>
  379. </label>
  380. </div>
  381. </section>
  382. <section class="bg-white rounded-xl shadow-sm overflow-hidden">
  383. <h2
  384. class="text-slate-800 text-xl sm:text-2xl font-semibold leading-tight tracking-[-0.01em] px-6 py-4 border-b border-slate-200"
  385. >
  386. Auto-play on Boot
  387. </h2>
  388. <div class="px-6 py-5 space-y-6">
  389. <div class="flex items-center justify-between">
  390. <div class="flex-1">
  391. <h3 class="text-slate-700 text-base font-medium leading-normal">Enable Auto-play on Boot</h3>
  392. <p class="text-xs text-slate-500 mt-1">
  393. Automatically start playing a selected playlist when the system boots up.
  394. </p>
  395. </div>
  396. <label class="switch">
  397. <input type="checkbox" id="auto_playModeToggle">
  398. <span class="slider round"></span>
  399. </label>
  400. </div>
  401. <div id="auto_playSettings" class="space-y-4" style="display: none;">
  402. <label class="flex flex-col gap-1.5">
  403. <span class="text-slate-700 text-sm font-medium leading-normal">Startup Playlist</span>
  404. <select
  405. id="auto_playPlaylistSelect"
  406. class="form-select flex-1 resize-none overflow-hidden rounded-lg text-slate-900 focus:outline-0 focus:ring-2 focus:ring-sky-500 border border-slate-300 bg-white focus:border-sky-500 h-10 placeholder:text-slate-400 px-4 text-base font-medium leading-normal transition-colors"
  407. >
  408. <option value="">Select a playlist...</option>
  409. </select>
  410. <p class="text-xs text-slate-500 mt-1">
  411. Choose which playlist to automatically play when the system starts.
  412. </p>
  413. </label>
  414. <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
  415. <label class="flex flex-col gap-1.5">
  416. <span class="text-slate-700 text-sm font-medium leading-normal">Run Mode</span>
  417. <select
  418. id="auto_playRunModeSelect"
  419. class="form-select resize-none overflow-hidden rounded-lg text-slate-900 focus:outline-0 focus:ring-2 focus:ring-sky-500 border border-slate-300 bg-white focus:border-sky-500 h-10 placeholder:text-slate-400 px-4 text-base font-medium leading-normal transition-colors"
  420. >
  421. <option value="single">Single (play once)</option>
  422. <option value="loop">Loop (repeat forever)</option>
  423. </select>
  424. <p class="text-xs text-slate-500 mt-1">
  425. How to run the playlist when it finishes.
  426. </p>
  427. </label>
  428. <label class="flex flex-col gap-1.5">
  429. <span class="text-slate-700 text-sm font-medium leading-normal">Pause Between Patterns (seconds)</span>
  430. <input
  431. id="auto_playPauseTimeInput"
  432. type="number"
  433. min="0"
  434. step="0.5"
  435. class="form-input resize-none overflow-hidden rounded-lg text-slate-900 focus:outline-0 focus:ring-2 focus:ring-sky-500 border border-slate-300 bg-white focus:border-sky-500 h-10 placeholder:text-slate-400 px-4 text-base font-normal leading-normal transition-colors"
  436. placeholder="5.0"
  437. />
  438. <p class="text-xs text-slate-500 mt-1">
  439. Time to wait between each pattern (0 or more seconds).
  440. </p>
  441. </label>
  442. </div>
  443. <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
  444. <label class="flex flex-col gap-1.5">
  445. <span class="text-slate-700 text-sm font-medium leading-normal">Clear Pattern</span>
  446. <select
  447. id="auto_playClearPatternSelect"
  448. class="form-select resize-none overflow-hidden rounded-lg text-slate-900 focus:outline-0 focus:ring-2 focus:ring-sky-500 border border-slate-300 bg-white focus:border-sky-500 h-10 placeholder:text-slate-400 px-4 text-base font-medium leading-normal transition-colors"
  449. >
  450. <option value="none">None</option>
  451. <option value="adaptive">Adaptive</option>
  452. <option value="clear_from_in">Clear From Center</option>
  453. <option value="clear_from_out">Clear From Perimeter</option>
  454. <option value="clear_sideway">Clear Sideway</option>
  455. <option value="random">Random</option>
  456. </select>
  457. <p class="text-xs text-slate-500 mt-1">
  458. Pattern to run before each main pattern.
  459. </p>
  460. </label>
  461. <div class="flex items-center justify-between">
  462. <div class="flex-1">
  463. <h4 class="text-slate-700 text-sm font-medium leading-normal">Shuffle Playlist</h4>
  464. <p class="text-xs text-slate-500 mt-1">
  465. Randomize the order of patterns in the playlist.
  466. </p>
  467. </div>
  468. <label class="switch">
  469. <input type="checkbox" id="auto_playShuffleToggle">
  470. <span class="slider round"></span>
  471. </label>
  472. </div>
  473. </div>
  474. </div>
  475. </div>
  476. </section>
  477. <section class="bg-white rounded-xl shadow-sm overflow-hidden">
  478. <h2
  479. class="text-slate-800 text-xl sm:text-2xl font-semibold leading-tight tracking-[-0.01em] px-6 py-4 border-b border-slate-200"
  480. >
  481. Software Version
  482. </h2>
  483. <div class="divide-y divide-slate-100">
  484. <div class="flex items-center gap-4 px-6 py-5">
  485. <div
  486. class="text-slate-600 flex items-center justify-center rounded-lg bg-slate-100 shrink-0 size-12"
  487. >
  488. <span class="material-icons text-3xl">terminal</span>
  489. </div>
  490. <div class="flex-1">
  491. <p class="text-slate-800 text-base font-medium leading-normal">
  492. Current Version
  493. </p>
  494. <p id="currentVersionText" class="text-slate-500 text-sm font-normal leading-normal">Loading...</p>
  495. </div>
  496. </div>
  497. <div class="flex items-center gap-4 px-6 py-5">
  498. <div
  499. class="text-slate-600 flex items-center justify-center rounded-lg bg-slate-100 shrink-0 size-12"
  500. >
  501. <span class="material-icons text-3xl">system_update</span>
  502. </div>
  503. <div class="flex-1">
  504. <p class="text-slate-800 text-base font-medium leading-normal">
  505. Latest Version
  506. </p>
  507. <p id="latestVersionText" class="text-slate-500 text-sm font-normal leading-normal">Checking...</p>
  508. </div>
  509. <button
  510. id="updateSoftware"
  511. class="flex items-center justify-center gap-1.5 min-w-[84px] cursor-pointer rounded-lg h-9 px-3 bg-gray-400 text-white text-xs font-medium leading-normal tracking-[0.015em] transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
  512. disabled
  513. >
  514. <span id="updateIcon" class="material-icons text-base">download</span>
  515. <span id="updateText" class="truncate">Update</span>
  516. </button>
  517. </div>
  518. </div>
  519. </section>
  520. </div>
  521. {% endblock %} {% block scripts %}
  522. <script src="/static/js/settings.js"></script>
  523. {% endblock %}