bouffeatulm/tpl/default/manage_paybacks.html
2014-08-31 14:27:57 +02:00

46 lines
2.0 KiB
HTML

{include="header"}
{if condition="!empty($list)"}
<h2>{$i18n['manage_global_paybacks']}</h2>
<p class="center"><a href="?do=manage_paybacks&new=1">{$i18n['add_global_payback']}</a></p>
{if condition="$global_paybacks !== FALSE"}
<p>{$i18n['list_previous_global_paybacks']}{$i18n['before_double_ponctuation']}:</p>
<dl>
{loop="$global_paybacks"}
<dt>{$value->getDate()}</dt>
<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}
<h2>{$i18n['add_global_payback']}</h2>
<p>{$i18n['add_global_payback_text_1']}</p>
<p>{$i18n['add_global_payback_text_2']}</p>
<p><strong>{$i18n['note']}{$i18n['before_double_ponctuation']}: <span class="red">{$i18n['add_global_payback_strong']}</span></strong></p>
<p><strong>{$i18n['note']}{$i18n['before_double_ponctuation']}:</strong> {$i18n['add_global_payback_note']}</p>
<hr/>
<p>{$i18n['select_users_global_payback']}</p>
<form method="post" action="?do=manage_paybacks&new=1" id="global_payback_form">
<fieldset>
<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/>
{$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>
<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"}