diff --git a/application/controllers/yllapito.php b/application/controllers/yllapito.php
index fe37f36..b80c972 100644
--- a/application/controllers/yllapito.php
+++ b/application/controllers/yllapito.php
@@ -113,7 +113,9 @@ class Yllapito extends CI_Controller
if (empty($limit)) {
$data['cards'] = $this->ecard->order_by('created_at')->get_all();
} else {
- $data['cards'] = $this->ecard->order_by('created_at')->get_many_by('card_status', $limit);
+ $data['cards'] = $this->ecard
+ ->order_by('created_at')
+ ->get_many_by('card_status', $limit);
}
$data['page_title'] = array_merge($page_title, $data['page_title']);
@@ -156,7 +158,6 @@ class Yllapito extends CI_Controller
break;
}
-
$data['page_title'] = array_merge($page_title, $data['page_title']);
$page = 'yllapito/users_'.$section;
diff --git a/application/views/_header.php b/application/views/_header.php
index b843710..139ec23 100644
--- a/application/views/_header.php
+++ b/application/views/_header.php
@@ -118,14 +118,14 @@ if (isset($user) and ! empty($user)) {
can_modusers == "yes") {
- echo "- "
- . lnk("yllapito/users/add", "Lisää käyttäjä")
- . "
\n";
+ echo "- "
+ . lnk("yllapito/users/add", "Lisää käyttäjä")
+ . "
\n";
}
if ($user->can_seeusers == "yes") {
- echo "- "
- . lnk("yllapito/users/list", "Listaa käyttäjät")
- . "
\n";
+ echo "- "
+ . lnk("yllapito/users", "Listaa käyttäjät")
+ . "
\n";
}
?>
diff --git a/application/views/yllapito/dashboard.php b/application/views/yllapito/dashboard.php
index 8c37cbb..9fb5f1a 100644
--- a/application/views/yllapito/dashboard.php
+++ b/application/views/yllapito/dashboard.php
@@ -21,7 +21,7 @@ if ($all > 0) {
if ($p_queue > 0) { ?>
0) { ?>
if ($p_public > 0) { ?>
0) { ?>
if ($p_private > 0) { ?>
0) { ?>
0) { ?>
- Kortit
-if (empty($user)) {
- $user = new stdClass();
-}
-
-var_export($user);
-
-?>
+
diff --git a/application/views/yllapito/list_cards.php b/application/views/yllapito/list_cards.php
index 7250c0d..d575cba 100644
--- a/application/views/yllapito/list_cards.php
+++ b/application/views/yllapito/list_cards.php
@@ -92,9 +92,9 @@ if (!empty($cards)) {
$checkboxes = array(
'queue' => 'Jonossa',
- 'public' => 'Julkaise',
- 'private' => 'Piilota',
- 'hidden' => 'Hylkää'
+ 'public' => 'Julkaistu',
+ 'private' => 'Piilotettu',
+ 'hidden' => 'Hylätty'
);
diff --git a/application/views/yllapito/users_show.php b/application/views/yllapito/users_show.php
index 9bfea2d..82c6a56 100644
--- a/application/views/yllapito/users_show.php
+++ b/application/views/yllapito/users_show.php
@@ -3,7 +3,12 @@
if (empty($userdata)) {
$userdata = array();
}
-
+if (empty($user)) {
+ $user = new stdClass();
+}
+if (empty($userid)) {
+ $userid = 0;
+}
?>
diff --git a/assets/css/style.css b/assets/css/style.css
index b2ca254..843d2a9 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -133,7 +133,7 @@ table thead th button {
font-size: 11px;
}
-#ecard_form label.error {
+form label.error {
margin-top: -10px;
padding-bottom: 20px;
clear: both;