diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-31 12:49:59 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-31 12:49:59 +0200 |
| commit | b970907ef53f1b8367285cbe7c2dc2a7fa47967f (patch) | |
| tree | 73ec8747346393263e21ea72cffb6aa27d921c4a /src/ui | |
| parent | 9fcfc3215a4caaa32872abc9cfc6deeb86b9765c (diff) | |
invoice templateing work
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/ui_contacts.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ui/ui_contacts.cpp b/src/ui/ui_contacts.cpp index d680ae8..ca73ac3 100644 --- a/src/ui/ui_contacts.cpp +++ b/src/ui/ui_contacts.cpp @@ -30,6 +30,21 @@ void ui_draw_address_form(address* buffer) ImGui::InputTextWithHint(id, localize("contact.form.address2"), buffer->address2, IM_ARRAYSIZE(buffer->address2)); ImGui::SameLine();ui_helper_draw_required_tag(); + ImGui::SetNextItemWidth(widthAvailable*0.5f); + snprintf(id, sizeof(id), "%s##%p", localize("contact.form.city"), buffer); + ImGui::InputTextWithHint(id, localize("contact.form.city"), buffer->city, IM_ARRAYSIZE(buffer->city)); + ImGui::SameLine();ui_helper_draw_required_tag(); + + ImGui::SetNextItemWidth(widthAvailable*0.5f); + snprintf(id, sizeof(id), "%s##%p", localize("contact.form.postal"), buffer); + ImGui::InputTextWithHint(id, localize("contact.form.postal"), buffer->postal, IM_ARRAYSIZE(buffer->postal)); + ImGui::SameLine();ui_helper_draw_required_tag(); + + ImGui::SetNextItemWidth(widthAvailable*0.5f); + snprintf(id, sizeof(id), "%s##%p", localize("contact.form.region"), buffer); + ImGui::InputTextWithHint(id, localize("contact.form.region"), buffer->region, IM_ARRAYSIZE(buffer->region)); + ImGui::SameLine();ui_helper_draw_required_tag(); + // 5. Country dropdown. ImGui::SetNextItemWidth(widthAvailable*0.5f); const char* countries[] = { localize("country.AT"),localize("country.BE"),localize("country.BG"),localize("country.HR"),localize("country.CY"),localize("country.CZ"),localize("country.DK"),localize("country.EE"),localize("country.FI"),localize("country.FR"),localize("country.DE"),localize("country.GR"),localize("country.HU"),localize("country.IE"),localize("country.IT"),localize("country.LV"),localize("country.LT"),localize("country.LU"),localize("country.MT"),localize("country.NL"),localize("country.PL"),localize("country.PT"),localize("country.RO"),localize("country.SK"),localize("country.SI"),localize("country.ES"),localize("country.SE") }; |
