bouffeatulm/tpl/default/manage_paybacks.html

46 lines
2.0 KiB
HTML
Raw Permalink Normal View History

{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: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>
<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>
{/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>
2014-08-31 14:27:57 +02:00
<p>{$i18n['add_global_payback_text_2']}</p>
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>
2014-08-31 14:27:57 +02:00
<p><strong>{$i18n['note']}{$i18n['before_double_ponctuation']}:</strong> {$i18n['add_global_payback_note']}</p>
<hr/>
2014-08-31 14:27:57 +02:00
<p>{$i18n['select_users_global_payback']}</p>
<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>
{loop="$users"}
<input type="checkbox" id="users_in_{$value->getId()}" name="users_in[]" class="users_in" value="{$value->getId()}" checked="checked"/>
<label for="users_in_{$value->getId()}">{$value->getDisplayName()}</label><br/>
{/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>
</fieldset>
<p>
2014-08-31 14:27:57 +02:00
<input type="submit" onclick="return confirm('{$i18n['add_global_payback_confirm']}');" value="{$i18n['confirm']}"/>
<input type="hidden" name="token" value="{$token}"/>
</p>
</form>
{/if}
{include="footer"}