-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathincomes_pages.cpp
More file actions
30 lines (21 loc) · 776 Bytes
/
incomes_pages.cpp
File metadata and controls
30 lines (21 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//=======================================================================
// Copyright (c) 2013-2020 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================
#include "incomes.hpp"
#include "pages/html_writer.hpp"
#include "pages/incomes_pages.hpp"
#include "http.hpp"
using namespace budget;
void budget::incomes_page(html_writer& w) {
budget::show_incomes(w);
make_tables_sortable(w);
}
void budget::set_incomes_page(html_writer& w) {
w << title_begin << "Set income" << title_end;
form_begin(w, "/api/incomes/add/", "/incomes/set/");
add_amount_picker(w);
form_end(w);
}