Various UI small improvements (better error reporting in case of bad url, made the password change fields more explicit)

This commit is contained in:
emeric
2019-10-06 18:59:13 +02:00
parent b5cfe014ec
commit 174158aa63
17 changed files with 182 additions and 57 deletions
+2 -4
View File
@@ -34,6 +34,7 @@
#include "resource/ImageResource.hpp"
#include "LmsApplication.hpp"
#include "LmsApplicationException.hpp"
#include "Filters.hpp"
using namespace Database;
@@ -71,10 +72,7 @@ Release::refresh()
const Database::Release::pointer release {Database::Release::getById(LmsApp->getDbSession(), *releaseId)};
if (!release)
{
LmsApp->goHome();
return;
}
throw ReleaseNotFoundException {*releaseId};
Wt::WTemplate* t {addNew<Wt::WTemplate>(Wt::WString::tr("Lms.Explore.Release.template"))};
t->addFunction("tr", &Wt::WTemplate::Functions::tr);