Overview
Comment:Year selection works
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 5b771b881c5bb360abef849b4e0e58af818aba16
User & Date: bohwaz on 2020-10-03 19:13:48
Other Links: branch diff | manifest | tags
Context
2020-10-03
19:20
Cleanup of old files check-in: e1381c5a2f user: bohwaz tags: dev
19:13
Year selection works check-in: 5b771b881c user: bohwaz tags: dev
15:42
Add opening balance, year closing, year edit, year creation, year removal check-in: fdf0caeabf user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Entities/Accounting/Line.php from [74fccc0311] to [92aae09c54].

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
		'reconciled'     => 'int',
		'id_analytical'  => '?int',
	];

	protected $_form_rules = [
		'id_account'     => 'required|numeric|in_table:acc_accounts,id',
		'id_analytical'  => 'numeric|in_table:acc_accounts,id',
		'credit'         => 'required|money|min:0',
		'debit'          => 'required|money|min:0',
		'reference'      => 'string|max:200',
		'label'          => 'string|max:200',
	];

	public function filterUserValue(string $key, $value)
	{
		if ($key == 'credit' || $key == 'debit')







|
|







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
		'reconciled'     => 'int',
		'id_analytical'  => '?int',
	];

	protected $_form_rules = [
		'id_account'     => 'required|numeric|in_table:acc_accounts,id',
		'id_analytical'  => 'numeric|in_table:acc_accounts,id',
		'credit'         => 'money|min:0',
		'debit'          => 'money|min:0',
		'reference'      => 'string|max:200',
		'label'          => 'string|max:200',
	];

	public function filterUserValue(string $key, $value)
	{
		if ($key == 'credit' || $key == 'debit')

Modified src/include/lib/Garradin/Form.php from [b88e77b07b] to [55cc8a4f8c].

93
94
95
96
97
98
99

100
101
102
103
104
105
106
			case '_id': return 'identifiant';
			case 'passe': return 'mot de passe';
			case 'debut': return 'date de début';
			case 'fin': return 'date de fin';
			case 'duree': return 'durée';
			case 'passe_check': return 'vérification de mot de passe';
			case 'id_account': return 'compte';

			default: return $name;
		}
	}

	protected function getErrorMessage($rule, $element, Array $params)
	{
		$element = $this->getFieldName($element);







>







93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
			case '_id': return 'identifiant';
			case 'passe': return 'mot de passe';
			case 'debut': return 'date de début';
			case 'fin': return 'date de fin';
			case 'duree': return 'durée';
			case 'passe_check': return 'vérification de mot de passe';
			case 'id_account': return 'compte';
			case 'label': return 'libellé';
			default: return $name;
		}
	}

	protected function getErrorMessage($rule, $element, Array $params)
	{
		$element = $this->getFieldName($element);

Modified src/include/lib/Garradin/Template.php from [cb36a70b55] to [4596374ba8].

55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
				return 'continue;';
			}
		});

		$this->register_function('form_errors', [$this, 'formErrors']);
		$this->register_function('show_error', [$this, 'showError']);
		$this->register_function('form_field', [$this, 'formField']);
		$this->register_function('select_compte', [$this, 'formSelectCompte']);
		$this->register_function('html_champ_membre', [$this, 'formChampMembre']);
		$this->register_function('input', [$this, 'formInput']);

		$this->register_function('custom_colors', [$this, 'customColors']);
		$this->register_function('plugin_url', ['Garradin\Utils', 'plugin_url']);
		$this->register_function('diff', [$this, 'diff']);
		$this->register_function('pagination', [$this, 'pagination']);







<







55
56
57
58
59
60
61

62
63
64
65
66
67
68
				return 'continue;';
			}
		});

		$this->register_function('form_errors', [$this, 'formErrors']);
		$this->register_function('show_error', [$this, 'showError']);
		$this->register_function('form_field', [$this, 'formField']);

		$this->register_function('html_champ_membre', [$this, 'formChampMembre']);
		$this->register_function('input', [$this, 'formInput']);

		$this->register_function('custom_colors', [$this, 'customColors']);
		$this->register_function('plugin_url', ['Garradin\Utils', 'plugin_url']);
		$this->register_function('diff', [$this, 'diff']);
		$this->register_function('pagination', [$this, 'pagination']);
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
			return Account::TYPES_NAMES[$value];
		});

		$this->register_modifier('account_position', function ($value) {
			return Account::POSITIONS_NAMES[$value];
		});

		$this->register_modifier('get_nom_compte', function ($compte) {
			if (is_null($compte))
			{
				return '';
			}

			if (!isset($this->liste_comptes))
			{
				$this->liste_comptes = (new Compta\Comptes)->getListAll();
			}

			if (!isset($this->liste_comptes[$compte]))
			{
				return '';
			}

			return $this->liste_comptes[$compte];
		});

		$this->register_modifier('strftime_fr', function ($ts, $format) {
			return Utils::strftime_fr($format, $ts);
		});

		$this->register_modifier('date_fr', function ($ts, $format = 'd/m/Y H:i:s') {
			return Utils::date_fr($format, $ts);
		});







<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







89
90
91
92
93
94
95



















96
97
98
99
100
101
102
			return Account::TYPES_NAMES[$value];
		});

		$this->register_modifier('account_position', function ($value) {
			return Account::POSITIONS_NAMES[$value];
		});




















		$this->register_modifier('strftime_fr', function ($ts, $format) {
			return Utils::strftime_fr($format, $ts);
		});

		$this->register_modifier('date_fr', function ($ts, $format = 'd/m/Y H:i:s') {
			return Utils::date_fr($format, $ts);
		});
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697

		if ($type != 'checkbox')
		{
			$out .= '
		<dd>' . $field . '</dd>';
		}

		return $out;
	}

	protected function formSelectCompte($params)
	{
		$name = $params['name'];
		$comptes = $params['comptes'];
		$data = isset($params['data']) ? (array) $params['data'] : null;
		$selected = isset($data[$params['name']]) ? $data[$params['name']] : f($name);

		$out = '<select name="'.$name.'" id="f_'.$name.'" class="large">';

		foreach ($comptes as $compte)
		{
			// Ne pas montrer les comptes désactivés
			if (!empty($compte->desactive))
				continue;

			if (!isset($compte->id[1]) && empty($params['create']))
			{
				$out.= '<optgroup label="'.htmlspecialchars($compte->libelle, ENT_QUOTES, 'UTF-8', false).'" class="niveau_1"></optgroup>';
			}
			elseif (!isset($compte->id[2]) && empty($params['create']))
			{
				if ($compte->id > 10)
					$out.= '</optgroup>';

				$out.= '<optgroup label="'.htmlspecialchars($compte->id . ' - ' . $compte->libelle, ENT_QUOTES, 'UTF-8', false).'" class="niveau_2">';
			}
			else
			{
				$out .= '<option value="'.htmlspecialchars($compte->id, ENT_QUOTES, 'UTF-8', false).'" class="niveau_'.strlen($compte->id).'"';

				if ($selected == $compte->id)
				{
					$out .= ' selected="selected"';
				}

				$out .= '>' . htmlspecialchars($compte->id . ' - ' . $compte->libelle, ENT_QUOTES, 'UTF-8', false);
				$out .= '</option>';
			}
		}

		$out .= '</optgroup>';
		$out .= '</select>';

		return $out;
	}

	protected function diff(array $params)
	{
		if (!isset($params['old']) || !isset($params['new']))
		{







<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







618
619
620
621
622
623
624














































625
626
627
628
629
630
631

		if ($type != 'checkbox')
		{
			$out .= '
		<dd>' . $field . '</dd>';
		}















































		return $out;
	}

	protected function diff(array $params)
	{
		if (!isset($params['old']) || !isset($params['new']))
		{

Deleted src/templates/acc/_head.tpl version [8c48046690].

1
2
3
4
5
6
{include file="admin/_head.tpl"}

<header class="acc-year">
	<h3>{$year.label} <em>({$chart.label})</em></h3>
	<h4><a href="{$admin_url}acc/years/?msg=SELECT_YEAR">Sélectionner un autre exercice</a></h4>
</header>
<
<
<
<
<
<












Added src/templates/acc/_year_select.tpl version [13906d560b].











































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<nav class="acc-year">
	<form method="get" action="{$self_url}">
		<fieldset>
			<legend>Exercice sélectionné</legend>
			<p>
				<?php $list = Accounting\Years::listOpen(); ?>
				{if count($list) == 1}
					<?php $year = current($list); ?>
					{$year.label} — {$year.start_date|date_fr:'d/m/Y'} au {$year.end_date|date_fr:'d/m/Y'}
				{else}
					<select name="change_year" onchange="this.form.submit();" title="Changer d'exercice">
					{foreach from=$list item="year"}
						<option value="{$year.id}"{if $year.id == $current_year_id} selected="selected"{/if}>{$year.label} — {$year.start_date|date_fr:'d/m/Y'} au {$year.end_date|date_fr:'d/m/Y'}</option>
					{/foreach}
					</select>
					<input type="submit" value="Changer &rarr;" />
				{/if}
			</p>
		</fieldset>
	</form>
</nav>

Modified src/templates/acc/accounts/index.tpl from [19c807ae56] to [4a795a15be].

1


2
3
4
5
6
7
8
{include file="acc/_head.tpl" title="Comptes favoris" current="acc/accounts"}



<nav class="tabs">
	<ul>
		<li class="current"><a href="{$admin_url}acc/accounts/">Comptes favoris</a></li>
		<li><a href="{$admin_url}acc/accounts/all.php">Tous les comptes</a></li>
		{if $session->canAccess('compta', Membres::DROIT_ADMIN)}
		<li><a href="{$admin_url}acc/accounts/new.php"><strong>Ajouter un compte</strong></a></li>
|
>
>







1
2
3
4
5
6
7
8
9
10
{include file="admin/_head.tpl" title="Comptes favoris" current="acc/accounts"}

{include file="acc/_year_select.tpl"}

<nav class="tabs">
	<ul>
		<li class="current"><a href="{$admin_url}acc/accounts/">Comptes favoris</a></li>
		<li><a href="{$admin_url}acc/accounts/all.php">Tous les comptes</a></li>
		{if $session->canAccess('compta', Membres::DROIT_ADMIN)}
		<li><a href="{$admin_url}acc/accounts/new.php"><strong>Ajouter un compte</strong></a></li>

Modified src/templates/acc/transactions/edit.tpl from [22f7776fc7] to [a40204f36a].

1
2
3
4
5
6
7
8
{include file="admin/_head.tpl" title="Saisie d'une écriture" current="acc/new" js=1}

<form method="post" action="{$self_url}" enctype="multipart/form-data">
	{form_errors}

	<fieldset>
		<legend>Informations</legend>
		<dl>
|







1
2
3
4
5
6
7
8
{include file="admin/_head.tpl" title="Modification d'une écriture" current="acc/new" js=1}

<form method="post" action="{$self_url}" enctype="multipart/form-data">
	{form_errors}

	<fieldset>
		<legend>Informations</legend>
		<dl>

Modified src/templates/acc/transactions/new.tpl from [046bad1dcf] to [831a0f9d72].

1


2
3
4
5
6
7
8
{include file="admin/_head.tpl" title="Saisie d'une écriture" current="acc/new" js=1}



<form method="post" action="{$self_url_no_qs}" enctype="multipart/form-data">
	{form_errors}

	{if $ok}
		<p class="confirm">
			L'opération numéro <a href="details.php?id={$ok}">{$ok}</a> a été ajoutée.

>
>







1
2
3
4
5
6
7
8
9
10
{include file="admin/_head.tpl" title="Saisie d'une écriture" current="acc/new" js=1}

{include file="acc/_year_select.tpl" only_open=true}

<form method="post" action="{$self_url_no_qs}" enctype="multipart/form-data">
	{form_errors}

	{if $ok}
		<p class="confirm">
			L'opération numéro <a href="details.php?id={$ok}">{$ok}</a> a été ajoutée.

Modified src/templates/admin/install.tpl from [dd863dea3a] to [208e6db9cd].

1
2
3
4
5
6
7
8
9
10
11
12
13
{include file="admin/_head.tpl" title="Garradin - Installation" js=1}

{if $disabled}
    <p class="error">Garradin est déjà installé.</p>
{else}
    <p class="intro">
        Bienvenue dans Garradin !
        Veuillez remplir les quelques informations suivantes pour terminer
        l'installation.
    </p>

    {form_errors}






|







1
2
3
4
5
6
7
8
9
10
11
12
13
{include file="admin/_head.tpl" title="Garradin - Installation" js=1}

{if $disabled}
    <p class="error">Garradin est déjà installé.</p>
{else}
    <p class="help">
        Bienvenue dans Garradin !
        Veuillez remplir les quelques informations suivantes pour terminer
        l'installation.
    </p>

    {form_errors}

Modified src/www/admin/acc/_inc.php from [3163e8b979] to [11d505fd00].

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
<?php

namespace Garradin;

use Garradin\Accounting\Years;

require_once __DIR__ . '/../_inc.php';

$session->requireAccess('compta', Membres::DROIT_ACCES);





if ($year_id = $session->get('acc_year')) {
	$year = Years::get($year_id);
}
else {

	$year = Years::getCurrentOpenYearIfSingle();

	if ($year) {
		$year_id = $year->id();
		$session->set('acc_year', $year_id);
	}
	else {
		Utils::redirect(ADMIN_URL . '/acc/years/?msg=SELECT_YEAR');
	}
}


$chart = $year->chart();

$tpl->assign('year', $year);
$tpl->assign('chart', $chart);










>
>
>
>
|
<
|
<
>


|
<
<
<
<
|

|
>
|
<

|
|
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
<?php

namespace Garradin;

use Garradin\Accounting\Years;

require_once __DIR__ . '/../_inc.php';

$session->requireAccess('compta', Membres::DROIT_ACCES);

if (qg('change_year')) {
	$session->set('acc_year', (int)qg('change_year'));
}

$current_year_id = $session->get('acc_year');



if (!$current_year_id) {
	$year = Years::getCurrentOpenYearIfSingle();

	if (!$year) {




		Utils::redirect(ADMIN_URL . '/acc/years/new.php?msg=FIRST');
	}

	$current_year_id = $year->id();
}


define('Garradin\SELECTED_YEAR_ID', $current_year_id);
$tpl->assign('current_year_id', SELECTED_YEAR_ID);

Modified src/www/admin/acc/accounts/index.php from [0645380a69] to [3ec8fc3b98].

1
2
3

4
5
6
7
8


9
10
11
12
13
14
15
16
<?php
namespace Garradin;


use Garradin\Accounting\Charts;
use Garradin\Accounting\Accounts;
use Garradin\Entities\Accounting\Account;

require_once __DIR__ . '/../_inc.php';



$chart = $year->chart();
$accounts = $chart->accounts();

$tpl->assign('chart', $chart);
$tpl->assign('accounts_grouped', $accounts->listCommonGrouped());

$tpl->display('acc/accounts/index.tpl');



>

|



>
>








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
namespace Garradin;

use Garradin\Accounting\Accounts;
use Garradin\Accounting\Charts;
use Garradin\Accounting\Years;
use Garradin\Entities\Accounting\Account;

require_once __DIR__ . '/../_inc.php';

$year = Years::get(SELECTED_YEAR_ID);

$chart = $year->chart();
$accounts = $chart->accounts();

$tpl->assign('chart', $chart);
$tpl->assign('accounts_grouped', $accounts->listCommonGrouped());

$tpl->display('acc/accounts/index.tpl');

Modified src/www/admin/acc/transactions/edit.php from [2d12d19c01] to [3cd59c2dea].

52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

$tpl->assign('transaction', $transaction);

$lines = $transaction->getLinesWithAccounts();
$lines_accounts = [];

foreach ($lines as $k => $line) {
	$lines_accounts[$k] = [$line->id_account => sprintf('%s - %s', $line->account_code, $line->account_name)];
}

$tpl->assign('lines', $lines);
$tpl->assign('lines_accounts', $lines_accounts);
$tpl->assign('analytical_accounts', ['' => '-- Aucun'] + $accounts->listAnalytical());
$tpl->assign('linked_users', $transaction->listLinkedUsersAssoc());

$tpl->display('acc/transactions/edit.tpl');







|








52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

$tpl->assign('transaction', $transaction);

$lines = $transaction->getLinesWithAccounts();
$lines_accounts = [];

foreach ($lines as $k => $line) {
	$lines_accounts[$k] = [$line->id_account => sprintf('%s  %s', $line->account_code, $line->account_name)];
}

$tpl->assign('lines', $lines);
$tpl->assign('lines_accounts', $lines_accounts);
$tpl->assign('analytical_accounts', ['' => '-- Aucun'] + $accounts->listAnalytical());
$tpl->assign('linked_users', $transaction->listLinkedUsersAssoc());

$tpl->display('acc/transactions/edit.tpl');

Modified src/www/admin/acc/transactions/new.php from [bb27947203] to [7159e64fc0].

1
2
3
4

5
6
7
8
9

10
11
12
13
14
15
16
<?php
namespace Garradin;

use Garradin\Entities\Accounting\Transaction;


require_once __DIR__ . '/../_inc.php';

$session->requireAccess('compta', Membres::DROIT_ECRITURE);


$chart = $year->chart();
$accounts = $chart->accounts();

$transaction = new Transaction;
$lines = [[], []];

if (f('save') && $form->check('acc_transaction_new')) {




>





>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
namespace Garradin;

use Garradin\Entities\Accounting\Transaction;
use Garradin\Accounting\Years;

require_once __DIR__ . '/../_inc.php';

$session->requireAccess('compta', Membres::DROIT_ECRITURE);

$year = Years::get(SELECTED_YEAR_ID);
$chart = $year->chart();
$accounts = $chart->accounts();

$transaction = new Transaction;
$lines = [[], []];

if (f('save') && $form->check('acc_transaction_new')) {

Modified src/www/admin/acc/years/balance.php from [2bc713be3a] to [5643b35b74].

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
if (f('save') && $form->check('acc_years_balance_' . $year->id()))
{
	try {
		$transaction = new Transaction;
		$transaction->importFromBalanceForm($year);
		$transaction->save();

		Utils::redirect(ADMIN_URL . 'acc/years/');
	}
	catch (UserException $e)
	{
		$form->addError($e->getMessage());
	}
}








|







22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
if (f('save') && $form->check('acc_years_balance_' . $year->id()))
{
	try {
		$transaction = new Transaction;
		$transaction->importFromBalanceForm($year);
		$transaction->save();

		Utils::redirect(ADMIN_URL . 'acc/transactions/details.php?id=' . $transaction->id());
	}
	catch (UserException $e)
	{
		$form->addError($e->getMessage());
	}
}

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
}

if ($previous_year) {
	$lines = Reports::getClosingSumsWithAccounts($previous_year);
	$lines_accounts = [];

	foreach ($lines as $k => $line) {
		$lines_accounts[$k] = [$line->id_account => sprintf('%s - %s', $line->account_code, $line->account_name)];
	}
}

$tpl->assign('lines', $lines);
$tpl->assign('lines_accounts', $lines_accounts);
$tpl->assign('years', $years);
$tpl->assign('previous_year', $previous_year);
$tpl->assign('year', $year);

$tpl->display('acc/years/balance.tpl');







|










47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
}

if ($previous_year) {
	$lines = Reports::getClosingSumsWithAccounts($previous_year);
	$lines_accounts = [];

	foreach ($lines as $k => $line) {
		$lines_accounts[$k] = [$line->id_account => sprintf('%s  %s', $line->account_code, $line->account_name)];
	}
}

$tpl->assign('lines', $lines);
$tpl->assign('lines_accounts', $lines_accounts);
$tpl->assign('years', $years);
$tpl->assign('previous_year', $previous_year);
$tpl->assign('year', $year);

$tpl->display('acc/years/balance.tpl');

Modified src/www/admin/static/admin.css from [285b9aef62] to [96ce122570].

172
173
174
175
176
177
178






179
180
181
182
183
184
185
    margin: 1em 1em 1em 2.5em;
}

body#transparent main {
    margin: 0;
    padding: .2em;
}







span.error, b.error {
    color: #900;
}

span.confirm, b.confirm {
    color: #090;







>
>
>
>
>
>







172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
    margin: 1em 1em 1em 2.5em;
}

body#transparent main {
    margin: 0;
    padding: .2em;
}

/** Alert, confirm and error messages */
h3.warning {
    margin: 1em;
    color: red;
}

span.error, b.error {
    color: #900;
}

span.confirm, b.confirm {
    color: #090;
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
}

p.help {
    margin: 1em;
    color: #666;
}

p.intro {
    margin: 1em;
}

.error ul, .alert ul, .confirm ul {
    margin-left: 1.5em;
    list-style: disc;
}

/* Formulaires */
fieldset {
    border: 1px solid #ccc;
    padding: 0.8em 1em 0 1em;
    margin-bottom: 1em;
    padding: 0.5em;
}








<
<
<
<





|







248
249
250
251
252
253
254




255
256
257
258
259
260
261
262
263
264
265
266
267
}

p.help {
    margin: 1em;
    color: #666;
}





.error ul, .alert ul, .confirm ul {
    margin-left: 1.5em;
    list-style: disc;
}

/* Forms */
fieldset {
    border: 1px solid #ccc;
    padding: 0.8em 1em 0 1em;
    margin-bottom: 1em;
    padding: 0.5em;
}

410
411
412
413
414
415
416






































417
418
419
420
421
422
423

input.money + b {
    padding: .2rem .6rem;
    line-height: 1.5rem;
    color: #999;
}







































.datepicker-parent {
    position: relative;
}

dialog.datepicker {
    position: absolute;
    left: 0;







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463

input.money + b {
    padding: .2rem .6rem;
    line-height: 1.5rem;
    color: #999;
}

p.submit {
    margin: 1em;
}

.submit input[type=submit] {
    font-size: 1.2em;
}

.submit input.minor {
    font-size: .9em;
}

form .checkUncheck {
    float: left;
}

form span.password_check {
    margin-left: 1em;
    padding: .1em .3em;
    border-radius: .5em;
}

form span.password_check.fail { background-color: #f99; }
form span.password_check.weak { background-color: #ff9; }
form span.password_check.medium { background-color: #ccf; }
form span.password_check.ok { background-color: #cfc; }

dd.help input[type=text] {
    cursor: pointer;
    padding: 0;
    font-family: monospace;
}

form p.actions {
    float: right;
}

/** Datepicker widget */
.datepicker-parent {
    position: relative;
}

dialog.datepicker {
    position: absolute;
    left: 0;
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
}

.datepicker tbody td.focus {
    background: #339;
    color: #fff;
}


#dialog {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;







|







512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
}

.datepicker tbody td.focus {
    background: #339;
    color: #fff;
}

/** Dialogs pop-ins */
#dialog {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
.loader img {
    position: absolute;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 2;
}

select.large {
    width: 95%;
}

select.large .niveau_1 {
    background: #333;
    color: #fff;
    font-style: normal;
    font-size: 1.2em;
}

select.large optgroup.niveau_2 {
    background: #666;
    color: #fff;
    font-style: normal;
    padding-left: 1em;
}

select.large option {
    background: #fff;
    color: #000;
}

select.large .niveau_2 { font-style: italic; background: #eee; }
select.large .niveau_3 { padding-left: 1em; font-weight: bold; }
select.large .niveau_4 { padding-left: 2em; }
select.large .niveau_5 { padding-left: 3em; }
select.large .niveau_6 { padding-left: 4em; }

p.submit {
    margin: 1em;
}

.submit input[type=submit] {
    font-size: 1.2em;
}

.submit input.minor {
    font-size: .9em;
}

form .checkUncheck {
    float: left;
}

form span.password_check {
    margin-left: 1em;
    padding: .1em .3em;
    border-radius: .5em;
}

form span.password_check.fail { background-color: #f99; }
form span.password_check.weak { background-color: #ff9; }
form span.password_check.medium { background-color: #ccf; }
form span.password_check.ok { background-color: #cfc; }

dd.help input[type=text] {
    cursor: pointer;
    padding: 0;
    font-family: monospace;
}

form p.actions {
    float: right;
}

nav.tabs ul {
    list-style-type: none;
    margin: 1em 0;
    border-bottom: 2px solid #9c4f15;
    border-bottom-color: rgb(var(--gMainColor));
    padding: 0 1em;
    z-index: 100;







<
<
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







572
573
574
575
576
577
578


579
580






























































581
582
583
584
585
586
587
.loader img {
    position: absolute;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 2;
}




/** Context-specific tabs */






























































nav.tabs ul {
    list-style-type: none;
    margin: 1em 0;
    border-bottom: 2px solid #9c4f15;
    border-bottom-color: rgb(var(--gMainColor));
    padding: 0 1em;
    z-index: 100;
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
nav.tabs li a:hover {
    color: #fff;
    background-color: rgb(var(--gMainColor));
    text-decoration: underline;
    border-bottom: none;
}

h3.warning {
    margin: 1em;
    color: red;
}

dd.help, small.help {
    color: #666;
}

ul.gallery {
    text-align: center;
}







<
<
<
<
<







621
622
623
624
625
626
627





628
629
630
631
632
633
634
nav.tabs li a:hover {
    color: #fff;
    background-color: rgb(var(--gMainColor));
    text-decoration: underline;
    border-bottom: none;
}






dd.help, small.help {
    color: #666;
}

ul.gallery {
    text-align: center;
}
846
847
848
849
850
851
852

853
854
855
856
857
858
859
860
861












862
863
864
865
866
867
868
    text-shadow: none;
}

table.list .actions {
    text-align: right;
}


.money {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

b.money {
    font-weight: inherit;
    white-space: pre;
}













#rapport h3 {
    text-align: center;
    margin-bottom: .5em;
}

#rapport table {







>









>
>
>
>
>
>
>
>
>
>
>
>







817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
    text-shadow: none;
}

table.list .actions {
    text-align: right;
}

/** Accounting specifics */
.money {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

b.money {
    font-weight: inherit;
    white-space: pre;
}

nav.acc-year {
    max-width: 28rem;
}

nav.acc-year fieldset {
    background: #fff;
}

nav.acc-year select {
    max-width: 20rem;
}

#rapport h3 {
    text-align: center;
    margin-bottom: .5em;
}

#rapport table {