1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

Refactor settings layout and include JavaScript capture script

This commit is contained in:
codecalm
2025-03-23 22:36:26 +01:00
parent 3fc7b84fc4
commit 9c368702b4
3 changed files with 5 additions and 6 deletions

View File

@@ -103,6 +103,7 @@
</form> </form>
</div> </div>
{% capture_script %}
<script> <script>
document.addEventListener("DOMContentLoaded", function () { document.addEventListener("DOMContentLoaded", function () {
var themeConfig = { var themeConfig = {
@@ -165,3 +166,4 @@
checkItems() checkItems()
}) })
</script> </script>
{% endcapture_script %}

View File

@@ -50,8 +50,8 @@
{% modals %} {% modals %}
{% include "layout/js.html" %}
{% include "settings.html" %} {% include "settings.html" %}
{% include "layout/js.html" %}
</body> </body>
</html> </html>

View File

@@ -3,7 +3,6 @@ layout: settings
permalink: settings.html permalink: settings.html
--- ---
<div class="card-body"> <div class="card-body">
<h2 class="mb-4">My Account</h2> <h2 class="mb-4">My Account</h2>
@@ -46,14 +45,12 @@ permalink: settings.html
</div> </div>
</div> </div>
<h3 class="card-title mt-4">Password</h3> <h3 class="card-title mt-4">Password</h3>
<p class="card-subtitle">You can set a permanent password if you don't want to use temporary login codes.</p> <p class="card-subtitle">You can set a permanent password if you don't want to use temporary login codes.</p>
<div> <div>
{% include "ui/button.html" text="Set new password" %} {% include "ui/button.html" text="Set new password" %}
</div> </div>
<h3 class="card-title mt-4">Public profile</h3> <h3 class="card-title mt-4">Public profile</h3>
<p class="card-subtitle">Making your profile public means that anyone on the Dashkit network will be able to find <p class="card-subtitle">Making your profile public means that anyone on the Dashkit network will be able to find
you.</p> you.</p>