master
Aevann 2023-08-23 02:59:17 +03:00
parent 778a477eac
commit 79f2f81ea7
2 changed files with 21 additions and 21 deletions

View File

@ -6,14 +6,14 @@
<p class="mb-md-5">wants to access your @{{v.username}} account.</p>
<p class="mb-md-5">It will not be able to see your password, or change your account settings.</p>
<form action="/authorize" method="post" class="mt-md-3" id="login">
<input hidden name="formkey" value="{{v|formkey}}">
<input hidden name="scopes" value="{{scopes_txt}}">
<input hidden name="redirect_uri" value="{{redirect_uri}}">
<input hidden name="permanent" value="{{permanent}}">
<input hidden name="client_id" value="{{application.client_id}}">
<input hidden name="state" value="{{state}}">
<input type="submit" class="btn btn-primary" id="auth_button" value="Authorize {{application.app_name}}">
<a href="/" class="btn btn-secondary">No, back to {{SITE_NAME}}</a>
<input hidden name="formkey" value="{{v|formkey}}">
<input hidden name="scopes" value="{{scopes_txt}}">
<input hidden name="redirect_uri" value="{{redirect_uri}}">
<input hidden name="permanent" value="{{permanent}}">
<input hidden name="client_id" value="{{application.client_id}}">
<input hidden name="state" value="{{state}}">
<input type="submit" class="btn btn-primary" id="auth_button" value="Authorize {{application.app_name}}">
<a href="/" class="btn btn-secondary">No, back to {{SITE_NAME}}</a>
</form>
</div>
{% endblock %}

View File

@ -25,19 +25,19 @@
<div class="body w-lg-100 d-lg-flex">
<div class="d-flex">
<form action="{{form_action}}" id="{{id}}-form" method="post" class="color-picker" style="line-height: 0">
<input hidden name="formkey" value="{{v|formkey}}">
{% for themecolor in COLORS %}
<input autocomplete="off" type="radio" name="{{form_name}}" id="{{id}}-{{themecolor}}" value="{{themecolor}}" {% if current_color == themecolor %}checked{% endif %} data-nonce="{{g.nonce}}" onclick_submit>
<label class="color-radio" for="{{id}}-{{themecolor}}">
<span style="background-color: #{{themecolor}}">
{% if current_color and current_color.lower() == themecolor %}
<i class="fas fa-check text-white"></i>
{% else %}
&nbsp;
{% endif %}
</span>
</label>
{% endfor %}
<input hidden name="formkey" value="{{v|formkey}}">
{% for themecolor in COLORS %}
<input autocomplete="off" type="radio" name="{{form_name}}" id="{{id}}-{{themecolor}}" value="{{themecolor}}" {% if current_color == themecolor %}checked{% endif %} data-nonce="{{g.nonce}}" onclick_submit>
<label class="color-radio" for="{{id}}-{{themecolor}}">
<span style="background-color: #{{themecolor}}">
{% if current_color and current_color.lower() == themecolor %}
<i class="fas fa-check text-white"></i>
{% else %}
&nbsp;
{% endif %}
</span>
</label>
{% endfor %}
</form>
</div>
<p class="text-small mb-2">Or type a color hex code:</p>