diff options
author | James Booth <boothj5@gmail.com> | 2014-10-19 01:27:44 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-10-19 01:27:44 +0100 |
commit | 272fbf2f0fd03e8dbd4075e4902ad0ef11b40893 (patch) | |
tree | f9ff1d7f80b4fb29d28ab137e98a5cd1d06ff762 /src/ui | |
parent | ecb2989a5d2963d4b6a7f64baae47a0ebf9c4d2a (diff) | |
download | profani-tty-272fbf2f0fd03e8dbd4075e4902ad0ef11b40893.tar.gz |
Updated form field help
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/core.c | 20 |
1 files 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 <value>", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /%s <value>", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : <value> 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 <value>", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Add : /%s add <value>", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : <value> is any text"); if (num_values > 0) { - win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /form remove %s <value>", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /%s remove <value>", tag); win_save_vprint(window, '-', NULL, 0, 0, "", " Where : <value> between 'val1' and 'val%d'", num_values); } break; case FIELD_BOOLEAN: - win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /form set %s <value>", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /%s <value>", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : <value> is either 'on' or 'off'"); break; case FIELD_LIST_SINGLE: - win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /form set %s <value>", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /%s <value>", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : <value> 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 <value>", tag); - win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /form remove %s <value>", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Add : /%s add <value>", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /%s remove <value>", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : <value> 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 <value>", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Set : /%s <value>", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : <value> is a valid Jabber ID"); break; case FIELD_JID_MULTI: - win_save_vprint(window, '-', NULL, 0, 0, "", " Add : /form add %s <value>", tag); - win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /form remove %s <value>", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Add : /%s add <value>", tag); + win_save_vprint(window, '-', NULL, 0, 0, "", " Remove : /%s remove <value>", tag); win_save_print(window, '-', NULL, 0, 0, "", " Where : <value> is a valid Jabber ID"); break; case FIELD_FIXED: |