diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-07 16:05:45 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-08-07 16:05:45 +0100 |
commit | 746010a7573baa68f831627c5965314d96bed5d5 (patch) | |
tree | abcfc4c147dd09b58a12ec8f189b4b7aa76b9d5f /content | |
parent | 1b030bd8dea17ca1d91f68ee05f935e711e747be (diff) | |
download | netsurf-746010a7573baa68f831627c5965314d96bed5d5.tar.gz netsurf-746010a7573baa68f831627c5965314d96bed5d5.tar.bz2 |
apply tlsa styling improvements to about scheme query pages
Diffstat (limited to 'content')
-rw-r--r-- | content/fetchers/about.c | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c index 182a3b607..72f2b05a2 100644 --- a/content/fetchers/about.c +++ b/content/fetchers/about.c @@ -799,28 +799,38 @@ static bool fetch_about_query_auth_handler(struct fetch_about_context *ctx) } } + res = ssenddataf(ctx, "<table>"); + if (res != NSERROR_OK) { + goto fetch_about_query_auth_handler_aborted; + } + res = ssenddataf(ctx, - "<div>" - "<label for=\"name\">%s:</label>" - "<input type=\"text\" id=\"username\" " - "name=\"username\" value=\"%s\">" - "</div>", + "<tr>" + "<th><label for=\"name\">%s:</label></th>" + "<td><input type=\"text\" id=\"username\" " + "name=\"username\" value=\"%s\"></td>" + "</tr>", messages_get("Username"), username); if (res != NSERROR_OK) { goto fetch_about_query_auth_handler_aborted; } res = ssenddataf(ctx, - "<div>" - "<label for=\"password\">%s:</label>" - "<input type=\"password\" id=\"password\" " - "name=\"password\" value=\"%s\">" - "</div>", + "<tr>" + "<th><label for=\"password\">%s:</label></th>" + "<td><input type=\"password\" id=\"password\" " + "name=\"password\" value=\"%s\"></td>" + "</tr>", messages_get("Password"), password); if (res != NSERROR_OK) { goto fetch_about_query_auth_handler_aborted; } + res = ssenddataf(ctx, "</table>"); + if (res != NSERROR_OK) { + goto fetch_about_query_auth_handler_aborted; + } + res = ssenddataf(ctx, "<div id=\"buttons\">" "<input type=\"submit\" id=\"cancel\" name=\"cancel\" " |