2013-09-23 23:18:21 +02:00
|
|
|
{include="header"}
|
|
|
|
|
|
|
|
{if condition="!empty($list)"}
|
2014-08-31 14:27:57 +02:00
|
|
|
<h2>{$i18n['manage_global_paybacks']}</h2>
|
|
|
|
<p class="center"><a href="?do=manage_paybacks&new=1">{$i18n['add_global_payback']}</a></p>
|
2013-09-23 23:18:21 +02:00
|
|
|
|
2013-09-23 23:43:53 +02:00
|
|
|
{if condition="$global_paybacks !== FALSE"}
|
2014-08-31 14:27:57 +02:00
|
|
|
<p>{$i18n['list_previous_global_paybacks']}{$i18n['before_double_ponctuation']}:</p>
|
2013-09-23 23:18:21 +02:00
|
|
|
<dl>
|
|
|
|
{loop="$global_paybacks"}
|
2013-09-23 23:43:53 +02:00
|
|
|
<dt>{$value->getDate()}</dt>
|
2014-08-31 14:27:57 +02:00
|
|
|
<dd>{if condition="$value->getClosed() === true"}[{$i18n['closed']}] {/if}<a href="?do=see_paybacks&id={$value->getId()}">{$i18n['payback']} {$i18n['number']}{$value->getId()}</a></dd>
|
2013-09-23 23:18:21 +02:00
|
|
|
{/loop}
|
|
|
|
</dl>
|
|
|
|
{/if}
|
|
|
|
{else}
|
2014-08-31 14:27:57 +02:00
|
|
|
<h2>{$i18n['add_global_payback']}</h2>
|
|
|
|
<p>{$i18n['add_global_payback_text_1']}</p>
|
2013-09-23 23:18:21 +02:00
|
|
|
|
2014-08-31 14:27:57 +02:00
|
|
|
<p>{$i18n['add_global_payback_text_2']}</p>
|
2013-09-23 23:18:21 +02:00
|
|
|
|
2014-08-31 14:27:57 +02:00
|
|
|
<p><strong>{$i18n['note']}{$i18n['before_double_ponctuation']}: <span class="red">{$i18n['add_global_payback_strong']}</span></strong></p>
|
2013-09-23 23:18:21 +02:00
|
|
|
|
2014-08-31 14:27:57 +02:00
|
|
|
<p><strong>{$i18n['note']}{$i18n['before_double_ponctuation']}:</strong> {$i18n['add_global_payback_note']}</p>
|
2013-09-23 23:18:21 +02:00
|
|
|
|
|
|
|
<hr/>
|
|
|
|
|
2014-08-31 14:27:57 +02:00
|
|
|
<p>{$i18n['select_users_global_payback']}</p>
|
2013-09-23 23:18:21 +02:00
|
|
|
|
|
|
|
<form method="post" action="?do=manage_paybacks&new=1" id="global_payback_form">
|
|
|
|
<fieldset>
|
2014-08-31 14:27:57 +02:00
|
|
|
<legend>{$i18n['users_to_include']}</legend>
|
2013-09-23 23:18:21 +02:00
|
|
|
{loop="$users"}
|
2013-09-27 17:33:04 +02:00
|
|
|
<input type="checkbox" id="users_in_{$value->getId()}" name="users_in[]" class="users_in" value="{$value->getId()}" checked="checked"/>
|
2013-09-23 23:18:21 +02:00
|
|
|
<label for="users_in_{$value->getId()}">{$value->getDisplayName()}</label><br/>
|
2013-09-27 17:33:04 +02:00
|
|
|
{/loop}<br/>
|
2014-08-31 14:27:57 +02:00
|
|
|
{$i18n['select']}{$i18n['before_double_ponctuation']}: <a href="" onclick="return payback_nobody();">{$i18n['nobody']}</a> / <a href="" onclick="return payback_everybody();">{$i18n['everybody']}</a>
|
2013-09-23 23:18:21 +02:00
|
|
|
</fieldset>
|
|
|
|
<p>
|
2014-08-31 14:27:57 +02:00
|
|
|
<input type="submit" onclick="return confirm('{$i18n['add_global_payback_confirm']}');" value="{$i18n['confirm']}"/>
|
2013-09-25 22:09:25 +02:00
|
|
|
<input type="hidden" name="token" value="{$token}"/>
|
2013-09-23 23:18:21 +02:00
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
{/if}
|
|
|
|
{include="footer"}
|