Browse Source

Add create account button to login page

master
Skylar Ittner 4 months ago
parent
commit
a514e66969
1 changed files with 12 additions and 3 deletions
  1. 12
    3
      login/parts/username.php

+ 12
- 3
login/parts/username.php View File

@@ -21,8 +21,17 @@ $_SESSION['check'] = "username";
21 21
     </div>
22 22
 
23 23
     <div class="d-flex">
24
-        <button type="submit" class="btn btn-primary ml-auto">
25
-            <i class="fas fa-chevron-right"></i> <?php $Strings->get("continue"); ?>
26
-        </button>
24
+        <div class="ml-auto">
25
+            <?php
26
+            if ($SETTINGS['signups_enabled'] === true) {
27
+                ?>
28
+                <a href="../signup/" class="btn btn-link mr-2"><?php $Strings->get("Create Account"); ?></a>
29
+                <?php
30
+            }
31
+            ?>
32
+            <button type="submit" class="btn btn-primary">
33
+                <i class="fas fa-chevron-right"></i> <?php $Strings->get("continue"); ?>
34
+            </button>
35
+        </div>
27 36
     </div>
28 37
 </form>

Loading…
Cancel
Save