Added simple javascript check for the name.

- The goal here is to prevent the losing of the choices by having a bad name.
	- This is a POC, there is probably some cleaning before merge
This commit is contained in:
Antonin 2015-03-26 16:33:11 +01:00
parent 3044de5ae3
commit b66a47ef67
7 changed files with 44 additions and 5 deletions

View file

@ -373,5 +373,7 @@ $smarty->assign('comments', $comments);
$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');