1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

Remove "Create Account" button when AllowSignup is set to false (#319)

Merge pull request #319
This commit is contained in:
Roch D'Amour
2022-02-16 02:56:27 -05:00
committed by GitHub
parent 3758eecc96
commit ac9d96c563
6 changed files with 29 additions and 10 deletions

View File

@@ -31,9 +31,15 @@
Forgot password?
</a>
<div class="flex space-x-2">
{{ if eq .AllowSignup true }}
<a href="signup">
<button type="button" class="btn-default">Sign up</button>
</a>
{{ else }}
<a title="The administrator of this instance has disabled sign up.">
<button type="button" class="btn-disabled" disabled > Sign up </button>
</a>
{{ end }}
<button type="submit" class="btn-primary">Log in</button>
</div>
</div>
@@ -46,4 +52,4 @@
{{ template "foot.tpl.html" . }}
</body>
</html>
</html>

View File

@@ -83,9 +83,15 @@
<a href="login">
<button type="button" class="btn-default">Log in</button>
</a>
{{ if eq .AllowSignup true }}
<button type="submit" class="btn-primary">
Create Account
</button>
{{ else }}
<button type="submit" class="btn-disabled" disabled title="The administrator of this instance has disabled sign up.">
Create Account
</button>
{{ end }}
</div>
</form>
</div>
@@ -97,4 +103,4 @@
</body>
</html>
</html>