From: Taylor Hurt Date: Tue, 20 Sep 2016 20:32:28 +0000 (-0400) Subject: move edit link to a different column in order to free up horizontal s… (#11) X-Git-Tag: timetracker_1.19-1~1641 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=09bd3c14ba08e57c46fb53c66e9053d248682c06;p=timetracker.git move edit link to a different column in order to free up horizontal s… (#11) * move edit link to a different column in order to free up horizontal space on mobile * fix missing manager name on mobile/users page when co-manager is logged in --- diff --git a/WEB-INF/templates/mobile/clients.tpl b/WEB-INF/templates/mobile/clients.tpl index ded17ba9..a6132011 100644 --- a/WEB-INF/templates/mobile/clients.tpl +++ b/WEB-INF/templates/mobile/clients.tpl @@ -13,13 +13,11 @@ {$i18n.label.person_name} {$i18n.label.address} - {$i18n.label.edit} {foreach $active_clients as $client} - {$client.name|escape:'html'} + {$client.name|escape:'html'} {$client.address|escape:'html'} - {$i18n.label.edit} {/foreach} @@ -34,13 +32,11 @@ {$i18n.label.person_name} {$i18n.label.address} - {$i18n.label.edit} {foreach $inactive_clients as $client} - {$client.name|escape:'html'} + {$client.name|escape:'html'} {$client.address|escape:'html'} - {$i18n.label.edit} {/foreach} diff --git a/WEB-INF/templates/mobile/expenses.tpl b/WEB-INF/templates/mobile/expenses.tpl index bf99d801..9aab9a85 100644 --- a/WEB-INF/templates/mobile/expenses.tpl +++ b/WEB-INF/templates/mobile/expenses.tpl @@ -140,7 +140,6 @@ function get_date() { {/if} {$i18n.label.item} {$i18n.label.cost} - {$i18n.label.edit} {foreach $expense_items as $item} @@ -150,9 +149,8 @@ function get_date() { {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} {$item.project|escape:'html'} {/if} - {$item.item|escape:'html'} + {if $item.invoice_id} {$item.item|escape:'html'} {else}{$item.item|escape:'html'}{/if} {$item.cost} - {if $item.invoice_id} {else}{$i18n.label.edit}{/if} {/foreach} diff --git a/WEB-INF/templates/mobile/projects.tpl b/WEB-INF/templates/mobile/projects.tpl index 45cd184a..b371c803 100644 --- a/WEB-INF/templates/mobile/projects.tpl +++ b/WEB-INF/templates/mobile/projects.tpl @@ -13,14 +13,12 @@ {$i18n.label.thing_name} {$i18n.label.description} - {$i18n.label.edit} {if $active_projects} {foreach $active_projects as $project} - {$project.name|escape:'html'} + {$project.name|escape:'html'} {$project.description|escape:'html'} - {$i18n.label.edit} {/foreach} {/if} @@ -40,13 +38,11 @@ {$i18n.label.thing_name} {$i18n.label.description} - {$i18n.label.edit} {foreach $inactive_projects as $project} - {$project.name|escape:'html'} + {$project.name|escape:'html'} {$project.description|escape:'html'} - {$i18n.label.edit} {/foreach} diff --git a/WEB-INF/templates/mobile/tasks.tpl b/WEB-INF/templates/mobile/tasks.tpl index 0a521073..c877e989 100644 --- a/WEB-INF/templates/mobile/tasks.tpl +++ b/WEB-INF/templates/mobile/tasks.tpl @@ -13,14 +13,12 @@ {$i18n.label.thing_name} {$i18n.label.description} - {$i18n.label.edit} {if $active_tasks} {foreach $active_tasks as $task} - {$task.name|escape:'html'} + {$task.name|escape:'html'} {$task.description|escape:'html'} - {$i18n.label.edit} {/foreach} {/if} @@ -40,13 +38,11 @@ {$i18n.label.thing_name} {$i18n.label.description} - {$i18n.label.edit} {foreach $inactive_tasks as $task} - {$task.name|escape:'html'} + {$task.name|escape:'html'} {$task.description|escape:'html'} - {$i18n.label.edit} {/foreach} diff --git a/WEB-INF/templates/mobile/users.tpl b/WEB-INF/templates/mobile/users.tpl index aab86d82..38c96ae9 100644 --- a/WEB-INF/templates/mobile/users.tpl +++ b/WEB-INF/templates/mobile/users.tpl @@ -14,12 +14,21 @@ {$i18n.label.person_name} {$i18n.label.login} {$i18n.form.users.role} - {$i18n.label.edit} {if $active_users} {foreach $active_users as $u} - {$u.name|escape:'html'} + + {if $user->isManager()} + {$u.name|escape:'html'} + {else} + {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)} + {$u.name|escape:'html'} + {else} + {$u.name|escape:'html'} + {/if} + {/if} + {$u.login|escape:'html'} {if $smarty.const.ROLE_MANAGER == $u.role} {$i18n.form.users.manager} @@ -29,13 +38,6 @@ {$i18n.label.client} {elseif $smarty.const.ROLE_USER == $u.role} {$i18n.label.user} - {/if} - {if $user->isManager()} - - {$i18n.label.edit} - {else} - - {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.edit}{/if} {/if} {/foreach} @@ -58,11 +60,16 @@ {$i18n.label.login} {$i18n.form.users.role} {$i18n.label.edit} - {$i18n.label.delete} {foreach $inactive_users as $u} - {$u.name|escape:'html'} + + {if $user->isManager()} + {$u.name|escape:'html'} + {else} + {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$u.name|escape:'html'}{/if} + {/if} + {$u.login|escape:'html'} {if $smarty.const.ROLE_MANAGER == $u.role} {$i18n.form.users.manager} @@ -76,11 +83,9 @@ {if $user->isManager()} {$i18n.label.edit} - {if $smarty.const.ROLE_MANAGER != $u.role || $can_delete_manager}{$i18n.label.delete}{/if} {else} {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.edit}{/if} - {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.delete}{/if} {/if} {/foreach}