Skip to content

Commit

Permalink
Dev: Style submitfailed message using p instead of br; add fa icon
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Apr 1, 2016
1 parent c3127bf commit edcbaf5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions application/helpers/frontend_helper.php
Expand Up @@ -794,12 +794,16 @@ function submitfailed($errormsg = '', $query = null)
global $thissurvey;
global $subquery, $surveyid;

$completed = "<br /><strong><font size='2' color='red'>"
. gT("Did Not Save")."</strong></font><br /><br />\n\n"
. gT("An unexpected error has occurred and your responses cannot be saved.")."<br /><br />\n";
$completed = "<p><span class='fa fa-exclamation-triangle'></span>&nbsp;<strong>"
. gT("Did Not Save")."</strong></p>"
. "<p>"
. gT("An unexpected error has occurred and your responses cannot be saved.")
. "</p>";
if ($thissurvey['adminemail'])
{
$completed .= gT("Your responses have not been lost and have been emailed to the survey administrator and will be entered into our database at a later point.")."<br /><br />\n";
$completed .= "<p>";
$completed .= gT("Your responses have not been lost and have been emailed to the survey administrator and will be entered into our database at a later point.");
$completed .= "</p>";
if ($debug>0)
{
$completed.='Error message: '.htmlspecialchars($errormsg).'<br />';
Expand Down

2 comments on commit edcbaf5

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we still reset the session ?

@olleharstedt
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed that in a later commit.

Please sign in to comment.