Skip to content
Snippets Groups Projects
Commit e4ec0c81 authored by Antonin's avatar Antonin
Browse files

Passing message directly in template

parent b66a47ef
No related branches found
No related tags found
No related merge requests found
......@@ -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');
\ No newline at end of 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');
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment