diff --git a/app/classes/Framadate/Message.php b/app/classes/Framadate/Message.php index c7d7ede..68b344c 100644 --- a/app/classes/Framadate/Message.php +++ b/app/classes/Framadate/Message.php @@ -23,11 +23,15 @@ class Message { var $type; var $message; var $link; + var $linkTitle; + var $linkIcon; - function __construct($type, $message, $link=null) { + function __construct($type, $message, $link=null, $linkTitle=null, $linkIcon=null) { $this->type = $type; $this->message = $message; $this->link = $link; + $this->linkTitle = $linkTitle; + $this->linkIcon = $linkIcon; } } diff --git a/studs.php b/studs.php index 6070557..16c76b3 100644 --- a/studs.php +++ b/studs.php @@ -141,7 +141,12 @@ if ($accessGranted) { $editedVoteUniqueId = filter_input(INPUT_POST, 'edited_vote', FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => POLL_REGEX]]); $sessionService->set(USER_REMEMBER_VOTES_KEY, $poll_id, $editedVoteUniqueId); $urlEditVote = Utils::getUrlSondage($poll_id, false, $editedVoteUniqueId); - $message = new Message('success', __('studs', 'Your vote has been registered successfully, but be careful: regarding this poll options, you need to keep this personal link to edit your own vote:'), $urlEditVote); + $message = new Message( + 'success', + __('studs', 'Your vote has been registered successfully, but be careful: regarding this poll options, you need to keep this personal link to edit your own vote:'), + $urlEditVote, + __('Poll results', 'Edit the line:').' '.$name, + 'glyphicon-pencil'); } else { $message = new Message('success', __('studs', 'Update vote succeeded')); } diff --git a/tpl/studs.tpl b/tpl/studs.tpl index 7e873ab..ce45625 100644 --- a/tpl/studs.tpl +++ b/tpl/studs.tpl @@ -15,7 +15,20 @@ {* Messages *}
{if !empty($message)} - + {/if}