diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-27 09:47:26 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-27 09:47:26 +0200 |
| commit | 58edcf619ee9d589dd7b54b8a9cbd4271740c13b (patch) | |
| tree | fccd23132f96eb3f5da3b530b78ad826f534687f /src/ui/ui_contacts.cpp | |
| parent | bd3f2b84742067d0b9049b9f42f2266f94dbb0f9 (diff) | |
fix shipping info r/w issue. fix date r/w timezone issue.
Diffstat (limited to 'src/ui/ui_contacts.cpp')
| -rw-r--r-- | src/ui/ui_contacts.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/ui/ui_contacts.cpp b/src/ui/ui_contacts.cpp index 549273d..fc03e84 100644 --- a/src/ui/ui_contacts.cpp +++ b/src/ui/ui_contacts.cpp @@ -48,6 +48,25 @@ void ui_setup_contacts() memset(&selected_for_removal, 0, sizeof(contact)); } +void draw_addressee_form_ex(delivery_info* buffer, bool viewing_only = false) +{ + a_err last_err = administration_addressee_is_valid(*buffer); + + ImGui::PushID(buffer); + + ImGui::Spacing(); + ImGui::BeginDisabled(); + + if (!viewing_only) ImGui::EndDisabled(); + + ImGui::FormInputTextWithErrorHint(localize("contact.form.fullname"), buffer->name, IM_ARRAYSIZE(buffer->name), last_err & A_ERR_MISSING_NAME); + + ui_draw_address_form(&buffer->address, last_err); + + if (viewing_only) ImGui::EndDisabled(); + ImGui::PopID(); +} + void draw_contact_form_ex(contact* buffer, bool viewing_only = false, bool with_autocomplete = false) { a_err last_err = administration_contact_is_valid(*buffer); @@ -86,7 +105,6 @@ void draw_contact_form(contact* buffer, bool viewing_only = false) draw_contact_form_ex(buffer, viewing_only, false); } - static void draw_contact_list() { const u32 items_per_page = 50; |
