31 lines
621 B
PHP
31 lines
621 B
PHP
|
<?php
|
||
|
|
||
|
return function() {
|
||
|
|
||
|
$form = new Kirby\Panel\Form(array(
|
||
|
'username' => array(
|
||
|
'label' => 'login.username.label',
|
||
|
'type' => 'text',
|
||
|
'icon' => 'user',
|
||
|
'required' => true,
|
||
|
'autofocus' => true,
|
||
|
'default' => s::get('username')
|
||
|
),
|
||
|
'password' => array(
|
||
|
'label' => 'login.password.label',
|
||
|
'type' => 'password',
|
||
|
'required' => true
|
||
|
)
|
||
|
));
|
||
|
|
||
|
$form->attr('autocomplete', 'off');
|
||
|
$form->data('autosubmit', 'native');
|
||
|
$form->style('centered');
|
||
|
|
||
|
$form->buttons->submit->value = l('login.button');
|
||
|
|
||
|
return $form;
|
||
|
|
||
|
};
|
||
|
|