{extends file="admin-layout.tpl"} {default_translation_domain domain='contest.bo.default'} {block name="no-return-functions"} {$admin_current_location = 'tools'} {/block} {block name="page-title"}{intl l='Participate'}{/block} {block name="check-resource"}admin.module{/block} {block name="check-access"}view{/block} {block name="check-module"}Contest{/block} {block name="main-content"}
{$game_id={$smarty.get.game}} {if $general_error}
{$general_error}
{/if}
{loop name="participate-list" type="participate" order=$order game_id=$game_id} {* Actions *} {/loop} {elseloop rel="participate-list"} {/elseloop} {ifloop rel="participate-list"} {/ifloop}
{if $game_id}{loop type="game" name="game-title" id=$game_id limit=1}{$TITLE} - {/loop}{/if}{intl l="Participate" d='contest.bo.default'} {loop name="auth-create" type="auth" role="ADMIN" resource="admin.module" access="CREATE" module="Contest"} {/loop} {if $game_id} {/if}
{admin_sortable_header current_order=$order order='id' reverse_order='id-reverse' path={url path='/admin/module/Contest/participate' target='participate-table'} label="{intl l='Id' d='contest.bo.default'}" } {admin_sortable_header current_order=$order order='email' reverse_order='email-reverse' path={url path='/admin/module/Contest/participate' target='participate-table'} label="{intl l='Email' d='contest.bo.default'}" } {admin_sortable_header current_order=$order order='win' reverse_order='win-reverse' path={url path='/admin/module/Contest/participate' target='participate-table'} label="{intl l='Win' d='contest.bo.default'}" } {admin_sortable_header current_order=$order order='customer_id' reverse_order='customer_id-reverse' path={url path='/admin/module/Contest/participate' target='participate-table'} label="{intl l='CustomerId' d='contest.bo.default'}" } {intl l="Actions"}
{$ID} {$EMAIL} {if $WIN}{intl l="WIN"}{else}{intl l="FAIL"}{/if} {$CUSTOMER_ID}
{loop name="auth-edit" type="auth" role="ADMIN" resource="admin.module" access="UPDATE" module="Contest"} {/loop} {loop name="auth-delete" type="auth" role="ADMIN" resource="admin.module" access="DELETE" module="Contest"} {/loop}
{intl l="There is no Participate" d="contest.bo.default"}
{include file = "includes/pagination.html" loop_ref = "participate-list" max_page_count = 20 page_url = "{url path="/admin/module/Contest/participate" order=$order target='participate-table'}" }
{* CREATE Modal *} {form name="participate.create"} {capture "participate_create"} {form_hidden_fields form=$form} {render_form_field form=$form field="success_url" value={url path='/admin/module/Contest/participate/edit?participate_id=_ID_'}} {form_field form=$form field="email"}
{form_error form=$form field="email"}{$message}{/form_error}
{/form_field} {form_field form=$form field="win"}
{form_error form=$form field="win"}{$message}{/form_error}
{/form_field} {form_field form=$form field="game_id"}
{form_error form=$form field="game_id"}{$message}{/form_error}
{/form_field} {form_field form=$form field="customer_id"}
{form_error form=$form field="customer_id"}{$message}{/form_error}
{/form_field} {/capture} {include file="includes/generic-create-dialog.html" dialog_id = "participate-create" dialog_title = {intl l="Create an entry of Participate" d="contest.bo.default"} dialog_body = {$smarty.capture.participate_create nofilter} dialog_ok_label = {intl l="Create"} dialog_cancel_label = {intl l="Cancel"} form_action = {$current_url} form_enctype = {form_enctype form=$form} } {/form} {* DELETE modal *} {capture "participate_delete"} {intl l="Do you really want to delete this Participate entry ?" d="contest.bo.default"} {/capture} {include file="includes/generic-confirm-dialog.html" dialog_id = "participate-delete" dialog_title = {intl l="Delete an entry of Participate" d="contest.bo.default"} dialog_message = {$smarty.capture.participate_delete nofilter} dialog_ok_label = {intl l="Delete"} dialog_cancel_label = {intl l="Cancel"} form_action = {token_url path='/admin/module/Contest/participate/delete'} } {/block} {block name="javascript-initialization"} {/block}