{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='Answer'}{/block} {block name="check-resource"}admin.module{/block} {block name="check-access"}update{/block} {block name="check-module"}Contest{/block} {block name="main-content"} {form name="answer.update"}
{if $form_error}
{$form_error_message}
{/if}
{intl l="Answer edit" d="contest.bo.default"}
{loop type="answer" name="answer-back" id=$answer_id limit=1} {include "includes/inner-form-toolbar.html" close_url = {url path="/admin/module/Contest/answer" question=$QUESTION_ID} } {/loop} {form_field form=$form field="id"} {assign "answer_id" $value} {/form_field} {form_field form=$form field="locale"} {/form_field} {form_field form=$form field="success_url"} {/form_field} {form_hidden_fields form=$form} {loop name="answer_update" type="answer" backend_context="yes" id=$answer_id lang=$edit_language_id}
{form_field form=$form field="correct"}
{form_error form=$form field="correct"}{$message}{/form_error}
{/form_field} {form_field form=$form field="title"}
{form_error form=$form field="title"}{$message}{/form_error}
{/form_field} {form_field form=$form field="description"}
{form_error form=$form field="description"}{$message}{/form_error}
{/form_field} {form_field form=$form field="question_id"}
{form_error form=$form field="question_id"}{$message}{/form_error}
{/form_field} {include "includes/inner-form-toolbar.html" hide_flags = true close_url = {url path="/admin/module/Contest/answer"} } {intl l="Answer created on %created_at. Last modification: %updated_at" created_at={format_date date=$CREATE_DATE} updated_at={format_date date=$UPDATE_DATE} d="contest.bo.default" }
{/loop}
{/form} {/block} {block name="javascript-initialization"} {/block}