mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
format error message for CheckTransactionPage with new html code
This commit is contained in:
parent
36196f3f74
commit
b901a0be88
@ -198,9 +198,9 @@ void CheckTransactionPage::handleRequest(Poco::Net::HTTPServerRequest& request,
|
||||
responseStream << " <div>\n";
|
||||
responseStream << " <i class=\"material-icons-outlined nav-main-button\">menu</i>\n";
|
||||
responseStream << " </div>\n";
|
||||
responseStream << " <div class=\"flash-messages\">";
|
||||
responseStream << " <div class=\"flash-messages\" onclick=\"this.classList.add('hidden')\">";
|
||||
#line 34 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\header_navi_chr.cpsp"
|
||||
responseStream << ( getErrorsHtml() );
|
||||
responseStream << ( getErrorsHtmlNewFormat() );
|
||||
responseStream << "</div>\n";
|
||||
responseStream << " <div class=\"nav-vertical\">\n";
|
||||
responseStream << " <ul>\n";
|
||||
|
||||
@ -130,6 +130,26 @@ std::string ErrorList::getErrorsHtml()
|
||||
return res;
|
||||
}
|
||||
|
||||
std::string ErrorList::getErrorsHtmlNewFormat()
|
||||
{
|
||||
std::string html;
|
||||
|
||||
while (mErrorStack.size() > 0) {
|
||||
auto error = std::unique_ptr<Error>(mErrorStack.top());
|
||||
mErrorStack.pop();
|
||||
html += "<div class=\"alert alert-error\" role=\"alert\">";
|
||||
html += error->getHtmlString();
|
||||
html += "</div>";
|
||||
}
|
||||
return html;
|
||||
}
|
||||
/*
|
||||
<div class="alert alert-error" role="alert">
|
||||
<i class="material-icons-outlined">report_problem</i>
|
||||
<span>Der Empfänger wurde nicht auf dem Login-Server gefunden, hat er sein Konto schon angelegt?</span>
|
||||
</div>
|
||||
*/
|
||||
|
||||
|
||||
void ErrorList::sendErrorsAsEmail(std::string rawHtml/* = ""*/)
|
||||
{
|
||||
|
||||
@ -43,6 +43,7 @@ public:
|
||||
|
||||
void printErrors();
|
||||
std::string getErrorsHtml();
|
||||
std::string getErrorsHtmlNewFormat();
|
||||
|
||||
void sendErrorsAsEmail(std::string rawHtml = "");
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
<div>
|
||||
<i class="material-icons-outlined nav-main-button">menu</i>
|
||||
</div>
|
||||
<div class="flash-messages"><%= getErrorsHtml() %></div>
|
||||
<div class="flash-messages" onclick="this.classList.add('hidden')"><%= getErrorsHtmlNewFormat() %></div>
|
||||
<div class="nav-vertical">
|
||||
<ul>
|
||||
<li><a href="<%= ServerConfig::g_php_serverPath %>state-balances/overview" class=""><i class="material-icons-outlined nav-icon " title="Kontoübersicht ( <%= TransactionBase::amountToString(userBalance) %> GDD )">account_balance_wallet</i><span
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user