Passing message directly in template

This commit is contained in:
Antonin 2015-03-26 16:48:39 +01:00
parent b66a47ef67
commit e4ec0c8105
3 changed files with 1 additions and 3 deletions

View File

@ -374,6 +374,5 @@ $smarty->assign('editingVoteId', $editingVoteId);
$smarty->assign('message', $message);
$smarty->assign('admin', true);
$smarty->assign('parameter_name_regex', NAME_REGEX);
$smarty->assign('parameter_name_error', _('Name is incorrect.'));
$smarty->display('studs.tpl');

View File

@ -203,6 +203,5 @@ $smarty->assign('editingVoteId', $editingVoteId);
$smarty->assign('message', $message);
$smarty->assign('admin', false);
$smarty->assign('parameter_name_regex', NAME_REGEX);
$smarty->assign('parameter_name_error', _('Name is incorrect.'));
$smarty->display('studs.tpl');

View File

@ -45,7 +45,7 @@
<div class="hidden">
<p id="parameter_name_regex">{$parameter_name_regex}</p>
<p id="parameter_name_error">{$parameter_name_error}</p>
<p id="parameter_name_error">{__('Error','Name is incorrect.')|var_dump}</p>
</div>