From 118af2854e799107a688d68f12bb1f9faef407d1 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 13 Jul 2007 10:08:24 +0000 Subject: [PATCH] Display three radio buttons in find form for boolean attributes SVN revision: 1884 --- src/elogd.c | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index b5d10e67..19cd6e51 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -9880,13 +9880,13 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL sprintf(str, "%s_0", ua); rsprintf("\n"); rsprintf("\n", str, ua); - rsprintf("\n", str, loc("no")); + rsprintf("\n", str); rsprintf("\n"); sprintf(str, "%s_1", ua); rsprintf("\n"); rsprintf("\n", str, ua); - rsprintf("\n", str, loc("yes")); + rsprintf("\n", str); rsprintf("\n"); sprintf(str, "%s_2", ua); @@ -11030,8 +11030,26 @@ void show_find_form(LOGBOOK * lbs) } } else { - if (strieq(attr_options[i][0], "boolean")) - rsprintf("\n", attr_list[i]); + if (strieq(attr_options[i][0], "boolean")) { + + sprintf(str, "%s_0", attr_list[i]); + rsprintf("\n"); + rsprintf("\n", str, attr_list[i]); + rsprintf("\n", str); + rsprintf("\n"); + + sprintf(str, "%s_1", attr_list[i]); + rsprintf("\n"); + rsprintf("\n", str, attr_list[i]); + rsprintf("\n", str); + rsprintf("\n"); + + sprintf(str, "%s_2", attr_list[i]); + rsprintf("\n"); + rsprintf("\n", str, attr_list[i]); + rsprintf("\n", str, loc("unspecified")); + rsprintf("\n"); + } /* display image for icon */ else if (attr_flags[i] & AF_ICON) { @@ -17142,14 +17160,14 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands, rsprintf("