fix bugs resulting from fdd608532b

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-29 03:26:41 +02:00
parent 1ee7ec323a
commit 7915d9f0aa
7 changed files with 7 additions and 7 deletions

View File

@ -49,7 +49,7 @@
<small class="d-block my-3"><a href="/forgot">Forgot password?</a></small>
<button type="button" class="btn btn-primary login w-100 mt-3" id="login_button">Sign In</button>
<button type="submit" class="btn btn-primary login w-100 mt-3" id="login_button">Sign In</button>
<div class="text-center text-muted text-small mt-5 mb-3">
Don't have an account? <a href="/signup{{'?redirect='+redirect if redirect else ''}}" class="font-weight-bold toggle-login">Sign up</a>

View File

@ -46,7 +46,7 @@
<input autocomplete="off" class="form-control" id="2fa_token" name="2fa_token" type="text" placeholder="6-digit code">
<small><a href="/lost_2fa">Lost your 2FA device?</a></small>
<button type="button" class="btn btn-primary login w-100 mt-3" id="login_button">Sign in</button>
<button type="submit" class="btn btn-primary login w-100 mt-3" id="login_button">Sign in</button>
</form>

View File

@ -1,7 +1,7 @@
{% if v and v.id==p.author_id and p.private %}
<form action="/publish/{{p.id}}" method="post">
<input type="hidden" name="formkey", value="{{v.formkey}}">
<button type="button" class="list-inline-item text-small p-0 m-0 mr-3 border-0 nobackground font-weight-bold" type="submit" onclick="disable(this)"><i class="fas fa-globe"></i>Publish</button>
<button type="submit" class="list-inline-item text-small p-0 m-0 mr-3 border-0 nobackground font-weight-bold" type="submit" onclick="disable(this)"><i class="fas fa-globe"></i>Publish</button>
</form>
{% endif %}

View File

@ -1,7 +1,7 @@
{% if v and v.id==p.author_id and p.private %}
<form class="btn-block" action="/publish/{{p.id}}" method="post">
<input type="hidden" name="formkey", value="{{v.formkey}}">
<button type="button" class="nobackground btn btn-link btn-lg text-left text-muted" data-bs-dismiss="modal" type="submit" onclick="disable(this)"><i class="fas fa-globe text-center mr-2"></i>Publish</button>
<button type="submit" class="nobackground btn btn-link btn-lg text-left text-muted" data-bs-dismiss="modal" type="submit" onclick="disable(this)"><i class="fas fa-globe text-center mr-2"></i>Publish</button>
</form>
{% endif %}

View File

@ -104,7 +104,7 @@
<div class="h-captcha" data-sitekey="{{hcaptcha}}" data-theme="dark"></div>
{% endif %}
<button type="button" class="btn btn-primary login w-100 mt-3" id="register_button">Register</button>
<button type="submit" class="btn btn-primary login w-100 mt-3" id="register_button">Register</button>
<div class="text-center text-muted text-small mt-5 mb-3">
Already have an account? <a href="/login{{'?redirect='+redirect if redirect else ''}}" class="font-weight-bold toggle-login">Log in</a>

View File

@ -804,7 +804,7 @@
<small class="format d-none"><i class="fas fa-link" aria-hidden="true"></i></small>
</div>
<button type="button" form="post-edit-form-{{p.id}}" class="btn btn-primary ml-2 fl-r" onclick="disable(this);remove_dialog()">Save Edit</button>
<button type="submit" form="post-edit-form-{{p.id}}" class="btn btn-primary ml-2 fl-r" onclick="disable(this);remove_dialog()">Save Edit</button>
<button type="button" onclick="togglePostEdit('{{p.id}}');remove_dialog()" class="btn btn-link text-muted ml-auto cancel-form fl-r">Cancel</button>
</form>
<div id="post-edit-{{p.id}}" class="preview mb-3 mt-5"></div>

View File

@ -132,7 +132,7 @@
</div>
<div class="col text-right">
{% if error %}<span class="text-danger text-large mr-2">{{error | safe}}</span>{% endif %}
<button type="button" class="btn btn-primary" id="create_button" type="submit" onclick="disable(this)" disabled>Post</button>
<button type="submit" class="btn btn-primary" id="create_button" type="submit" onclick="disable(this)" disabled>Post</button>
</div>
</div>
</div>