From 272fbf2f0fd03e8dbd4075e4902ad0ef11b40893 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 19 Oct 2014 01:27:44 +0100 Subject: [PATCH] Updated form field help --- src/ui/core.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ui/core.c b/src/ui/core.c index 907c525e..c6971aca 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -2734,24 +2734,24 @@ _ui_show_form_field_help(ProfWin *window, DataForm *form, char *tag) switch (field->type_t) { case FIELD_TEXT_SINGLE: case FIELD_TEXT_PRIVATE: - win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /form set %s ", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /%s ", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : is any text"); break; case FIELD_TEXT_MULTI: num_values = form_get_value_count(form, tag); - win_save_vprint(window, '-', NULL, 0, 0, "", " Add : /form add %s ", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Add : /%s add ", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : is any text"); if (num_values > 0) { - win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /form remove %s ", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /%s remove ", tag); win_save_vprint(window, '-', NULL, 0, 0, "", " Where : between 'val1' and 'val%d'", num_values); } break; case FIELD_BOOLEAN: - win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /form set %s ", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /%s ", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : is either 'on' or 'off'"); break; case FIELD_LIST_SINGLE: - win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /form set %s ", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /%s ", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : is one of"); curr_option = field->options; while (curr_option != NULL) { @@ -2761,8 +2761,8 @@ _ui_show_form_field_help(ProfWin *window, DataForm *form, char *tag) } break; case FIELD_LIST_MULTI: - win_save_vprint(window, '-', NULL, 0, 0, "", " Add : /form add %s ", tag); - win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /form remove %s ", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Add : /%s add ", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /%s remove ", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : is one of"); curr_option = field->options; while (curr_option != NULL) { @@ -2772,12 +2772,12 @@ _ui_show_form_field_help(ProfWin *window, DataForm *form, char *tag) } break; case FIELD_JID_SINGLE: - win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /form set %s ", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /%s ", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : is a valid Jabber ID"); break; case FIELD_JID_MULTI: - win_save_vprint(window, '-', NULL, 0, 0, "", " Add : /form add %s ", tag); - win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /form remove %s ", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Add : /%s add ", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /%s remove ", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : is a valid Jabber ID"); break; case FIELD_FIXED: