48 bool is_logged_in()
const {
return session_manager_.is_logged_in(); }
52 void show_bootstrap();
53 void show_main_view();
54 void on_login_attempt(
const std::string& username,
const std::string& password);
55 void on_bootstrap_create(
const std::string& username,
const std::string& email,
56 const std::string& password);
60 std::string get_current_username()
const;
62 void setup_currency_handlers();
63 void load_currencies();
64 void show_add_currency_dialog();
65 void show_edit_currency_dialog(
const std::string& iso_code);
66 void confirm_delete_currency(
const std::string& iso_code);
68 void setup_country_handlers();
69 void load_countries();
70 void show_add_country_dialog();
71 void show_edit_country_dialog(
const std::string& alpha2_code);
72 void confirm_delete_country(
const std::string& alpha2_code);
74 void setup_account_handlers();
76 void show_add_account_dialog();
77 void show_edit_account_dialog(
const boost::uuids::uuid&
id);
78 void confirm_delete_account(
const boost::uuids::uuid&
id);
79 void confirm_lock_account(
const boost::uuids::uuid&
id);
80 void confirm_unlock_account(
const boost::uuids::uuid&
id);
89 Wt::WLineEdit* bootstrap_username_ =
nullptr;
90 Wt::WLineEdit* bootstrap_email_ =
nullptr;
91 Wt::WPasswordEdit* bootstrap_password_ =
nullptr;
92 Wt::WPasswordEdit* bootstrap_confirm_ =
nullptr;
93 Wt::WPushButton* bootstrap_button_ =
nullptr;
94 Wt::WText* bootstrap_status_ =
nullptr;