framadate/tpl/display_mails.tpl
Thomas Citharel 0e90422b3d
Require php 7.1 and upgrade deps
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-11-11 12:56:01 +01:00

45 lines
1.4 KiB
Smarty

{extends file='page.tpl'}
{block name=main}
<main>
{if ($mails_yes|count) === 0}
{t('display_mails', "No one voted 'Yes' to this option.")}</br>
{else}
{t('display_mails', "Users who voted 'Yes' for this option have left those email addresses:")}</br>
{strip}
<pre>
{foreach $mails_yes as $mail}
{$mail|html}<br />
{/foreach}
</pre>
{/strip}
{/if}
<br />
{if ($mails_ifneedbe|count) === 0}
{t('display_mails', "No one voted 'If need be' to this option.")}</br>
{else}
{t('display_mails', "Users who voted 'If need be' for this option have left those email addresses:")}</br>
{strip}
<pre>
{foreach $mails_ifneedbe as $mail}
{$mail|html}<br />
{/foreach}
</pre>
{/strip}
{/if}
<br />
{if ($mails_no|count) === 0}
{t('display_mails', "No one voted 'No' to this option.")}</br>
{else}
{t('display_mails', "Users who voted 'No' for this option have left those email addresses:")}</br>
{strip}
<pre>
{foreach $mails_no as $mail}
{$mail|html}<br />
{/foreach}
</pre>
{/strip}
{/if}
<br />
<a href="{poll_url id=$admin_poll_id admin=true}" class="btn btn-default" name="back">{t('adminstuds', 'Back to the poll')}</a>
{/block}