1 #line 2 "src/Gui/EmployeesWidget.cpp"
4 #include <Wt/WVBoxLayout.h>
7 #include "../GnuCashew.h"
13 addStyleClass(
"EmployeesWidget" );
19 auto lw = setLayout( std::make_unique< Wt::WVBoxLayout >() );
26 auto w = std::make_unique< Wt::WTableView >();
28 lw-> addWidget( std::move( w ), 1 );
34 view()-> setSelectionBehavior( Wt::SelectionBehavior::Rows );
35 view()-> setSelectionMode( Wt::SelectionMode::Single );
36 view()-> setAlternatingRowColors(
true );
43 std::vector< Wt::WFormModel::Field > fields =
55 m_model = std::make_shared< GCW::Eng::EmployeesModel >( fields );
61 doubleClicked(
const Wt::WModelIndex & _index,
const Wt::WMouseEvent & _event )
const Wt::WFormModel::Field username
const Wt::WFormModel::Field addr_email
const Wt::WFormModel::Field id
const Wt::WFormModel::Field addr_phone