summaryrefslogtreecommitdiffstats
path: root/lib/kolab_client_task.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2019-05-10 11:36:33 +0000
committerAleksander Machniak <machniak@kolabsys.com>2019-05-10 11:36:33 +0000
commit1995649953b587fce4ca72e215e4c64b863410f7 (patch)
treeb147772d41ef2e070aa57aa631a0280985f475af /lib/kolab_client_task.php
parent0f51ea19380e770215694416f598e1bb8f9d5352 (diff)
downloadwebadmin-1995649953b587fce4ca72e215e4c64b863410f7.tar.gz
New skin
Diffstat (limited to 'lib/kolab_client_task.php')
-rw-r--r--lib/kolab_client_task.php69
1 files changed, 43 insertions, 26 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index 3c6402f..46eecaf 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -793,28 +793,43 @@ class kolab_client_task
{
$post = $this->get_input('login', 'POST', true);
- $username = kolab_html::label(array(
- 'for' => 'login_name',
- 'content' => $this->translate('login.username')), true)
- . kolab_html::input(array(
- 'type' => 'text',
- 'id' => 'login_name',
- 'name' => 'login[username]',
- 'value' => $post['username'],
- 'autofocus' => true));
-
- $password = kolab_html::label(array(
- 'for' => 'login_pass',
- 'content' => $this->translate('login.password')), true)
- . kolab_html::input(array(
- 'type' => 'password',
- 'id' => 'login_pass',
- 'name' => 'login[password]',
- 'value' => ''));
+ $username = kolab_html::div(array(
+ 'class' => 'form-group input-group input-group-lg',
+ 'content' => kolab_html::label(array(
+ 'for' => 'login_name',
+ 'class' => 'font-icon login input-group-prepend input-group-text',
+ 'content' => kolab_html::span(array(
+ 'class' => 'sr-only',
+ 'content' => $this->translate('login.username'), true))))
+ . kolab_html::input(array(
+ 'type' => 'text',
+ 'id' => 'login_name',
+ 'name' => 'login[username]',
+ 'value' => $post['username'],
+ 'placeholder' => $this->translate('login.username'),
+ 'autofocus' => true))
+ ));
+
+ $password = kolab_html::div(array(
+ 'class' => 'form-group input-group input-group-lg',
+ 'content' => kolab_html::label(array(
+ 'for' => 'login_pass',
+ 'class' => 'font-icon password input-group-prepend input-group-text',
+ 'content' => kolab_html::span(array(
+ 'class' => 'sr-only',
+ 'content' => $this->translate('login.password'), true))))
+ . kolab_html::input(array(
+ 'type' => 'password',
+ 'id' => 'login_pass',
+ 'name' => 'login[password]',
+ 'placeholder' => $this->translate('login.password'),
+ 'value' => ''))
+ ));
$button = kolab_html::input(array(
'type' => 'submit',
'id' => 'login_submit',
+ 'class' => 'btn btn-primary btn-lg text-uppercase w-100',
'value' => $this->translate('login.login')));
$form = kolab_html::form(array(
@@ -822,9 +837,10 @@ class kolab_client_task
'name' => 'login',
'method' => 'post',
'action' => '?'),
- kolab_html::span(array('content' => $username))
- . kolab_html::span(array('content' => $password))
- . $button);
+ kolab_html::div(array('content' => $username))
+ . kolab_html::div(array('content' => $password))
+ . $button
+ );
return $form;
}
@@ -944,7 +960,7 @@ class kolab_client_task
$this->output->add_translation('ldap.one', 'ldap.sub', 'ldap.base',
'ldap.host', 'ldap.basedn','ldap.scope', 'ldap.conditions',
'ldap.filter_any', 'ldap.filter_both', 'ldap.filter_prefix', 'ldap.filter_suffix',
- 'ldap.filter_exact', 'ldap.filter_notexact'
+ 'ldap.filter_exact'
);
}
}
@@ -1225,7 +1241,7 @@ class kolab_client_task
$debug = kolab_html::escape(print_r($data, true));
$debug = preg_replace('/(^Array\n\(|\n*\)$|\t)/', '', $debug);
$debug = str_replace("\n ", "\n", $debug);
- $debug = '<pre class="debug">' . $debug . '</pre>';
+ $debug = '<pre class="debug form-control">' . $debug . '</pre>';
$fields['debug'] = array(
'label' => 'debug',
'section' => 'system',
@@ -1483,6 +1499,7 @@ class kolab_client_task
$id = $data['id'];
$form->add_button(array(
'value' => kolab_html::escape($this->translate('button.delete')),
+ 'class' => 'btn btn-danger',
'onclick' => "kadm.command('{$name}.delete', '{$id}')",
));
}
@@ -1718,12 +1735,12 @@ class kolab_client_task
$count_str = kolab_html::span(array(
'content' => $this->translate('list.records', $start, $end, $count)), true);
$prev = kolab_html::a(array(
- 'class' => 'prev' . ($prev ? '' : ' disabled'),
+ 'class' => 'prev font-icon' . ($prev ? '' : ' disabled'),
'href' => '#',
'onclick' => $prev ? "kadm.command('$task.list', {page: $prev})" : "return false",
));
$next = kolab_html::a(array(
- 'class' => 'next' . ($next ? '' : ' disabled'),
+ 'class' => 'next font-icon' . ($next ? '' : ' disabled'),
'href' => '#',
'onclick' => $next ? "kadm.command('$task.list', {page: $next})" : "return false",
));
@@ -1772,7 +1789,7 @@ class kolab_client_task
$table = kolab_html::table(array(
'id' => $task . 'list',
- 'class' => $table_class,
+ 'class' => $table_class . ' table table-sm',
'head' => $head,
'body' => $rows,
'foot' => $foot,