blob: 3b5717b41fe031e7e4cd06d857e73ed0be38b545 (
plain)
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
31
32
|
#ifndef PAGE_CONTENT_HPP
#define PAGE_CONTENT_HPP
#include "master_content.hpp"
#include <cppcms/form.h>
namespace content {
struct page_edit_form : public cppcms::form {
apps::aCms &cms;
cppcms::widgets::text title;
cppcms::widgets::textarea content;
cppcms::widgets::submit save;
cppcms::widgets::submit preview;
public:
page_edit_form( apps::aCms &cms );
virtual bool validate( );
};
struct page : public master {
page_edit_form page_edit;
public:
page( apps::aCms &cms );
};
} // namespace content
#endif
|