Browse Source

update HTML and CSS in /user/site-settings.html template.

I did a lot of re-arranging of the settings alongside adding CSS and HTML stuff
to template in-general.
stable
Craig Oates 2 years ago
parent
commit
78cf655f5d
  1. 327
      templates/user/site-settings.html

327
templates/user/site-settings.html

@ -1,86 +1,265 @@
{% extends "layouts/default.html" %} {% extends "layouts/default.html" %}
{% block title %}Nicola Ellis & Ritherdon Archive{% endblock %} {% block title %}Nicola Ellis & Ritherdon Archive{% endblock %}
{% block content %} {% block content %}
<h1>Site Settings</h1> <main class="be-main">
<h1>Site Settings</h1>
<h2>Sign-Up</h2> <div class="be-quicklist">
<form action="/site-settings/update-sign-up" method="post"> <a class="be-gui-link"
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> title="Click to view your Dashboard"
<input type="checkbox" name="ENABLE-SIGN-UP" href="/dashboard">
{% if settings.enable-sign-up == 1 %} <img alt="Dashboard"
checked src="/images/icons/dashboard.png">
{% endif %} View Dashboard
> </a>
<label>Enable Sign-Up</label> <a class="be-gui-link"
<input type="submit" value="Save Changes"> title="Click to view your account details"
</form> href="/user/edit">
<img alt="My Account"
src="/images/icons/profile.png">
My Account
</a>
{% if roles.administrator %}
<a class="be-gui-link"
title="Click to view all accounts"
href="/users">
<img alt="Manage Accounts"
src="/images/icons/all-accounts.png">
Manage Accounts
</a>
{% endif %}
</div>
<h2>Nav. Menu</h2> <h2>Site Name</h2>
<form action="/site-settings/update-nav-menu" method="post"> <form class="be-gui-form"
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> action="/site-settings/update-site-name"
{% for page in pages %} method="post">
<input type="hidden" name="NAV-MENU[{{page.slug}}]" value="off"> <input required
<input type="checkbox" name="NAV-MENU[{{page.slug}}]" type="hidden"
{% if page.enable-nav-menu == 1 %} name="AUTHENTICITY-TOKEN"
value="on" value="{{token}}">
checked <div class="be-gui-form-row">
{% endif %} <input required
> type="text"
<label>{{page.title}}</label> name="SITE-NAME"
{% endfor %} value="{{settings.site-name}}">
<input type="submit" value="Update Nav. Menu"> <button class="be-gui-button-no-text"
</form> title="Click to update the website's name"
type="submit">
<img alt="Update site's name"
src="/images/icons/save.png">
</button>
</div>
</form>
<h2>Home Page</h2> <hr>
<form action="/site-settings/update-home-page" method="post">
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> <h2>Home Page</h2>
<p>Currently set to: {{settings.home-page}}</p> <p class="be-gui-form-hint">
<select required name="SET-HOME-PAGE"> Only 'Pages' can be used for the Home page. 'Archive Entries'
<option>Select Page</option> cannot be used because of how the website is designed.
</p>
<form class="be-gui-form"
action="/site-settings/update-home-page"
method="post">
<input required
type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<p>Currently set to: <strong>{{settings.home-page}}</strong></p>
<div class="be-gui-form-row">
<select required
name="SET-HOME-PAGE">
<option>Select Page</option>
{% for page in pages %}
<option value="{{page.slug}}">{{page.title}}</option>
{% endfor %}
</select>
<button class="be-gui-button-no-text"
title="Click to update the website's home page"
type="submit">
<img alt="Update site's home page"
src="/images/icons/save.png">
</button>
</div>
</form>
<hr>
<h2>Site Logo</h2>
<form class="be-gui-form"
action="/site-settings/update-site-logo"
method="post"
enctype="multipart/form-data">
<input required
type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<div class="be-gui-form-row">
<img class="be-gui-form-thumbnail"
alt="Site Logo"
src="/images/site-logo.png">
<input required
type="file"
name="SITE-LOGO">
<button class="be-gui-button-no-text"
title="Click to update the site's logo"
type="submit">
<img alt="Update site's logo"
src="/images/icons/save.png">
</button>
</div>
</form>
<form class="be-gui-form"
action="/site-settings/update-enable-site-logo"
method="post">
<input required
type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<div class="be-gui-form-row">
<input type="checkbox"
name="ENABLE-SITE-LOGO"
{% if settings.enable-site-logo == 1 %}
checked
{% endif %}
>
<label>Enable Site Logo</label>
<button class="be-gui-button-no-text"
title="Click to update the site's logo"
type="submit">
<img alt="Update site's logo"
src="/images/icons/save.png">
</button>
</div>
</form>
<hr>
<h2>Sign-Up</h2>
<p class="be-gui-form-hint">
Enabling this setting allows anyone to create account. If this
setting is disabled you can still create accounts via the
'Manage Accounts' link above.
</p>
<form class="be-gui-form"
action="/site-settings/update-sign-up"
method="post">
<input required
type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<div class="be-gui-form-row">
<input type="checkbox"
name="ENABLE-SIGN-UP"
{% if settings.enable-sign-up == 1 %}
checked
{% endif %}
>
<label>Enable Sign-Up</label>
<button class="be-gui-button-no-text"
title="Click to save 'Enable Sign-Up' setting"
type="submit">
<img alt="Save nav. menu setting for{{db-data.title}}"
src="/images/icons/save.png">
</button>
</div>
</form>
<hr>
<h2>Nav. Menu</h2>
<form class="be-gui-form"
action="/site-settings/update-nav-menu"
method="post">
<input required
type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
{% for page in pages %} {% for page in pages %}
<option value="{{page.slug}}">{{page.title}}</option> <div class="be-gui-form-row">
<input type="hidden"
name="NAV-MENU[{{page.slug}}]"
value="off">
<input type="checkbox"
name="NAV-MENU[{{page.slug}}]"
{% if page.enable-nav-menu == 1 %}
value="on"
checked
{% endif %}
>
<label>{{page.title}}</label>
</div>
{% endfor %} {% endfor %}
</select> <br>
<input type="submit" value="Set Home Page"> <button class="be-gui-button"
</form> title="Click to update Navigation Menu"
type="submit">
<h2>Site Name</h2> <img alt="Update Navigation Menu"
<form action="/site-settings/update-site-name" method="post"> src="/images/icons/save.png">
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> Update Navigation Menu
<input required type="text" name="SITE-NAME" value="{{settings.site-name}}"> </button>
<input type="submit" value="Save Changes"> </form>
</form>
<h2>Site-Wide Code Snippet</h2> <hr>
<form action="/site-settings/update-code-snippet" method="post">
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> <h2>Favicon</h2>
<input required type="text" name="CODE-SNIPPET" value="{{site-wide-snippet}}"> <p class="be-gui-form-hint">
<input type="submit" value="Save Changes"> A Favicon is the little image in the browser tab.
</form> </p>
<form class="be-gui-form"
action="/site-settings/update-favicon"
method="post"
enctype="multipart/form-data">
<input required
type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<div class="be-gui-form-row">
<img class="be-gui-form-thumbnail"
alt="Favicon"
src="/images/favicon.png">
<input required
type="file"
name="FAVICON-FILE">
<button class="be-gui-button-no-text"
title="Click to update the site's favicon"
type="submit">
<img alt="Update Favicon"
src="/images/icons/save.png">
</button>
</div>
</form>
<h2>Change Favicon</h2> <hr>
<img alt="Favicon" src="/images/favicon.png">
<form action="/site-settings/update-favicon" method="post" enctype="multipart/form-data">
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}">
<input required type="file" name="FAVICON-FILE">
<input type="submit" value="Save Changes">
</form>
<h2>Site Logo</h2> <h2>Site-Wide Code Snippet</h2>
<img alt="Site Logo" src="/images/site-logo.png"> <p class="be-gui-form-hint">
<form action="/site-settings/update-enable-site-logo" method="post"> Enter HTML and JavaScript in the text box below and it will be added to
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> each Page and Archive Entry automatically. The intended use-case for
<input type="checkbox" name="ENABLE-SITE-LOGO" this is adding a snippet provided by Umami to track page views, device
{% if settings.enable-site-logo == 1 %} types and which country the viewer is in. If you are unsure what any of
checked that means, just ignore this section.
{% endif %} </p>
> <form class="be-gui-form"
<label>Enable Site Logo</label> action="/site-settings/update-code-snippet"
<input type="submit" value="Save Changes"> method="post">
</form> <input required
<form action="/site-settings/update-site-logo" method="post" enctype="multipart/form-data"> type="hidden"
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> name="AUTHENTICITY-TOKEN"
<input required type="file" name="SITE-LOGO"> value="{{token}}">
<input type="submit" value="Save Changes"> <textarea required
</form> rows="10"
name="CODE-SNIPPET">{{site-wide-snippet}}
</textarea>
<button class="be-gui-button"
title="Click to save 'Enable Sign-Up' setting"
type="submit">
<img alt="Save nav. menu setting for{{db-data.title}}"
src="/images/icons/save.png">
Save Snippet
</button>
</form>
</main>
{% endblock %} {% endblock %}

Loading…
Cancel
Save