Overview
Comment: | Hide new account button if chart is archived |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
03c631d5f6cef12a586a778e81128ede |
User & Date: | bohwaz on 2022-12-16 14:14:11 |
Other Links: | manifest | tags |
Context
2022-12-16
| ||
16:50 | Log PDF usage for statistics check-in: 6a55f0cded user: bohwaz tags: trunk, stable | |
14:14 | Hide new account button if chart is archived check-in: 03c631d5f6 user: bohwaz tags: trunk, stable | |
2022-12-15
| ||
21:56 | Change wording on filter by category check-in: 7c8386cbf1 user: bohwaz tags: trunk, stable | |
Changes
Modified src/templates/acc/charts/accounts/_nav.tpl from [a992f235ac] to [bacb527d3f].
1 2 3 4 5 | {if !$dialog || $dialog !== 'manage'} <nav class="tabs"> {if $dialog} {* JS trick to get back to the original iframe URL! *} <aside> | | | | 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 | {if !$dialog || $dialog !== 'manage'} <nav class="tabs"> {if $dialog} {* JS trick to get back to the original iframe URL! *} <aside> {if !$chart.archived && $session->canAccess($session::SECTION_ACCOUNTING, $session::ACCESS_ADMIN)} {linkbutton href="!acc/charts/accounts/new.php?id=%d&%s"|args:$chart.id,$types_arg label="Ajouter un compte" shape="plus"} {/if} {linkbutton shape="left" label="Retour à la sélection de compte" href="#" onclick="g.reloadParentDialog(); return false;"} </aside> <ul> <li class="title">{$chart.label}</li> {else} <ul> <li><a href="{$admin_url}acc/years/">Exercices</a></li> <li><a href="{$admin_url}acc/projects/">Projets <em>(compta analytique)</em></a></li> <li class="current"><a href="{$admin_url}acc/charts/">Plans comptables</a></li> </ul> {if !$chart.archived && $session->canAccess($session::SECTION_ACCOUNTING, $session::ACCESS_ADMIN)} <aside>{linkbutton href="!acc/charts/accounts/new.php?id=%d&%s"|args:$chart.id,$types_arg label="Ajouter un compte" shape="plus" target=$dialog_target}</aside> {/if} <ul class="sub"> <li class="title">{$chart.label}</li> {/if} {if $chart.country} <li{if $current == 'favorites'} class="current"{/if}>{link href="!acc/charts/accounts/?id=%d&%s"|args:$chart.id,$types_arg label="Comptes usuels"}</li> {/if} <li{if $current == 'all'} class="current"{/if}>{link href="!acc/charts/accounts/all.php?id=%d&%s"|args:$chart.id,$types_arg label="Tous les comptes"}</li> </ul> </nav> {/if} |
Modified src/templates/acc/charts/accounts/edit.tpl from [abd5019d37] to [a6db0e2650].
1 2 3 4 5 6 7 8 9 10 | {include file="admin/_head.tpl" title="Modifier un compte" current="acc/years"} {include file="acc/charts/accounts/_nav.tpl" current="new"} {form_errors} <form method="post" action="{$self_url}" data-focus="1"> {if !$can_edit} <p class="block alert"> | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | {include file="admin/_head.tpl" title="Modifier un compte" current="acc/years"} {include file="acc/charts/accounts/_nav.tpl" current="new"} {form_errors} <form method="post" action="{$self_url}" data-focus="1"> {if !$can_edit} <p class="block alert"> Il n'est pas possible de modifier le libellé, le numéro ou la position de ce compte car il {if $account.user}est utilisé dans des exercices clôturés{else}fait partie du plan comptable officiel{/if}.<br /> Pour pouvoir modifier ce compte pour un nouvel exercice, il est conseillé de <a href="{$admin_url}acc/charts/?from={$account.id_chart}">créer un nouveau plan comptable</a> en y recopiant l'ancien plan comptable. </p> {/if} <fieldset> <legend>Modifier un compte</legend> {include file="acc/charts/accounts/_account_form.tpl" create=false} |
︙ | ︙ |