| 123456789101112131415161718192021222324252627 |
- <% layout("/en/layout") %>
- <%~ include("/en/partials/topbar") %>
- <h2>settings</h2>
- <% const errorValue = it.error?.split('.').reduce((a, b) => a[b], it.lang.settings?.errors)?.(it?.errorDetails) %>
- <% if (typeof errorValue === "string") { %>
- <div class="message error">
- <p><%= errorValue %></p>
- </div>
- <% } %>
- <form action="/en/settings" method="post">
- <div>
- <input type="checkbox" id="postDataEnabled" name="postDataEnabled" <%= it.postDataEnabled !== "false" ? `checked` : `` %> value="true">
- <label for="postDataEnabled">post data</label>
- </div>
- <div>
- <label for="cloudURL">cloud url</label>
- <input type="text" id="cloudURL" name="cloudURL" placeholder="wss://meteostanica.com" value="<%= it.cloudURL ?? `wss://meteostanica.com` %>">
- </div>
- <button type="submit">save</button>
- </form>
|