Mutualisation paramètres immo + rationalisation navigation
This commit is contained in:
parent
c096282f08
commit
ba17145837
10 changed files with 131 additions and 95 deletions
15
index.html
15
index.html
|
|
@ -2,13 +2,13 @@
|
|||
{{:admin_header title="Immobilisations et amortissements" custom_css="./style.css" current="module_amortissement"}}
|
||||
|
||||
{{* barre de navigation *}}
|
||||
{{if $_GET.amort == null}}
|
||||
{{:assign amort="encours"}}
|
||||
{{if $_GET.type_immo == null}}
|
||||
{{:assign type_immo="encours"}}
|
||||
{{else}}
|
||||
{{:assign amort=$_GET.amort}}
|
||||
{{:assign type_immo=$_GET.type_immo}}
|
||||
{{/if}}
|
||||
|
||||
{{:include file="_nav.html" current="index" subcurrent="%s"|args:$amort}}
|
||||
{{:include file="_nav.html" current="index" subcurrent="%s"|args:$type_immo}}
|
||||
|
||||
{{if $_GET.ok}}
|
||||
{{if $_GET.msg|match:"immobilisation"}}
|
||||
|
|
@ -26,7 +26,6 @@
|
|||
{{#select
|
||||
line.id as line_id
|
||||
FROM acc_transactions_lines as line
|
||||
INNER JOIN acc_transactions AS trans on line.id_transaction = trans.id
|
||||
WHERE line.id = :line_id;
|
||||
:line_id = $line
|
||||
}}
|
||||
|
|
@ -48,11 +47,11 @@
|
|||
*}}
|
||||
{{/load}}
|
||||
|
||||
{{if $amort == "autres"}}
|
||||
{{if $type_immo == "autres"}}
|
||||
{{:include file="./immobilisations_autres.html"}}
|
||||
{{elseif $amort == "archive"}}
|
||||
{{elseif $type_immo == "archive"}}
|
||||
{{:include file="archives.html"}}
|
||||
{{elseif $amort == "encours" || $amort == "fini"}}
|
||||
{{elseif $type_immo == "encours" || $type_immo == "fini"}}
|
||||
{{:include file="./immobilisations.html"}}
|
||||
{{/if}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue