Overview
Comment:Sélecteur de compte fonctionnel
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: b7d307b8a535ceacd8052c963b97943d6128ca23
User & Date: bohwaz on 2020-09-10 15:36:42
Other Links: branch diff | manifest | tags
Context
2020-09-10
17:08
Account selection is functional check-in: 0df14a7dd9 user: bohwaz tags: dev
15:36
Sélecteur de compte fonctionnel check-in: b7d307b8a5 user: bohwaz tags: dev
00:41
Prototype of advanced select, using external list from an iframe check-in: a527b1e7f9 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Accounting/Accounts.php from [5fddbf1ac4] to [a3380e0712].

54
55
56
57
58
59
60
61
62







63
64
65
66
67
68
69
70
71
			$this->chart_id, Account::TYPE_VOLUNTEERING);
	}

	/**
	 * List common accounts, grouped by type
	 * @return array
	 */
	public function listCommonGrouped(): array
	{







		$out = [];
		$query = $this->em->iterate('SELECT * FROM @TABLE WHERE id_chart = ? AND type != 0 AND type_parent = 0 ORDER BY type, code COLLATE NOCASE;',
			$this->chart_id);

		foreach ($query as $row) {
			$name = Account::TYPES_NAMES[$row->type];

			if (!isset($out[$name])) {
				$out[$name] = [];







|

>
>
>
>
>
>
>

|







54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
			$this->chart_id, Account::TYPE_VOLUNTEERING);
	}

	/**
	 * List common accounts, grouped by type
	 * @return array
	 */
	public function listCommonGrouped(array $types = null): array
	{
		if (null === $types) {
			$types = '';
		}
		else {
			$types = ' AND ' . $this->em->DB()->where('type', $types);
		}

		$out = [];
		$query = $this->em->iterate('SELECT * FROM @TABLE WHERE id_chart = ? AND type != 0 ' . $types . ' ORDER BY type, code COLLATE NOCASE;',
			$this->chart_id);

		foreach ($query as $row) {
			$name = Account::TYPES_NAMES[$row->type];

			if (!isset($out[$name])) {
				$out[$name] = [];

Modified src/include/lib/Garradin/Template.php from [291822c871] to [f5047d25e3].

251
252
253
254
255
256
257
258
259
260
261
262
263
264
265

			$input .= '</select>';
		}
		elseif ($type == 'textarea') {
			$input = sprintf('<textarea %s>%s</textarea>', $attributes_string, $this->escape($current_value));
		}
		elseif ($type == 'list') {
			$input = sprintf('<span id="%s_container" class="input-list"><input type="hidden" value="%s" %s /><span class="value">%2$s</span><button type="button" data-icon="%s" name="list_selector[%2$s]" class="icn-btn" value="%s">%s</button></span>', $this->escape($attributes['id']), $this->escape($current_value), $attributes_string, Utils::iconUnicode('menu'), $this->escape($attributes['target']), 'Sélectionner');
		}
		else {
			$input = sprintf('<input type="%s" %s value="%s" />', $type, $attributes_string, $this->escape($current_value));
		}

		// No label? then we only want the input without the widget
		if (empty($label)) {







|







251
252
253
254
255
256
257
258
259
260
261
262
263
264
265

			$input .= '</select>';
		}
		elseif ($type == 'textarea') {
			$input = sprintf('<textarea %s>%s</textarea>', $attributes_string, $this->escape($current_value));
		}
		elseif ($type == 'list') {
			$input = sprintf('<span id="%s_container" class="input-list"><input type="hidden" value="%s" %s /><span class="label">%2$s</span><button type="button" data-icon="%s" name="list_selector[%2$s]" class="icn-btn" value="%s">%s</button></span>', $this->escape($attributes['id']), $this->escape($current_value), $attributes_string, Utils::iconUnicode('menu'), $this->escape($attributes['target']), 'Sélectionner');
		}
		else {
			$input = sprintf('<input type="%s" %s value="%s" />', $type, $attributes_string, $this->escape($current_value));
		}

		// No label? then we only want the input without the widget
		if (empty($label)) {

Added src/templates/acc/accounts/selector.tpl version [d6563ce158].











































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{include file="admin/_head.tpl" title="Sélectionner un compte" body_id="popup" is_popup=true}

{if isset($grouped_accounts)}

	{foreach from=$grouped_accounts key="group_name" item="accounts"}
		<h2 class="ruler">{$group_name}</h2>

		<table class="list">
			<tbody>
			{foreach from=$accounts item="account"}
				<tr>
					<td>{$account.code}</td>
					<th>{$account.label}</th>
					<td class="desc">{$account.description}</td>
					<td class="actions">
						<button class="icn-btn" value="{$account.code}" data-label="&lt;b&gt;{$account.code}&lt;/b&gt; — {$account.label}" data-icon="&rarr;">Sélectionner</button>
					</td>
				</tr>
			{/foreach}
			</tbody>
		</table>
	{/foreach}

{/if}

{literal}
<script type="text/javascript">
var buttons = document.querySelectorAll('button');

buttons.forEach((e) => {
	e.onclick = () => {
		window.parent.inputListSelected(e.value, e.getAttribute('data-label'));
	};
});

buttons[0].focus();

var rows = document.querySelectorAll('table tr');

rows.forEach((e) => {
	e.className = 'clickable';
	e.onclick = (evt) => {
		if (evt.target.tagName && evt.target.tagName == 'BUTTON') {
			return;
		}

		e.querySelector('button').click();
	};
});
</script>
{/literal}

{include file="admin/_foot.tpl"}

Modified src/templates/acc/transactions/new.tpl from [55ceff898a] to [e8a2cd2bf5].

18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81

82
83

84
85
86
87
88


89
90
91
92
93
94
95
..
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
...
120
121
122
123
124
125
126













127
128
129
130
131
132
133
134
135
136
137
138

139
140
141
142
143
144
145










146
147


148
149
150

151
152

153

154
155
156
157
158
159
160
			{input type="radio" name="type" value="transfer" label="Virement" help="Faire un virement entre comptes, déposer des espèces en banque, etc."}
			{input type="radio" name="type" value="debt" label="Dette" help="Quand l'association doit de l'argent à un membre ou un fournisseur"}
			{input type="radio" name="type" value="credit" label="Créance" help="Quand un membre ou un fournisseur doit de l'argent à l'association"}
			{input type="radio" name="type" value="advanced" label="Saisie avancée" help="Choisir les comptes du plan comptable, ventiler une écriture sur plusieurs comptes, etc."}
		</dl>
	</fieldset>

	<fieldset>
		<legend>Informations</legend>
		<dl>
			{input type="text" name="label" label="Libellé" required=1}
		</dl>
		<dl data-types="revenue expense transfer debt credit">
			{input type="date" name="date" value=$date label="Date" required=1}
			{input type="number" name="amount" label="Montant (%s)"|args:$config.monnaie min="0.00" step="0.01" value="0.00" required=1}
			{input type="text" name="reference_paiement" label="Référence de paiement" help="Numéro de chèque, numéro de transaction CB, etc."}
		</dl>
	</fieldset>

	<fieldset data-types="transfer">
		<legend>Virement</legend>
		<dl>
			{input type="list" target="common" name="from" label="De" required=1}
			{input type="list" target="common" name="to" label="Vers" required=1}
		</dl>
	</fieldset>

	<fieldset data-types="revenue">
		<legend>Recette</legend>
		<dl>
			{input type="list" target="revenue" name="from" label="Type de recette" required=1}
			{input type="list" target="common" name="to" label="Compte d'encaissement" required=1}
		</dl>
	</fieldset>

	<fieldset data-types="expense">
		<legend>Dépense</legend>
		<dl>
			{input type="list" target="expense" name="to" label="Type de dépense" required=1}
			{input type="list" target="common" name="from" label="Compte de décaissement" required=1}
		</dl>
	</fieldset>

	<fieldset data-types="debt">
		<legend>Dette</legend>
		<dl>
			{input type="list" target="thirdparty" name="to" label="Compte de tiers" required=1}
			{input type="list" target="common" name="from" label="Type de dette" required=1}
		</dl>
	</fieldset>

	<fieldset data-types="debt">
		<legend>Créance</legend>
		<dl>
			{input type="list" target="thirdparty" name="to" label="Compte de tiers" required=1}
			{input type="list" target="common" name="from" label="Type de dette" required=1}
		</dl>
	</fieldset>

	<fieldset>
		<legend>Détails</legend>
		<dl>
			{input type="list" multiple=true name="membre" label="Membres associés" target="add"}
			{input type="text" name="numero_piece" label="Numéro de pièce comptable"}

			{input type="textarea" name="remarques" label="Remarques" rows=4 cols=30}


			{if count($analytical_accounts) > 0}
				{input type="select" name="analytical_account" label="Compte analytique (projet)" options=$analytical_accounts}
			{/if}
		</dl>
	</fieldset>



	{* Saisie avancée *}
	<fieldset data-types="advanced">
		<table class="list">
			<thead>
				<tr>
					<th>Compte</th>
................................................................................
					<td>Libellé ligne</td>
					<td></td>
				</tr>
			</thead>
			<tbody>
			{foreach from=$lines key="line_number" item="line"}
				<tr>
					<th>{input type="list" target="all" name="lines[%d][account]"|args:$line_number value=$line.id_account required=1}</th>
					<td>{input type="number" name="lines[%d][debit]"|args:$line_number min="0.00" step="0.01" value=$line.debit required=1}</td>
					<td>{input type="number" name="lines[%d][credit]"|args:$line_number min="0.00" step="0.01" value=$line.credit required=1}</td>
					<td>{input type="text" name="lines[%d][reference]" size=8}</td>
					<td>{input type="text" name="lines[%d][label]"}</td>
					<td></td>
				</tr>
			{/foreach}
................................................................................
					<td colspan="2"></td>
					<td></td>
				</tr>
			</tfoot>
		</table>
	</fieldset>














	<p class="submit">
		{csrf_field key="compta_saisie"}
		<input type="submit" name="save" value="Enregistrer &rarr;" />
	</p>

</form>

{literal}
<script type="text/javascript">
var current_input;

function initForm() {

	var inputs = $('.input-list button');

	inputs.forEach((i) => {
		i.onclick = () => {
			current_input = i.parentNode;
			g.openFrameDialog(g.admin_url + 'acc/accounts/selector.php?target=' + i.value);
			return false;










		};
	});


}

function inputListSelected(value, label) {

	current_input.querySelector('input[type=hidden]').value = value;
	current_input.querySelector('span').innerHTML = label;

	g.closeFrameDialog();

}

initForm();
</script>
{/literal}

{include file="admin/_foot.tpl"}







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



|
|






|
|






|
|






|
|



|


|
|




|

<
|
>
|
<
>
|
|
<


>
>







 







|







 







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









<


>
|

|
|
<
<
<
>
>
>
>
>
>
>
>
>
>


>
>



>
|
<
>
|
>







18
19
20
21
22
23
24












25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

68
69
70

71
72
73

74
75
76
77
78
79
80
81
82
83
84
..
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
...
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137

138
139
140
141
142
143
144



145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163

164
165
166
167
168
169
170
171
172
173
			{input type="radio" name="type" value="transfer" label="Virement" help="Faire un virement entre comptes, déposer des espèces en banque, etc."}
			{input type="radio" name="type" value="debt" label="Dette" help="Quand l'association doit de l'argent à un membre ou un fournisseur"}
			{input type="radio" name="type" value="credit" label="Créance" help="Quand un membre ou un fournisseur doit de l'argent à l'association"}
			{input type="radio" name="type" value="advanced" label="Saisie avancée" help="Choisir les comptes du plan comptable, ventiler une écriture sur plusieurs comptes, etc."}
		</dl>
	</fieldset>













	<fieldset data-types="transfer">
		<legend>Virement</legend>
		<dl>
			{input type="list" target="%sacc/accounts/selector.php?target=common"|args:$admin_url name="from" label="De" required=1}
			{input type="list" target="%sacc/accounts/selector.php?target=common"|args:$admin_url name="to" label="Vers" required=1}
		</dl>
	</fieldset>

	<fieldset data-types="revenue">
		<legend>Recette</legend>
		<dl>
			{input type="list" target="%sacc/accounts/selector.php?target=revenue"|args:$admin_url name="from" label="Type de recette" required=1}
			{input type="list" target="%sacc/accounts/selector.php?target=common"|args:$admin_url name="to" label="Compte d'encaissement" required=1}
		</dl>
	</fieldset>

	<fieldset data-types="expense">
		<legend>Dépense</legend>
		<dl>
			{input type="list" target="%sacc/accounts/selector.php?target=expense"|args:$admin_url name="to" label="Type de dépense" required=1}
			{input type="list" target="%sacc/accounts/selector.php?target=common"|args:$admin_url name="from" label="Compte de décaissement" required=1}
		</dl>
	</fieldset>

	<fieldset data-types="debt">
		<legend>Dette</legend>
		<dl>
			{input type="list" target="%sacc/accounts/selector.php?target=thirdparty"|args:$admin_url name="to" label="Compte de tiers" required=1}
			{input type="list" target="%sacc/accounts/selector.php?target=expense"|args:$admin_url name="from" label="Type de dette (dépense)" required=1}
		</dl>
	</fieldset>

	<fieldset data-types="credit">
		<legend>Créance</legend>
		<dl>
			{input type="list" target="%sacc/accounts/selector.php?target=thirdparty"|args:$admin_url name="to" label="Compte de tiers" required=1}
			{input type="list" target="%sacc/accounts/selector.php?target=revenue"|args:$admin_url name="from" label="Type de créance (recette)" required=1}
		</dl>
	</fieldset>

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

			{input type="text" name="label" label="Libellé" required=1}
			{input type="date" name="date" value=$date label="Date" required=1}
		</dl>

		<dl data-types="all-but-advanced">
			{input type="number" name="amount" label="Montant (%s)"|args:$config.monnaie min="0.00" step="0.01" value="0.00" required=1}
			{input type="text" name="reference_paiement" label="Référence de paiement" help="Numéro de chèque, numéro de transaction CB, etc."}

		</dl>
	</fieldset>



	{* Saisie avancée *}
	<fieldset data-types="advanced">
		<table class="list">
			<thead>
				<tr>
					<th>Compte</th>
................................................................................
					<td>Libellé ligne</td>
					<td></td>
				</tr>
			</thead>
			<tbody>
			{foreach from=$lines key="line_number" item="line"}
				<tr>
					<th>{input type="list" target="%sacc/accounts/selector.php?target=all"|args:$admin_url name="lines[%d][account]"|args:$line_number value=$line.id_account required=1}</th>
					<td>{input type="number" name="lines[%d][debit]"|args:$line_number min="0.00" step="0.01" value=$line.debit required=1}</td>
					<td>{input type="number" name="lines[%d][credit]"|args:$line_number min="0.00" step="0.01" value=$line.credit required=1}</td>
					<td>{input type="text" name="lines[%d][reference]" size=8}</td>
					<td>{input type="text" name="lines[%d][label]"}</td>
					<td></td>
				</tr>
			{/foreach}
................................................................................
					<td colspan="2"></td>
					<td></td>
				</tr>
			</tfoot>
		</table>
	</fieldset>

	<fieldset>
		<legend>Détails</legend>
		<dl>
			{input type="list" multiple=true name="membre" label="Membres associés" target="%smembres/selector.php"|args:$admin_url}
			{input type="text" name="numero_piece" label="Numéro de pièce comptable"}
			{input type="textarea" name="remarques" label="Remarques" rows=4 cols=30}

			{if count($analytical_accounts) > 0}
				{input type="select" name="analytical_account" label="Compte analytique (projet)" options=$analytical_accounts}
			{/if}
		</dl>
	</fieldset>

	<p class="submit">
		{csrf_field key="compta_saisie"}
		<input type="submit" name="save" value="Enregistrer &rarr;" />
	</p>

</form>

{literal}
<script type="text/javascript">


function initForm() {
	function hideAll() {
		var sections = $('fieldset[data-types]');

		sections.forEach((e) => {
			e.style.display = 'none';



		});
	}

	var radios = $('fieldset input[type=radio][name=type]');

	radios.forEach((e) => {
		e.onchange = (evt) => {
			hideAll();
			$('[data-types=' + e.value + ']')[0].style.display = 'block';
			$('[data-types=all-but-advanced]')[0].style.display = e.value == 'advanced' ? 'none' : 'block';
		};
	});

	hideAll();
}

function inputListSelected(value, label) {
	var i = g.current_list_input;
	i.parentNode.querySelector('input[type=hidden]').value = value;

	i.parentNode.querySelector('span.label').innerHTML = label;
	g.closeDialog();
	i.focus();
}

initForm();
</script>
{/literal}

{include file="admin/_foot.tpl"}

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

18
19
20
21
22
23
24
25


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



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








>
>

|
18
19
20
21
22
23
24
25
26
27
28
29
		$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);

Modified src/www/admin/acc/accounts/index.php from [f3196c4f82] to [518368b4c7].

11
12
13
14
15
16
17
18

19
20
21

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

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

$types = array_filter(Account::TYPES_NAMES, function ($v) { return $v !== ''; });

$tpl->assign('accounts_types', $types);

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







|
>



11
12
13
14
15
16
17
18
19
20
21
22

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

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

$types = $accounts->getTypesParents();
$types = array_map(function ($v, $k) { return sprintf('%s (%s)', Account::TYPES_NAMES[$k], $v); }, $types, array_keys($types));
$tpl->assign('accounts_types', $types);

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

Added src/www/admin/acc/accounts/selector.php version [01a96e578f].













































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
34
35
36
37
38
<?php

use Garradin\Entities\Accounting\Account;

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

if (empty($_GET['target'])) {
	throw new Garradin\UserException('Aucune cible spécifiée');
}

switch ($_GET['target']) {
	case 'common':
		$types = [Account::TYPE_BANK, Account::TYPE_CASH, Account::TYPE_OUTSTANDING];
		break;
	case 'expense':
		$types = [Account::TYPE_EXPENSE];
		break;
	case 'revenue':
		$types = [Account::TYPE_REVENUE];
		break;
	case 'thirdparty':
		$types = [Account::TYPE_THIRD_PARTY];
		break;
	default:
		break;
}

$accounts = $chart->accounts();

if ($_GET['target'] == 'all') {
	$tpl->assign('accounts', $accounts->listAll());
}
else {
	$tpl->assign('grouped_accounts', $accounts->listCommonGrouped($types));
}


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

Modified src/www/admin/static/admin.css from [b9e1d7c052] to [1039b12155].

269
270
271
272
273
274
275







276
277
278
279
280
281
282
...
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
...
365
366
367
368
369
370
371
372
373
374

















375
376
377
378
379
380
381
...
581
582
583
584
585
586
587





588
589
590
591
592
593
594
...
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
...
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
    color: #000;
}

label:hover {
    cursor: pointer;
    border-bottom: 1px dotted #900;
}








dl dt label {
    font-weight: bold;
}

fieldset dl dt b {
    color: #900;
................................................................................
}

input[type=radio], input[type=checkbox] {
    cursor: pointer;
}

input[type=text], textarea, input[type=password], input[type=email], input[type=number],
input[type=url], input[type=tel], select, button {
    padding: .4rem .6rem;
    font-family: Sans-serif;
    min-width: 20em;
    max-width: 100%;
    border: 1px solid #999;
    font-size: inherit;
    background: #fff;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
................................................................................
    background: none;
    margin-top: .1em;
}

input[type=button].showPassword:hover {
    background: none;
}

form .input-list button {
    float: left;

















}

#dialog {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
................................................................................
    z-index: 100;
}

table.list {
    margin-bottom: 1em;
    width: 100%;
}






table.list.auto {
    width: auto;
}

table.list table {
    margin: 0;
................................................................................
table.list th, table.list td {
    padding: 0.2em 0.5em;
}

table.list tr {
    border: 1px solid rgb(217, 134, 40);
    border-color: rgba(var(--gSecondColor), 0.5);
    transition: background .5s
}

table.list tr:nth-child(even) {
    background: rgb(255, 174, 80);
    background: rgba(217, 134, 40, 0.2);
    background: rgba(var(--gSecondColor), 0.2);
}
................................................................................

h2.ruler:after {
    left: 0.5em;
    margin-right: -50%;
}

.icn-btn {
    border: none;
    font-size: inherit;
    border-radius: .2em;
    padding: .2em .4em;
    margin: .2em .5em;
    display: inline-block;
    background-color: rgba(var(--gSecondColor), 0.1);
    text-shadow: none;







>
>
>
>
>
>
>







 







|

|







 








|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>
>
>
>







 







|







 







|







269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
...
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
...
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
...
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
...
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
...
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
    color: #000;
}

label:hover {
    cursor: pointer;
    border-bottom: 1px dotted #900;
}

table.list tr.clickable:hover {
    cursor: pointer;
    color: #633;
    background: #ffc;

}

dl dt label {
    font-weight: bold;
}

fieldset dl dt b {
    color: #900;
................................................................................
}

input[type=radio], input[type=checkbox] {
    cursor: pointer;
}

input[type=text], textarea, input[type=password], input[type=email], input[type=number],
input[type=url], input[type=tel], select, .input-list {
    padding: .4rem .6rem;
    font-family: inherit;
    min-width: 20em;
    max-width: 100%;
    border: 1px solid #999;
    font-size: inherit;
    background: #fff;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
................................................................................
    background: none;
    margin-top: .1em;
}

input[type=button].showPassword:hover {
    background: none;
}

form .input-list {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: start;
    flex-direction: row-reverse;
    min-width: 0;
}

form .input-list span.label {
    padding: .4rem .6rem;
}

form .input-list button {
    padding: .4rem .6rem;
    margin: 0;
    border: none;
    border-right: 1px solid #ccc;
    border-radius: 0;
}

#dialog {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
................................................................................
    z-index: 100;
}

table.list {
    margin-bottom: 1em;
    width: 100%;
}

table.list td.desc {
    font-size: .9em;
    color: #666;
}

table.list.auto {
    width: auto;
}

table.list table {
    margin: 0;
................................................................................
table.list th, table.list td {
    padding: 0.2em 0.5em;
}

table.list tr {
    border: 1px solid rgb(217, 134, 40);
    border-color: rgba(var(--gSecondColor), 0.5);
    transition: background .2s
}

table.list tr:nth-child(even) {
    background: rgb(255, 174, 80);
    background: rgba(217, 134, 40, 0.2);
    background: rgba(var(--gSecondColor), 0.2);
}
................................................................................

h2.ruler:after {
    left: 0.5em;
    margin-right: -50%;
}

.icn-btn {
    border: 1px solid #fff;
    font-size: inherit;
    border-radius: .2em;
    padding: .2em .4em;
    margin: .2em .5em;
    display: inline-block;
    background-color: rgba(var(--gSecondColor), 0.1);
    text-shadow: none;

Modified src/www/admin/static/scripts/global.js from [4c697c1e18] to [72cac74200].

210
211
212
213
214
215
216















217
218
219
220
221
222
223
		/*
		}
		else
		{
			document.body.removeChild(input);
		}*/
	};
















	g.onload(dateInputFallback);

	if (!document.querySelectorAll)
	{
		return;
	}







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







210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
		/*
		}
		else
		{
			document.body.removeChild(input);
		}*/
	};

	g.current_list_input = null;

		// Sélecteurs de listes
	g.onload(() => {
		var inputs = $(' form .input-list button');

		inputs.forEach((i) => {
			i.onclick = () => {
				g.current_list_input = i.parentNode;
				g.openFrameDialog(i.value);
				return false;
			};
		});
	});

	g.onload(dateInputFallback);

	if (!document.querySelectorAll)
	{
		return;
	}