Change i18n system around adminstuds.php + Add some missing keys
This commit is contained in:
parent
119d0e01e1
commit
0ced885fe7
@ -120,9 +120,9 @@ if (isset($_POST['update_poll_info'])) {
|
|||||||
|
|
||||||
// Update poll in database
|
// Update poll in database
|
||||||
if ($updated && $adminPollService->updatePoll($poll)) {
|
if ($updated && $adminPollService->updatePoll($poll)) {
|
||||||
$message = new Message('success', __('adminstuds\\Poll saved.'));
|
$message = new Message('success', __('adminstuds\\Poll saved'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('danger', __('Error\\Failed to save poll.'));
|
$message = new Message('danger', __('Error\\Failed to save poll'));
|
||||||
$poll = $pollService->findById($poll_id);
|
$poll = $pollService->findById($poll_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -148,16 +148,16 @@ if (!empty($_POST['save'])) { // Save edition of an old vote
|
|||||||
$message = new Message('danger', __('Error\\Something is going wrong...'));
|
$message = new Message('danger', __('Error\\Something is going wrong...'));
|
||||||
}
|
}
|
||||||
if (count($choices) != count($_POST['choices'])) {
|
if (count($choices) != count($_POST['choices'])) {
|
||||||
$message = new Message('danger', __('Error\\There is a problem with your choices.'));
|
$message = new Message('danger', __('Error\\There is a problem with your choices'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($message == null) {
|
if ($message == null) {
|
||||||
// Update vote
|
// Update vote
|
||||||
$result = $pollService->updateVote($poll_id, $editedVote, $name, $choices);
|
$result = $pollService->updateVote($poll_id, $editedVote, $name, $choices);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$message = new Message('success', __('Update vote successfully.'));
|
$message = new Message('success', __('adminstuds\\Vote updated'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('danger', __('Error\\Update vote failed.'));
|
$message = new Message('danger', __('Error\\Update vote failed'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elseif (isset($_POST['save'])) { // Add a new vote
|
} elseif (isset($_POST['save'])) { // Add a new vote
|
||||||
@ -165,19 +165,19 @@ if (!empty($_POST['save'])) { // Save edition of an old vote
|
|||||||
$choices = $inputService->filterArray($_POST['choices'], FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => CHOICE_REGEX]]);
|
$choices = $inputService->filterArray($_POST['choices'], FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => CHOICE_REGEX]]);
|
||||||
|
|
||||||
if (empty($name)) {
|
if (empty($name)) {
|
||||||
$message = new Message('danger', __('Error\\The name is invalid.'));
|
$message = new Message('danger', __('Error\\The name is invalid'));
|
||||||
}
|
}
|
||||||
if (count($choices) != count($_POST['choices'])) {
|
if (count($choices) != count($_POST['choices'])) {
|
||||||
$message = new Message('danger', __('Error\\There is a problem with your choices.'));
|
$message = new Message('danger', __('Error\\There is a problem with your choices'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($message == null) {
|
if ($message == null) {
|
||||||
// Add vote
|
// Add vote
|
||||||
$result = $pollService->addVote($poll_id, $name, $choices);
|
$result = $pollService->addVote($poll_id, $name, $choices);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$message = new Message('success', __('Update vote successfully.'));
|
$message = new Message('success', __('adminstuds\\Vote added'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('danger', __('Error\\Update vote failed.'));
|
$message = new Message('danger', __('Error\\Adding vote failed'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -189,9 +189,9 @@ if (!empty($_POST['save'])) { // Save edition of an old vote
|
|||||||
if (!empty($_POST['delete_vote'])) {
|
if (!empty($_POST['delete_vote'])) {
|
||||||
$vote_id = filter_input(INPUT_POST, 'delete_vote', FILTER_VALIDATE_INT);
|
$vote_id = filter_input(INPUT_POST, 'delete_vote', FILTER_VALIDATE_INT);
|
||||||
if ($adminPollService->deleteVote($poll_id, $vote_id)) {
|
if ($adminPollService->deleteVote($poll_id, $vote_id)) {
|
||||||
$message = new Message('success', __('Vote delete.'));
|
$message = new Message('success', __('adminstuds\\Vote deleted'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('danger', __('Error\\Failed to delete the vote.'));
|
$message = new Message('danger', __('Error\\Failed to delete the vote'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,9 +208,9 @@ if (isset($_POST['remove_all_votes'])) {
|
|||||||
}
|
}
|
||||||
if (isset($_POST['confirm_remove_all_votes'])) {
|
if (isset($_POST['confirm_remove_all_votes'])) {
|
||||||
if ($adminPollService->cleanVotes($poll_id)) {
|
if ($adminPollService->cleanVotes($poll_id)) {
|
||||||
$message = new Message('success', __('All votes deleted.'));
|
$message = new Message('success', __('adminstuds\\All votes deleted'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('danger', __('Error\\Failed to delete all votes.'));
|
$message = new Message('danger', __('Error\\Failed to delete all votes'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,16 +223,16 @@ if (isset($_POST['add_comment'])) {
|
|||||||
$comment = strip_tags($_POST['comment']);
|
$comment = strip_tags($_POST['comment']);
|
||||||
|
|
||||||
if (empty($name)) {
|
if (empty($name)) {
|
||||||
$message = new Message('danger', __('Error\\The name is invalid.'));
|
$message = new Message('danger', __('Error\\The name is invalid'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($message == null) {
|
if ($message == null) {
|
||||||
// Add comment
|
// Add comment
|
||||||
$result = $pollService->addComment($poll_id, $name, $comment);
|
$result = $pollService->addComment($poll_id, $name, $comment);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$message = new Message('success', __('Comment added.'));
|
$message = new Message('success', __('Comments\\Comment added'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('danger', __('Error\\Comment failed.'));
|
$message = new Message('danger', __('Error\\Comment failed'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -246,9 +246,9 @@ if (!empty($_POST['delete_comment'])) {
|
|||||||
$comment_id = filter_input(INPUT_POST, 'delete_comment', FILTER_VALIDATE_INT);
|
$comment_id = filter_input(INPUT_POST, 'delete_comment', FILTER_VALIDATE_INT);
|
||||||
|
|
||||||
if ($adminPollService->deleteComment($poll_id, $comment_id)) {
|
if ($adminPollService->deleteComment($poll_id, $comment_id)) {
|
||||||
$message = new Message('success', __('Comment deleted.'));
|
$message = new Message('success', __('adminstuds\\Comment deleted'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('danger', __('Error\\Failed to delete the comment.'));
|
$message = new Message('danger', __('Error\\Failed to delete the comment'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -265,9 +265,9 @@ if (isset($_POST['remove_all_comments'])) {
|
|||||||
}
|
}
|
||||||
if (isset($_POST['confirm_remove_all_comments'])) {
|
if (isset($_POST['confirm_remove_all_comments'])) {
|
||||||
if ($adminPollService->cleanComments($poll_id)) {
|
if ($adminPollService->cleanComments($poll_id)) {
|
||||||
$message = new Message('success', __('All comments deleted.'));
|
$message = new Message('success', __('All comments deleted'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('danger', __('Error\\Failed to delete all comments.'));
|
$message = new Message('danger', __('Error\\Failed to delete all comments'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,9 +284,9 @@ if (isset($_POST['delete_poll'])) {
|
|||||||
}
|
}
|
||||||
if (isset($_POST['confirm_delete_poll'])) {
|
if (isset($_POST['confirm_delete_poll'])) {
|
||||||
if ($adminPollService->deleteEntirePoll($poll_id)) {
|
if ($adminPollService->deleteEntirePoll($poll_id)) {
|
||||||
$message = new Message('success', __('Generic\\Poll fully deleted.'));
|
$message = new Message('success', __('Generic\\Poll fully deleted'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('danger', __('Error\\Failed to delete the poll.'));
|
$message = new Message('danger', __('Error\\Failed to delete the poll'));
|
||||||
}
|
}
|
||||||
$smarty->assign('poll_id', $poll_id);
|
$smarty->assign('poll_id', $poll_id);
|
||||||
$smarty->assign('admin_poll_id', $admin_poll_id);
|
$smarty->assign('admin_poll_id', $admin_poll_id);
|
||||||
@ -316,9 +316,9 @@ if (!empty($_POST['delete_column'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$message = new Message('success', __('Column deleted.'));
|
$message = new Message('success', __('Column deleted'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('danger', __('Error\\Failed to delete the column.'));
|
$message = new Message('danger', __('Error\\Failed to delete the column'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -347,9 +347,9 @@ if (isset($_POST['confirm_add_slot'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$message = new Message('success', __('Column added.'));
|
$message = new Message('success', __('adminstuds\\Choice added'));
|
||||||
} else {
|
} else {
|
||||||
$message = new Message('danger', __('Error\\Failed to add the column.'));
|
$message = new Message('danger', __('Error\\Failed to add the column'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,8 @@
|
|||||||
"for": "à",
|
"for": "à",
|
||||||
"Yes": "Oui",
|
"Yes": "Oui",
|
||||||
"Ifneedbe": "Si nécessaire",
|
"Ifneedbe": "Si nécessaire",
|
||||||
"No": "Non"
|
"No": "Non",
|
||||||
|
"Legend:": "Légende :"
|
||||||
},
|
},
|
||||||
"Date" : {
|
"Date" : {
|
||||||
"(dd/mm/yyyy)": "(jj/mm/aaaa)",
|
"(dd/mm/yyyy)": "(jj/mm/aaaa)",
|
||||||
@ -35,8 +36,8 @@
|
|||||||
"%A, den %e. %B %Y": "%A %e %B %Y"
|
"%A, den %e. %B %Y": "%A %e %B %Y"
|
||||||
},
|
},
|
||||||
"Language selector": {
|
"Language selector": {
|
||||||
"Change the language": "Changer la langue",
|
"Select the language": "Choisir la langue",
|
||||||
"Select the language": "Choisir la langue"
|
"Change the language": "Changer la langue"
|
||||||
},
|
},
|
||||||
"Homepage": {
|
"Homepage": {
|
||||||
"Schedule an event": "Créer un sondage spécial dates",
|
"Schedule an event": "Créer un sondage spécial dates",
|
||||||
@ -67,12 +68,10 @@
|
|||||||
"the development site": "le site de développement",
|
"the development site": "le site de développement",
|
||||||
"If you want to install the software for your own use and thus increase your independence, we help you on:": "Si vous souhaitez installer ce logiciel pour votre propre usage et ainsi gagner en autonomie, nous vous aidons sur :"
|
"If you want to install the software for your own use and thus increase your independence, we help you on:": "Si vous souhaitez installer ce logiciel pour votre propre usage et ainsi gagner en autonomie, nous vous aidons sur :"
|
||||||
},
|
},
|
||||||
"Poll": {
|
"": {
|
||||||
"Poll administration": "Administration du sondage",
|
"Poll administration": "Administration du sondage"
|
||||||
"Legend:": "Légende :"
|
|
||||||
},
|
},
|
||||||
"PollInfo": {
|
"PollInfo": {
|
||||||
"Back to the poll": "Retour au sondage",
|
|
||||||
"Remove the poll": "Supprimer le sondage",
|
"Remove the poll": "Supprimer le sondage",
|
||||||
"Remove all the comments": "Supprimer tous les commentaires",
|
"Remove all the comments": "Supprimer tous les commentaires",
|
||||||
"Remove all the votes": "Supprimer tous les votes",
|
"Remove all the votes": "Supprimer tous les votes",
|
||||||
@ -111,19 +110,9 @@
|
|||||||
"Keep comments": "Garder les commentaires",
|
"Keep comments": "Garder les commentaires",
|
||||||
"Keep this poll": "Garder ce sondage"
|
"Keep this poll": "Garder ce sondage"
|
||||||
},
|
},
|
||||||
"Help text adminstuds.php": {
|
|
||||||
"As poll administrator, you can change all the lines of this poll with this button": "En tant qu'administrateur, vous pouvez modifier toutes les lignes de ce sondage avec ce bouton",
|
|
||||||
"remove a column or a line with": "effacer une colonne ou une ligne avec",
|
|
||||||
"and add a new column with": "et si vous avez oublié de saisir un choix, vous pouvez rajouter une colonne en cliquant sur",
|
|
||||||
"Finally, you can change the informations of this poll like the title, the comments or your email address.": "Vous pouvez enfin également modifier les informations relatives à ce sondage comme le titre, les commentaires ou encore votre courriel."
|
|
||||||
},
|
|
||||||
"Help text studs.php": {
|
|
||||||
"If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.": "Pour participer à ce sondage, veuillez entrer votre nom, choisir toutes les valeurs qui vous conviennent et valider votre choix avec le bouton en bout de ligne."
|
|
||||||
},
|
|
||||||
"Poll results": {
|
"Poll results": {
|
||||||
"Votes of the poll": "Votes du sondage",
|
"Votes of the poll": "Votes du sondage",
|
||||||
"Remove the column": "Effacer la colonne",
|
"Remove the column": "Effacer la colonne",
|
||||||
"Add a column": "Ajouter une colonne",
|
|
||||||
"Edit the line:": "Modifier la ligne :",
|
"Edit the line:": "Modifier la ligne :",
|
||||||
"Remove the line:": "Supprimer la ligne :",
|
"Remove the line:": "Supprimer la ligne :",
|
||||||
"Vote no for ": "Voter « non » pour ",
|
"Vote no for ": "Voter « non » pour ",
|
||||||
@ -144,21 +133,42 @@
|
|||||||
"Add a comment to the poll": "Ajouter un commentaire au sondage",
|
"Add a comment to the poll": "Ajouter un commentaire au sondage",
|
||||||
"Your comment": "Votre commentaire",
|
"Your comment": "Votre commentaire",
|
||||||
"Send the comment": "Envoyer le commentaire",
|
"Send the comment": "Envoyer le commentaire",
|
||||||
"anonyme": "anonyme"
|
"anonyme": "anonyme",
|
||||||
|
"Comment added": "Commentaire ajouté"
|
||||||
},
|
},
|
||||||
"studs": {
|
"studs": {
|
||||||
|
"If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.": "Pour participer à ce sondage, veuillez entrer votre nom, choisir toutes les valeurs qui vous conviennent et valider votre choix avec le bouton en bout de ligne.",
|
||||||
|
"POLL_LOCKED_WARNING":"L'administrateur a verrouillé ce sondage. Les votes et commentaires sont gelés, il n'est plus possible de participer",
|
||||||
"The poll is expired, it will be deleted soon.": "Le sondage a expiré, il sera bientôt supprimé.",
|
"The poll is expired, it will be deleted soon.": "Le sondage a expiré, il sera bientôt supprimé.",
|
||||||
"Deletion date:": "Date de suppression :"
|
"Deletion date:": "Date de suppression :"
|
||||||
},
|
},
|
||||||
"adminstuds": {
|
"adminstuds": {
|
||||||
|
"As poll administrator, you can change all the lines of this poll with this button": "En tant qu'administrateur, vous pouvez modifier toutes les lignes de ce sondage avec ce bouton",
|
||||||
|
"remove a column or a line with": "effacer une colonne ou une ligne avec",
|
||||||
|
"and add a new column with": "et si vous avez oublié de saisir un choix, vous pouvez rajouter une colonne en cliquant sur",
|
||||||
|
"Finally, you can change the informations of this poll like the title, the comments or your email address.": "Vous pouvez enfin également modifier les informations relatives à ce sondage comme le titre, les commentaires ou encore votre courriel.",
|
||||||
"Column's adding": "Ajout de colonne",
|
"Column's adding": "Ajout de colonne",
|
||||||
"You can add a new scheduling date to your poll.": "Vous pouvez ajouter une date à votre sondage.",
|
"You can add a new scheduling date to your poll.": "Vous pouvez ajouter une date à votre sondage.",
|
||||||
"If you just want to add a new hour to an existant date, put the same date and choose a new hour.": "Si vous voulez juste ajouter un horaire à une date existante, mettez la même date et choisissez un autre horaire. Il sera intégré normalement au sondage existant.",
|
"If you just want to add a new hour to an existant date, put the same date and choose a new hour.": "Si vous voulez juste ajouter un horaire à une date existante, mettez la même date et choisissez un autre horaire. Il sera intégré normalement au sondage existant.",
|
||||||
"Confirm removal of your poll": "Confirmer la suppression de votre sondage",
|
"Confirm removal of the poll": "Confirmer la suppression du sondage",
|
||||||
"Remove this poll!": "Je supprime ce sondage !",
|
"Remove the poll": "Je supprime le sondage",
|
||||||
"Keep this poll!": "Je garde ce sondage !",
|
"Keep the poll": "Je garde le sondage",
|
||||||
"Your poll has been removed!": "Votre sondage a été supprimé !",
|
"Your poll has been removed!": "Votre sondage a été supprimé !",
|
||||||
"Poll saved.": "Sondage sauvegardé."
|
"Poll saved": "Sondage sauvegardé",
|
||||||
|
"Vote added": "Vote ajouté",
|
||||||
|
"Vote updated": "Vote mis à jour",
|
||||||
|
"Vote deleted": "Vote supprimé",
|
||||||
|
"All votes deleted": "Tous les votes ont été supprimés",
|
||||||
|
"Back to the poll": "Retour au sondage",
|
||||||
|
"Add a column": "Ajouter une colonne",
|
||||||
|
"Choice added": "Choix ajouté",
|
||||||
|
"Confirm removal of all votes of the poll": "Confirmer la suppression de tous les votes de ce sondage",
|
||||||
|
"Keep the votes": "Garder les votes",
|
||||||
|
"Remove the votes": "Supprimer les votes",
|
||||||
|
"Confirm removal of all comments of the poll": "Confirmer la suppression de tous les commentaires de ce sondage",
|
||||||
|
"Keep the comments": "Garder les commentaires",
|
||||||
|
"Remove the comments": "Supprimer les commentaires",
|
||||||
|
"The poll has been deleted": "Le sondage a été supprimé"
|
||||||
},
|
},
|
||||||
"Step 1": {
|
"Step 1": {
|
||||||
"Poll creation (1 on 3)": "Création de sondage (1 sur 3)",
|
"Poll creation (1 on 3)": "Création de sondage (1 sur 3)",
|
||||||
@ -272,6 +282,8 @@
|
|||||||
"Characters \\u0022 ' < et > are not permitted": "Les caractères \\u0022 ' < et > ne sont pas autorisés !",
|
"Characters \\u0022 ' < et > are not permitted": "Les caractères \\u0022 ' < et > ne sont pas autorisés !",
|
||||||
"The date is not correct !": "La date choisie n'est pas correcte !",
|
"The date is not correct !": "La date choisie n'est pas correcte !",
|
||||||
"Framadate is not properly installed, please check the \"INSTALL\" to setup the database before continuing.": "Framadate n'est pas installé correctement, lisez le fichier INSTALL pour configurer la base de données avant de continuer.",
|
"Framadate is not properly installed, please check the \"INSTALL\" to setup the database before continuing.": "Framadate n'est pas installé correctement, lisez le fichier INSTALL pour configurer la base de données avant de continuer.",
|
||||||
"Failed to save poll.": "Echèc de la sauvegarde du sondage."
|
"Failed to save poll": "Echèc de la sauvegarde du sondage",
|
||||||
|
"Update vote failed": "Mise à jour du vote échoué",
|
||||||
|
"Adding vote failed": "Ajout d'un vote échoué"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,36 +3,36 @@
|
|||||||
{block name=main}
|
{block name=main}
|
||||||
<form action="{$admin_poll_id|poll_url:true}" method="POST">
|
<form action="{$admin_poll_id|poll_url:true}" method="POST">
|
||||||
<div class="alert alert-info text-center">
|
<div class="alert alert-info text-center">
|
||||||
<h2>{_('Column\'s adding')}</h2>
|
<h2>{__('adminstuds\\Column\'s adding')}</h2>
|
||||||
|
|
||||||
{if $format === 'D'}
|
{if $format === 'D'}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="newdate" class="col-md-4">{_('Day')}</label>
|
<label for="newdate" class="col-md-4">{__('Generic\\Day')}</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div class="input-group date">
|
<div class="input-group date">
|
||||||
<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
|
<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
|
||||||
<input type="text" id="newdate" data-date-format="{_('dd/mm/yyyy')}" aria-describedby="dateformat" name="newdate" class="form-control" placeholder="{_('dd/mm/yyyy')}" />
|
<input type="text" id="newdate" data-date-format="{__('Date\\dd/mm/yyyy')}" aria-describedby="dateformat" name="newdate" class="form-control" placeholder="{__('Date\\dd/mm/yyyy')}" />
|
||||||
</div>
|
</div>
|
||||||
<span id="dateformat" class="sr-only">{_('(dd/mm/yyyy)')}</span>
|
<span id="dateformat" class="sr-only">{__('Date\\(dd/mm/yyyy)')}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="newmoment" class="col-md-4">{_('Time')}</label>
|
<label for="newmoment" class="col-md-4">{__('Generic\\Time')}</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<input type="text" id="newmoment" name="newmoment" class="form-control" />
|
<input type="text" id="newmoment" name="newmoment" class="form-control" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{else}
|
{else}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="choice" class="col-md-4">{_('Choice')}</label>
|
<label for="choice" class="col-md-4">{__('Generic\\Choice')}</label>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<input type="text" id="choice" name="choice" class="form-control" />
|
<input type="text" id="choice" name="choice" class="form-control" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button class="btn btn-default" type="submit" name="back">{_('Back to the poll')}</button>
|
<button class="btn btn-default" type="submit" name="back">{__('adminstuds\\Back to the poll')}</button>
|
||||||
<button type="submit" name="confirm_add_slot" class="btn btn-success">{_('Add a column')}</button>
|
<button type="submit" name="confirm_add_slot" class="btn btn-success">{__('adminstuds\\Add a column')}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
{block name=main}
|
{block name=main}
|
||||||
<form action="{$admin_poll_id|poll_url:true|html}" method="POST">
|
<form action="{$admin_poll_id|poll_url:true|html}" method="POST">
|
||||||
<div class="alert alert-danger text-center">
|
<div class="alert alert-danger text-center">
|
||||||
<h2>{_('Confirm removal of all comments of the poll')}</h2>
|
<h2>{__('adminstuds\\Confirm removal of all comments of the poll')}</h2>
|
||||||
<p><button class="btn btn-default" type="submit" name="cancel">{_('Keep comments')}</button>
|
<p><button class="btn btn-default" type="submit" name="cancel">{__('adminstuds\\Keep the comments')}</button>
|
||||||
<button type="submit" name="confirm_remove_all_comments" class="btn btn-danger">{_('Remove all comments!')}</button></p>
|
<button type="submit" name="confirm_remove_all_comments" class="btn btn-danger">{__('adminstuds\\Remove the comments')}</button></p>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{/block}
|
{/block}
|
@ -3,9 +3,9 @@
|
|||||||
{block name=main}
|
{block name=main}
|
||||||
<form action="{$admin_poll_id|poll_url:true|html}" method="POST">
|
<form action="{$admin_poll_id|poll_url:true|html}" method="POST">
|
||||||
<div class="alert alert-danger text-center">
|
<div class="alert alert-danger text-center">
|
||||||
<h2>{_('Confirm removal of your poll')}</h2>
|
<h2>{__('adminstuds\\Confirm removal of the poll')}</h2>
|
||||||
<p><button class="btn btn-default" type="submit" name="cancel">{_('Keep this poll')}</button>
|
<p><button class="btn btn-default" type="submit" name="cancel">{__('adminstuds\\Keep the poll')}</button>
|
||||||
<button type="submit" name="confirm_delete_poll" class="btn btn-danger">{_('Remove this poll!')}</button></p>
|
<button type="submit" name="confirm_delete_poll" class="btn btn-danger">{__('adminstuds\\Remove the poll')}</button></p>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{/block}
|
{/block}
|
@ -3,9 +3,9 @@
|
|||||||
{block name=main}
|
{block name=main}
|
||||||
<form action="{$admin_poll_id|poll_url:true|html}" method="POST">
|
<form action="{$admin_poll_id|poll_url:true|html}" method="POST">
|
||||||
<div class="alert alert-danger text-center">
|
<div class="alert alert-danger text-center">
|
||||||
<h2>{_('Confirm removal of all votes of the poll')}</h2>
|
<h2>{__('adminstuds\\Confirm removal of all votes of the poll')}</h2>
|
||||||
<p><button class="btn btn-default" type="submit" name="cancel">{_('Keep votes')}</button>
|
<p><button class="btn btn-default" type="submit" name="cancel">{__('adminstuds\\Keep votes')}</button>
|
||||||
<button type="submit" name="confirm_remove_all_votes" class="btn btn-danger">{_('Remove all votes!')}</button></p>
|
<button type="submit" name="confirm_remove_all_votes" class="btn btn-danger">{__('adminstuds\\Remove the votes')}</button></p>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{/block}
|
{/block}
|
@ -1,7 +1,7 @@
|
|||||||
{extends file='page.tpl'}
|
{extends file='page.tpl'}
|
||||||
|
|
||||||
{block name=main}
|
{block name=main}
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning text-center">
|
||||||
<h2>{$error|html}</h2>
|
<h2>{$error|html}</h2>
|
||||||
<p>{__('Generic\\Back to the homepage of')} <a href="{$SERVER_URL|html}">{$APPLICATION_NAME|html}</a></p>
|
<p>{__('Generic\\Back to the homepage of')} <a href="{$SERVER_URL|html}">{$APPLICATION_NAME|html}</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,19 +2,19 @@
|
|||||||
{if count($langs)>1}
|
{if count($langs)>1}
|
||||||
<form method="post" action="" class="hidden-print">
|
<form method="post" action="" class="hidden-print">
|
||||||
<div class="input-group input-group-sm pull-right col-md-2 col-xs-4">
|
<div class="input-group input-group-sm pull-right col-md-2 col-xs-4">
|
||||||
<select name="lang" class="form-control" title="{_("Select the language")}" >
|
<select name="lang" class="form-control" title="{__('Language selector\\Select the language')}" >
|
||||||
{foreach $langs as $lang_key=>$lang_value}
|
{foreach $langs as $lang_key=>$lang_value}
|
||||||
<option lang="{substr($lang_key, 0, 2)}" {if substr($lang_key, 0, 2)==$html_lang}selected{/if} value="{$lang_key|html}">{$lang_value|html}</option>
|
<option lang="{substr($lang_key, 0, 2)}" {if substr($lang_key, 0, 2)==$html_lang}selected{/if} value="{$lang_key|html}">{$lang_value|html}</option>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</select>
|
</select>
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button type="submit" class="btn btn-default btn-sm" title="{_("Change the language")}">OK</button>
|
<button type="submit" class="btn btn-default btn-sm" title="{__('Language selector\\Change the language')}">OK</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<h1><a href="{$SERVER_URL|html}" title="{_("Home")} - {$APPLICATION_NAME|html}"><img src="{$TITLE_IMAGE|resource}" alt="{$APPLICATION_NAME|html}"/></a></h1>
|
<h1><a href="{$SERVER_URL|html}" title="{__('Generic\\Home')} - {$APPLICATION_NAME|html}"><img src="{$TITLE_IMAGE|resource}" alt="{$APPLICATION_NAME|html}"/></a></h1>
|
||||||
{if !empty($title)}<h2 class="lead"><i>{$title|html}</i></h2>{/if}
|
{if !empty($title)}<h2 class="lead"><i>{$title|html}</i></h2>{/if}
|
||||||
<hr class="trait" role="presentation" />
|
<hr class="trait" role="presentation" />
|
||||||
</header>
|
</header>
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{if $active}
|
{if $active}
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<p>{_("If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.")}</p>
|
<p>{__('studs\\If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.')}</p>
|
||||||
<p aria-hidden="true"><b>{_('Legend:')}</b> <span class="glyphicon glyphicon-ok"></span> = {_('Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {_('Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {_('No')}</p>
|
<p aria-hidden="true"><b>{__('Generic\\Legend:')}</b> <span class="glyphicon glyphicon-ok"></span> = {__('Generic\\Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {__('Generic\\Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {_('No')}</p>
|
||||||
</div>
|
</div>
|
||||||
{else}
|
{else}
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<p>{_("The administrator locked this poll, votes and comments are frozen, it's not possible to participate anymore.")}</p>
|
<p>{__('studs\\POLL_LOCKED_WARNING')}</p>
|
||||||
<p aria-hidden="true"><b>{_('Legend:')}</b> <span class="glyphicon glyphicon-ok"></span> = {_('Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {_('Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {_('No')}</p>
|
<p aria-hidden="true"><b>{__('Generic\\Legend:')}</b> <span class="glyphicon glyphicon-ok"></span> = {__('Generic\\Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {__('Generic\\Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {_('No')}</p>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
@ -1,7 +1,7 @@
|
|||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<p>{_('As poll administrator, you can change all the lines of this poll with this button')} <span class="glyphicon glyphicon-pencil"></span><span class="sr-only">{_('Edit')}</span>,
|
<p>{__('adminstuds\\As poll administrator, you can change all the lines of this poll with this button')} <span class="glyphicon glyphicon-pencil"></span><span class="sr-only">{_('Edit')}</span>,
|
||||||
{_('remove a column or a line with')} <span class="glyphicon glyphicon-remove text-danger"></span><span class="sr-only">{_('Remove')}</span>
|
{__('adminstuds\\remove a column or a line with')} <span class="glyphicon glyphicon-remove text-danger"></span><span class="sr-only">{_('Remove')}</span>
|
||||||
{_('and add a new column with')} <span class="glyphicon glyphicon-plus text-success"></span><span class="sr-only">{_('Add a column')}</span>.</p>
|
{__('adminstuds\\and add a new column with')} <span class="glyphicon glyphicon-plus text-success"></span><span class="sr-only">{_('Add a column')}</span>.</p>
|
||||||
<p>{_('Finally, you can change the informations of this poll like the title, the comments or your email address.')}</p>
|
<p>{__('adminstuds\\Finally, you can change the informations of this poll like the title, the comments or your email address.')}</p>
|
||||||
<p aria-hidden="true"><strong>{_('Legend:')}</strong> <span class="glyphicon glyphicon-ok"></span> = {_('Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {_('Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {_('No')}</p>
|
<p aria-hidden="true"><strong>{__('Generic\\Legend:')}</strong> <span class="glyphicon glyphicon-ok"></span> = {__('Generic\\Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {__('Generic\\Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {__('Generic\\No')}</p>
|
||||||
</div>
|
</div>
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{block name=main}
|
{block name=main}
|
||||||
<div class="alert alert-success text-center">
|
<div class="alert alert-success text-center">
|
||||||
<h2>{_("Your poll has been removed!")}</h2>
|
<h2>{__('adminstuds\\The poll has been deleted')}</h2>
|
||||||
<p>{_('Back to the homepage of')} <a href="{$SERVER_URL|html}">{$APPLICATION_NAME|html}</a></p>
|
<p>{__('Generic\\Back to the homepage of')} <a href="{$SERVER_URL|html}">{$APPLICATION_NAME|html}</a></p>
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
{/block}
|
Loading…
Reference in New Issue
Block a user