diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/html.c | 11 | ||||
-rw-r--r-- | src/html.h | 4 |
2 files changed, 15 insertions, 0 deletions
@@ -545,6 +545,17 @@ mq_html_input_text(const gchar *name, const gchar *label, const gchar *value) } gchar * +mq_html_input_number_i(const gchar *name, const gchar *label, + gint min, gint step, gint max, gint value) +{ + return g_strdup_printf("<label for=\"%s\"><span>%s</span>" + "<input type=\"number\" name=\"%s\" id=\"%s\"" + " min=\"%d\" step=\"%d\" max=\"%d\" value=\"%d\">" + "</label>\n", + name, label, name, name, min, step, max, value); +} + +gchar * mq_html_input_radio(const gchar *name, const gchar *label, gboolean checked) { return g_strdup_printf("<label for=\"%s\"><span>%s</span>" @@ -58,6 +58,10 @@ gchar * mq_html_input_text(const gchar *name, const gchar *label, const gchar *value); gchar * +mq_html_input_number_i(const gchar *name, const gchar *label, + gint min, gint step, gint max, gint value); + +gchar * mq_html_input_radio(const gchar *name, const gchar *label, gboolean checked); gchar * |