summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/html.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/html.c b/src/html.c
index 8fa89b9..6445abf 100644
--- a/src/html.c
+++ b/src/html.c
@@ -306,7 +306,8 @@ gchar *
mq_html_input_text(const gchar *name, const gchar *label, const gchar *value)
{
return g_strdup_printf("<label for=\"%s\"><span>%s</span>"
- "<input type=\"text\" name=\"%s\" id=\"%s\" value=\"%s\">\n",
+ "<input type=\"text\" name=\"%s\" id=\"%s\" value=\"%s\">"
+ "</label>\n",
name, label, name, name, value ? value : "");
}
@@ -314,7 +315,7 @@ gchar *
mq_html_input_radio(const gchar *name, const gchar *label, gboolean checked)
{
return g_strdup_printf("<label for=\"%s\"><span>%s</span>"
- "<input type=\"checkbox\" name=\"%s\" id=\"%s\"%s>\n",
+ "<input type=\"checkbox\" name=\"%s\" id=\"%s\"%s></label>\n",
name, label, name, name, checked ? " checked=\"checked\"" : "");
}
@@ -322,6 +323,6 @@ gchar *
mq_html_input_checkbox(const gchar *name, const gchar *label, gboolean checked)
{
return g_strdup_printf("<label for=\"%s\"><span>%s</span>"
- "<input type=\"radio\" name=\"%s\" id=\"%s\"%s>\n",
+ "<input type=\"radio\" name=\"%s\" id=\"%s\"%s></label>\n",
name, label, name, name, checked ? " checked=\"checked\"" : "");
}