/
mod_login.html5
45 lines (41 loc) · 2.14 KB
/
mod_login.html5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!-- indexer::stop -->
<div class="<?= $this->class ?> <?= $this->logout ? 'logout' : 'login' ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?= $this->hl ?>><?= $this->headline ?></<?= $this->hl ?>>
<?php endif; ?>
<form<?php if ($this->action): ?> action="<?= $this->action ?>"<?php endif; ?> id="<?= $this->formId ?>" method="post">
<div class="formbody">
<?php if ($this->message): ?>
<p class="error"><?= $this->message ?></p>
<?php endif; ?>
<input type="hidden" name="FORM_SUBMIT" value="<?= $this->formId ?>">
<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
<input type="hidden" name="_target_path" value="<?= StringUtil::specialchars($this->targetPath) ?>">
<?php if ($this->logout): ?>
<p class="login_info"><?= $this->loggedInAs ?><br><?= $this->lastLogin ?></p>
<?php else: ?>
<input type="hidden" name="_failure_path" value="<?= $this->failurePath ?>">
<input type="hidden" name="_always_use_target_path" value="<?= $this->forceTargetPath ?>">
<div class="widget widget-text">
<label for="username"><?= $this->username ?></label>
<input type="text" name="username" id="username" class="text" value="<?= $this->value ?>" required><br>
</div>
<div class="widget widget-password">
<label for="password"><?= $this->password ?></label>
<input type="password" name="password" id="password" class="text password" value="" required>
</div>
<?php if ($this->autologin): ?>
<div class="widget widget-checkbox">
<fieldset class="checkbox_container">
<span><input type="checkbox" name="autologin" id="autologin" value="1" class="checkbox"> <label for="autologin"><?= $this->autoLabel ?></label></span>
</fieldset>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="widget widget-submit">
<button type="submit" class="submit"><?= $this->slabel ?></button>
</div>
</div>
</form>
</div>
<!-- indexer::continue -->