dolibarr 21.0.0-alpha
login.tpl.php
1<!-- file login.tpl.php -->
2<?php
3/* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
4 */
5// Protection to avoid direct call of template
6if (empty($context) || !is_object($context)) {
7 print "Error, template page can't be called as URL";
8 exit(1);
9}
10'@phan-var-force Context $context';
11
12?>
13<div class="login-page__container">
14 <div class="login-screen">
15 <div class="login-screen__content">
16 <form class="login" method="POST">
17 <?php echo $context->getFormToken(); ?>
18 <input type="hidden" name="action_login" value="login">
19
20 <div class="login__logo"><!-- see --login-logo css var to change logo --></div>
21
22 <div class="login__field">
23 <i class="login__icon fas fa-user"></i>
24 <input type="text" class="login__input" name="login" placeholder="<?php print dol_escape_htmltag($langs->trans('loginWebportalUserName')); ?>">
25 </div>
26 <div class="login__field">
27 <i class="login__icon fas fa-lock"></i>
28 <input type="password" class="login__input" name="password" placeholder="<?php print dol_escape_htmltag($langs->trans('Password')) ?>">
29 </div>
30 <button class="button login__submit">
31 <span class="button__text"><?php print dol_escape_htmltag($langs->trans('Connection')) ?></span>
32 <i class="button__icon fas fa-chevron-right"></i>
33 </button>
34 </form>
35<!-- <div class="social-login">-->
36<!-- <span class="social-login__title">Follow us on</span>-->
37<!-- <div class="social-icons">-->
38<!-- <a href="#" class="social-login__icon fab fa-instagram"></a>-->
39<!-- <a href="#" class="social-login__icon fab fa-facebook"></a>-->
40<!-- <a href="#" class="social-login__icon fab fa-twitter"></a>-->
41<!-- </div>-->
42<!-- </div>-->
43 </div>
44 <div class="login-screen__background">
45 <span class="login-screen__background__shape login-screen__background__shape4"></span>
46 <span class="login-screen__background__shape login-screen__background__shape3"></span>
47 <span class="login-screen__background__shape login-screen__background__shape2"></span>
48 <span class="login-screen__background__shape login-screen__background__shape1"></span>
49 </div>
50 </div>
51</div>
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
ui state ui widget content ui state ui widget header ui state a ui button
0 = Do not include form tag and submit button -1 = Do not include form tag but include submit button
$context
@method int call_trigger(string $triggerName, User $user)
Definition logout.php:42
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition repair.php:137
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:140