Browse code

Initial commit

Benjamin Roth authored on16/03/2023 20:22:35
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,58 @@
1
+<!-- indexer::stop -->
2
+<div class="<?= $this->class ?> <?= $this->logout ? 'logout' : 'login' ?> block" <?= $this->cssID ?><?php if ($this->style) : ?> style="<?= $this->style ?>" <?php endif; ?>>
3
+
4
+  <?php if ($this->headline) : ?>
5
+    <<?= $this->hl ?>><?= $this->headline ?></<?= $this->hl ?>>
6
+  <?php endif; ?>
7
+
8
+  <form<?php if ($this->action) : ?> action="<?= $this->action ?>" <?php endif; ?> id="<?= $this->formId ?>" method="post">
9
+    <div class="formbody">
10
+      <?php if ($this->message) : ?>
11
+        <p class="error"><?= $this->message ?></p>
12
+      <?php endif; ?>
13
+      <input type="hidden" name="FORM_SUBMIT" value="<?= $this->formId ?>">
14
+      <input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
15
+      <input type="hidden" name="_target_path" value="<?= $this->targetPath ?>">
16
+      <input type="hidden" name="_always_use_target_path" value="<?= $this->forceTargetPath ?>">
17
+      <?php if ($this->logout) : ?>
18
+        <p class="login_info"><?= $this->loggedInAs ?><br><?= $this->lastLogin ?></p>
19
+      <?php elseif ($this->twoFactorEnabled) : ?>
20
+        <h3><?= $this->twoFactorAuthentication ?></h3>
21
+        <div class="widget widget-text">
22
+          <label for="verify"><?= $this->authCode ?></label>
23
+          <input type="text" name="verify" id="verify" class="text" value="" autocapitalize="off" autocomplete="one-time-code" required>
24
+        </div>
25
+        <div class="widget widget-checkbox">
26
+          <input type="checkbox" name="trusted" id="trusted" class="tl_checkbox" value="1">
27
+          <label for="trusted"><?= $this->trans('MSC.twoFactorTrustDevice') ?></label>
28
+        </div>
29
+      <?php else : ?>
30
+        <div class="widget widget-text">
31
+          <label for="username"><?= $this->username ?></label>
32
+          <input type="text" name="username" id="username" class="text" value="<?= $this->value ?>" autocapitalize="off" autocomplete="username" required>
33
+        </div>
34
+        <div class="widget widget-password">
35
+          <label for="password"><?= $this->password ?></label>
36
+          <input type="password" name="password" id="password" class="text password" value="" autocomplete="current-password" required>
37
+        </div>
38
+        <?php if ($this->autologin) : ?>
39
+          <div class="widget widget-checkbox">
40
+            <fieldset class="checkbox_container">
41
+              <span><input type="checkbox" name="autologin" id="autologin" value="1" class="checkbox"> <label for="autologin"><?= $this->autoLabel ?></label></span>
42
+            </fieldset>
43
+          </div>
44
+        <?php endif; ?>
45
+      <?php endif; ?>
46
+      <div class="widget widget-submit">
47
+        <button type="submit" class="submit"><?= $this->slabel ?></button>
48
+        <?php if ($this->twoFactorEnabled) : ?>
49
+          <a href="<?= $this->route('contao_frontend_logout') ?>"><?= $this->cancel ?> ›</a>
50
+        <?php endif; ?>
51
+      </div>
52
+    </div>
53
+    </form>
54
+
55
+    <small><a href="{{link_url::44}}">Passwort vergessen</a></small>
56
+
57
+</div>
58
+<!-- indexer::continue -->
0 59
\ No newline at end of file