Commit d1151018 authored by jan.koester's avatar jan.koester
Browse files

edit client gui polished

parent fe9c4fb9
Loading
Loading
Loading
Loading
Loading
+10 −9
Changes for src/admin.cpp: 10 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -2389,7 +2389,7 @@ namespace authdb {
                throw AuthBackendError("editclient: could not parse domain uuid!");
            }

            if(uuid_parse(cclid,clid)==0)
            if(uuid_parse(cclid,clid)!=0)
                 throw AuthBackendError("editclient: could not parse client uuid!");

            class ClientData cldat(clid);
@@ -2403,17 +2403,18 @@ namespace authdb {
            libhtmlpp::HtmlString cleform,out;

            cleform << "<form method=\"post\" >"
                    << "<label for=\"clientname\" >Clientname:</label>"
                    << "<input name=\"clientname\" type=\"text\" value=\""<< cldat.getName() <<"\">"
                    << "<label for=\"clientkey\" >Clientkey:</label>"
                    << "<input name=\"clientkey\" type=\"password\" value=\""<< cldat.getKey() <<"\">"
                    << "<input type=\"submit\" value=\"Save\">"
                    <<"</form>";
                    << "<ul>"
                    << "<li><label for=\"clientname\" >Clientname:</label>"
                    << "<input name=\"clientname\" type=\"text\" value=\""<< cldat.getName() <<"\"></li>"
                    << "<li><label for=\"clientkey\" >Clientkey:</label>"
                    << "<input name=\"clientkey\" type=\"password\" value=\""<< cldat.getKey() <<"\"></li>"
                    << "<li><input type=\"submit\" value=\"Save\"></li>"
                    << "<ul></form>";

            libhtmlpp::HtmlElement *content=index.getElementbyID("content");

            if(content){
                content->appendChild((libhtmlpp::Element*)&cleform);
                content->appendChild(cleform.parse());
            }

            libhtmlpp::print(&index,out,false);
@@ -2565,7 +2566,7 @@ namespace authdb {
                createClient(curreq,tid,args);
            }else if(strncmp("removeclient",url,12)==0){
                removeClient(curreq,tid,args);
            }else if(strncmp("editclient",url,11)==0){
            }else if(strncmp("editclient",url,10)==0){
                editClient(curreq,tid,args);
            }else{
URLNOTFOUND: