summaryrefslogtreecommitdiff
path: root/app/views/index/formLogin.phtml
blob: cc43bcd19a0f71de81a0fcde743e46224e62f95c (plain)
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
<div class="post content">

<?php
if (Minz_Configuration::canLogIn()) {
	?><h1><?php echo Minz_Translate::t('login'); ?></h1><?php
	switch (Minz_Configuration::authType()) {

		case 'form':
		?><form id="loginForm" method="post" action="<?php echo _url('index', 'formLogin'); ?>">
			<div class="form-group">
				<label class="group-name" for="username"><?php echo Minz_Translate::t('username'); ?></label>
				<div class="group-controls">
					<input type="text" id="username" name="username" size="16" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" />
				</div>
			</div>
			<div class="form-group">
				<label class="group-name" for="passwordPlain"><?php echo Minz_Translate::t('password'); ?></label>
				<div class="group-controls">
					<input type="password" id="passwordPlain" required="required" />
					<input type="hidden" id="challenge" name="challenge" />
					<noscript><strong><?php echo Minz_Translate::t('javascript_should_be_activated'); ?></strong></noscript>
				</div>
			</div>
			<div class="form-group form-actions">
				<div class="group-controls">
					<button id="loginButton" type="submit" class="btn btn-important"><?php echo Minz_Translate::t('login'); ?></button>
				</div>
			</div>
		</form><?php
			break;

		case 'persona':
			?><p><?php echo FreshRSS_Themes::icon('login'); ?> <a class="signin" href="#"><?php echo Minz_Translate::t('login'); ?></a></p><?php
			break;
	}
} else {
	?><h1>FreshRSS</h1>
	<p><?php echo Minz_Translate::t('forbidden_access', Minz_Configuration::authType()); ?></p><?php
}
?>

	<p><a href="<?php echo _url('index', 'about'); ?>"><?php echo Minz_Translate::t('about_freshrss'); ?></a></p>
</div>