|
|
@ -1,17 +1,11 @@
|
|
|
|
{% extends "dash/_frame.twig" %}
|
|
|
|
{% extends "dash/_frame.twig" %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if render %}
|
|
|
|
|
|
|
|
{% set renderOnSave = 'true' %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{% set renderOnSave = 'false' %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{% block title %}
|
|
|
|
{{ title }}
|
|
|
|
{{ title }}
|
|
|
|
{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block stylesheets %}
|
|
|
|
{% block stylesheets %}
|
|
|
|
<link rel="stylesheet" type="text/css" href="/assets/css/dash.css?=asdfdf">
|
|
|
|
<link rel="stylesheet" type="text/css" href="/assets/css/dash.css?=cvvvb">
|
|
|
|
{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block mainContent %}
|
|
|
|
{% block mainContent %}
|
|
|
@ -26,60 +20,86 @@
|
|
|
|
<svg id="submit-update" class="icons">
|
|
|
|
<svg id="submit-update" class="icons">
|
|
|
|
<use id="submit-update" xlink:href="/assets/images/global/sprite.svg#entypo-publish"/>
|
|
|
|
<use id="submit-update" xlink:href="/assets/images/global/sprite.svg#entypo-publish"/>
|
|
|
|
</svg>
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button id="render-toggle" title="render on save toggle" data-render="{{ renderOnSave }}">
|
|
|
|
|
|
|
|
<svg id="render-toggle" class="icons">
|
|
|
|
|
|
|
|
<use id="submit-update" xlink:href="/assets/images/global/sprite.svg#entypo-circular-graph"/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="site-background">
|
|
|
|
|
|
|
|
<label>Site Header</label>
|
|
|
|
|
|
|
|
<img id="background" src="{{background}}" alt="image for site background" for="background-upload"/>
|
|
|
|
|
|
|
|
<input id="background-upload" type="file" name="backgrond-upload" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="settings-index">
|
|
|
|
<div id="settings-index">
|
|
|
|
<div id="settings-index-wrapper">
|
|
|
|
<div id="settings-index-wrapper">
|
|
|
|
<div id="member-settings" class="columns">
|
|
|
|
<div id="member-settings">
|
|
|
|
<div id="member-settings-1" class="column is-one-third">
|
|
|
|
<div id="member-images" class="columns">
|
|
|
|
<div id="member-avatar-drop">
|
|
|
|
<div class="column is-one-third">
|
|
|
|
<img id="avatar" src="{{member['avatar']}}" for="avatar-upload"/>
|
|
|
|
<div id="member-avatar-drop">
|
|
|
|
<input id="avatar-upload" type="file" name="avatar-upload" />
|
|
|
|
<img id="avatar" src="{{member['avatar']}}" for="avatar-upload"/>
|
|
|
|
|
|
|
|
<input id="avatar-upload" type="file" name="avatar-upload" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="column is-two-thirds">
|
|
|
|
<div class="column is-three-fifths">
|
|
|
|
<div id="site-background">
|
|
|
|
<div class="columns">
|
|
|
|
<img id="background" src="{{background}}" alt="image for site background" for="background-upload"/>
|
|
|
|
<div id="member-settings-2" class="column">
|
|
|
|
<input id="background-upload" type="file" name="backgrond-upload" />
|
|
|
|
<input type='text' name='handle' id='settings-handle' placeholder='handle' value="{{member['handle']}}" autofocus />
|
|
|
|
</div>
|
|
|
|
<input type='text' name='email' id='settings-email' placeholder='email' value="{{member['email']}}" autofocus />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="member-settings-3" class="column">
|
|
|
|
|
|
|
|
<input type='text' name='base-url' id='settings-url' placeholder='url' value="{{baseUrl}}" autofocus />
|
|
|
|
|
|
|
|
<input type='text' name='base-title' id='settings-title' placeholder='site title' value="{{siteTitle}}" autofocus />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="columns">
|
|
|
|
</div>
|
|
|
|
<div class="column is-full">
|
|
|
|
<div id="member-meta" class="columns">
|
|
|
|
<textarea id="settings-desc" type='text' name='settings_desc' class='settings-dec' placeholder='description stuff', autofocus>{{desc}}</textarea><br />
|
|
|
|
<div class="column is-one-third">
|
|
|
|
<label>YOUR API KEY</label><br />
|
|
|
|
<input type='text' name='handle' id='settings-handle' placeholder='handle' value="{{member['handle']}}" autofocus />
|
|
|
|
<span id="key">{{member['key']}}</span>
|
|
|
|
<input type='text' name='email' id='settings-email' placeholder='email' value="{{member['email']}}" autofocus />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column is-one-third">
|
|
|
|
|
|
|
|
<input type='text' name='base-url' id='settings-url' placeholder='url' value="{{baseUrl}}" autofocus />
|
|
|
|
|
|
|
|
<input type='text' name='base-title' id='settings-title' placeholder='site title' value="{{siteTitle}}" autofocus />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column is-one-third">
|
|
|
|
|
|
|
|
<textarea id="settings-desc" type='text' name='settings_desc' class='settings-dec' placeholder='description stuff', autofocus>{{desc}}</textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="member-utils" class="columns">
|
|
|
|
<div id="feature-settings">
|
|
|
|
<div id="util-1" class="column is-one-third">
|
|
|
|
<div id="features" class="columns">
|
|
|
|
<button id="create-backup">BACK UP YOUR SITE</button><br />
|
|
|
|
<div class="column">
|
|
|
|
</div>
|
|
|
|
<div id="feature-api">
|
|
|
|
<div id="util-2" class="column is-three-fifths">
|
|
|
|
{% if apiStatus is defined and apiStatus == "true" %}
|
|
|
|
{% if lastBackup != '' %}
|
|
|
|
<button id="api-access-toggle" title="allow external api" data-enabled="true">
|
|
|
|
<div class="backup-meta">
|
|
|
|
<svg id="api-access-toggle" class="icons">
|
|
|
|
LAST BACK UP <a href="/api/v1/files">{{lastBackup}}</a><br />
|
|
|
|
<use id="api-access-toggle" xlink:href="/assets/images/global/sprite.svg#entypo-landline"/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<span id="api-status">EXTERNAL API ACCESS ENABLED</span>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<button id="api-access-toggle" title="allow external api" data-enabled="false">
|
|
|
|
|
|
|
|
<svg id="api-access-toggle" class="icons">
|
|
|
|
|
|
|
|
<use id="api-access-toggle" xlink:href="/assets/images/global/sprite.svg#entypo-landline"/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<span id="api-status">EXTERNAL API ACCESS NOT ENABLED</span>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<span>span No back ups. Frowny face.</span>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="column">
|
|
|
|
|
|
|
|
<div id="dynamic-api">
|
|
|
|
|
|
|
|
{% if dynamicRenderStatus is defined and dynamicRenderStatus == "true" %}
|
|
|
|
|
|
|
|
<button id="dynamic-render-toggle" title="allow external api" data-enabled="true">
|
|
|
|
|
|
|
|
<svg id="dynamic-render-toggle" class="icons">
|
|
|
|
|
|
|
|
<use id="dynamic-render-toggle" xlink:href="/assets/images/global/sprite.svg#entypo-text-document-inverted"/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<span id="dynamic-render-status">DYNAMIC PAGE RENDERING</span>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<button id="dynamic-render-toggle" title="allow external api" data-enabled="false">
|
|
|
|
|
|
|
|
<svg id="dynamic-render-toggle" class="icons">
|
|
|
|
|
|
|
|
<use id="dynamic-render-toggle" xlink:href="/assets/images/global/sprite.svg#entypo-text-document-inverted"/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<span id="dynamic-render-status">STATIC PAGE RENDERING</span>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="option-settings" class="columns">
|
|
|
|
<div id="option-settings" class="columns">
|
|
|
@ -117,27 +137,43 @@
|
|
|
|
{% endapply %}
|
|
|
|
{% endapply %}
|
|
|
|
<button id="send-mail">TEST MAIL</button>
|
|
|
|
<button id="send-mail">TEST MAIL</button>
|
|
|
|
<br /><br />
|
|
|
|
<br /><br />
|
|
|
|
<label>API SETTINGS</label><br />
|
|
|
|
|
|
|
|
<div id="settings-api">
|
|
|
|
</div>
|
|
|
|
{% if apiStatus is defined and apiStatus == "true" %}
|
|
|
|
</div>
|
|
|
|
<button id="api-access-toggle" title="allow external api" data-enabled="true">
|
|
|
|
<div id="token-settings">
|
|
|
|
<svg id="api-access-toggle" class="icons">
|
|
|
|
<div id="keys-tokens" class="columns">
|
|
|
|
<use id="api-access-toggle" xlink:href="/assets/images/global/sprite.svg#entypo-landline"/>
|
|
|
|
<div class="column">
|
|
|
|
</svg>
|
|
|
|
<label>API KEY</label>
|
|
|
|
</button>
|
|
|
|
<div id="member-api-key">
|
|
|
|
<span id="api-status">EXTERNAL API ACCESS ENABLED</span>
|
|
|
|
{{member['key']}}
|
|
|
|
{% else %}
|
|
|
|
</div>
|
|
|
|
<button id="api-access-toggle" title="allow external api" data-enabled="false">
|
|
|
|
|
|
|
|
<svg id="api-access-toggle" class="icons">
|
|
|
|
|
|
|
|
<use id="api-access-toggle" xlink:href="/assets/images/global/sprite.svg#entypo-landline"/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<span id="api-status">EXTERNAL API ACCESS NOT ENABLED</span>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
|
|
|
|
|
|
|
<label>FORM TOKEN</label>
|
|
|
|
|
|
|
|
<div id="form-token">
|
|
|
|
|
|
|
|
{{ftoken}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="backup-settings">
|
|
|
|
|
|
|
|
<div class="columns">
|
|
|
|
|
|
|
|
<div class="column">
|
|
|
|
|
|
|
|
<button id="create-backup">BACK UP YOUR SITE</button><br />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
|
|
|
|
|
|
|
{% if lastBackup != '' %}
|
|
|
|
|
|
|
|
<div class="backup-meta">
|
|
|
|
|
|
|
|
LAST BACK UP <a href="/api/v1/files">{{lastBackup}}</a><br />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<span>span No back ups. Frowny face.</span>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|