Extensions Paheko  Check-in [2117fad341]

Overview
Comment:HelloAsso: config pages merged
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 2117fad3410556df9930b0cfc127da9cc76494bd
User & Date: alinaar on 2023-05-31 16:54:17
Other Links: branch diff | manifest | tags
Context
2023-06-04
13:35
HelloAsso: "pay what you want" support implemented for accounting check-in: d61fa2c801 user: alinaar tags: dev
2023-05-31
22:17
Refactor stock velos demontage check-in: e0ef797f2b user: bohwaz tags: dev
16:54
HelloAsso: config pages merged check-in: 2117fad341 user: alinaar tags: dev
16:46
HelloAsso: old config template removed check-in: a13b843f1e user: alinaar tags: dev
Changes

Modified helloasso/admin/config.php from [025f039dca] to [4dca80d63f].

84
85
86
87
88
89
90
91
	'payer_fields' => $payer_fields,
	'dynamic_fields' => $dynamic_fields,
	'email_fields' => $email_fields,
	'user_match_fields' => $ha::USER_MATCH_TYPES,
	'merge_names_options' => $ha::MERGE_NAMES_OPTIONS
]);

$tpl->display(PLUGIN_ROOT . '/templates/config_client.tpl');







|
84
85
86
87
88
89
90
91
	'payer_fields' => $payer_fields,
	'dynamic_fields' => $dynamic_fields,
	'email_fields' => $email_fields,
	'user_match_fields' => $ha::USER_MATCH_TYPES,
	'merge_names_options' => $ha::MERGE_NAMES_OPTIONS
]);

$tpl->display(PLUGIN_ROOT . '/templates/config.tpl');

Modified helloasso/lib/Items.php from [98194df7c2] to [fcc3ad2042].

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use Garradin\Users\DynamicFields;
use Garradin\Users\Users;
use Garradin\Entities\Users\User;
use Garradin\Plugin\HelloAsso\Payments;

use KD2\DB\EntityManager as EM;

use Garradin\Plugin\HelloAsso\Mock\MockItems;

class Items
{
	const TRANSACTION_PREFIX = 'Item';
	const TRANSACTION_NOTE = 'Générée automatiquement par l\'extension ' . HA::PROVIDER_LABEL . '.';
	const DONATION_LABEL = 'Don';
	const CHECKOUT_LABEL = 'Commande #%d (%s)';







|







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use Garradin\Users\DynamicFields;
use Garradin\Users\Users;
use Garradin\Entities\Users\User;
use Garradin\Plugin\HelloAsso\Payments;

use KD2\DB\EntityManager as EM;

//use Garradin\Plugin\HelloAsso\Mock\MockItems;

class Items
{
	const TRANSACTION_PREFIX = 'Item';
	const TRANSACTION_NOTE = 'Générée automatiquement par l\'extension ' . HA::PROVIDER_LABEL . '.';
	const DONATION_LABEL = 'Don';
	const CHECKOUT_LABEL = 'Commande #%d (%s)';

Modified helloasso/templates/_menu.tpl from [9c55a546c3] to [d8174c6f63].



1
2
3
4
5
6
7
8
9
10
11
12
13
14


<nav class="tabs">
	<ul>
		<li{if $current == 'home'} class="current"{/if}><a href="./">Formulaires</a></li>
		{*<li{if $current == 'targets'} class="current"{/if}><a href="targets.php">Synchronisation</a></li>*}
		{if $session->canAccess($session::SECTION_CONFIG, $session::ACCESS_ADMIN)}
			{*<li{if $current == 'config'} class="current"{/if}><a href="config.php">Configuration</a></li>*}
			<li{if $current == 'config_client'} class="current"{/if}><a href="config_client.php">Connexion à HelloAsso</a></li>
			<li{if $current == 'sync'} class="current"{/if}><a href="sync.php">Synchronisation</a></li>
		{/if}
	</ul>

	{if !empty($form.name)}
		{if !empty($show_export)}
		<aside>
>
>


|
|


|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{if !$dialog}

<nav class="tabs">
	<ul>
			<li{if $current == 'home'} class="current"{/if}><a href="./">Formulaires</a></li>
			{*<li{if $current == 'targets'} class="current"{/if}><a href="targets.php">Synchronisation</a></li>*}
		{if $session->canAccess($session::SECTION_CONFIG, $session::ACCESS_ADMIN)}
			{*<li{if $current == 'config'} class="current"{/if}><a href="config.php">Configuration</a></li>*}
			<li{if $current == 'config_client'} class="current"{/if}><a href="config.php">Connexion à HelloAsso</a></li>
			<li{if $current == 'sync'} class="current"{/if}><a href="sync.php">Synchronisation</a></li>
		{/if}
	</ul>

	{if !empty($form.name)}
		{if !empty($show_export)}
		<aside>
22
23
24
25
26
27
28

29
30
31
32
		<li{if $current_sub == 'orders'} class="current"{/if}>{link href="orders.php?id=%d"|args:$form.id label="Commandes"}</li>
		<li{if $current_sub == 'payments'} class="current"{/if}>{link href="payments.php?id=%d"|args:$form.id label="Paiements"}</li>
		<li{if $current_sub == 'chargeables'} class="current"{/if}>{link href="chargeables.php?id=%d"|args:$form.id label="Articles"}</li>
	</ul>
	{/if}
</nav>



{if !empty($restricted)}
	<p class="alert block">Cette version est limitée, et ne pourra importer que les 5 premiers résultats depuis HelloAsso.<br />Merci de réaliser une contribution à Garradin pour débloquer l'extension et participer au financement du projet :)</p>
{/if}







>




24
25
26
27
28
29
30
31
32
33
34
35
		<li{if $current_sub == 'orders'} class="current"{/if}>{link href="orders.php?id=%d"|args:$form.id label="Commandes"}</li>
		<li{if $current_sub == 'payments'} class="current"{/if}>{link href="payments.php?id=%d"|args:$form.id label="Paiements"}</li>
		<li{if $current_sub == 'chargeables'} class="current"{/if}>{link href="chargeables.php?id=%d"|args:$form.id label="Articles"}</li>
	</ul>
	{/if}
</nav>

{/if}

{if !empty($restricted)}
	<p class="alert block">Cette version est limitée, et ne pourra importer que les 5 premiers résultats depuis HelloAsso.<br />Merci de réaliser une contribution à Garradin pour débloquer l'extension et participer au financement du projet :)</p>
{/if}

Name change from helloasso/templates/config_client.tpl to helloasso/templates/config.tpl.