diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-05-03 21:14:36 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-05-03 21:14:36 +0200 |
commit | a07e48f45e3b922a63aaae58b5bd816b8e324ee1 (patch) | |
tree | c2258783ecacc7005226acedc198ca332763e992 /src/page_content.hpp | |
parent | 549dffeef49ae25c89d4d1cc6c71c715edfb753f (diff) | |
download | aCms-a07e48f45e3b922a63aaae58b5bd816b8e324ee1.tar.gz aCms-a07e48f45e3b922a63aaae58b5bd816b8e324ee1.tar.bz2 |
started to add pages
Diffstat (limited to 'src/page_content.hpp')
-rw-r--r-- | src/page_content.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/page_content.hpp b/src/page_content.hpp new file mode 100644 index 0000000..e21d33f --- /dev/null +++ b/src/page_content.hpp @@ -0,0 +1,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::strusCms &cms; + cppcms::widgets::text title; + cppcms::widgets::textarea content; + cppcms::widgets::submit save; + cppcms::widgets::submit preview; + + public: + page_edit_form( apps::strusCms &cms ); + virtual bool validate( ); + +}; + +struct page : public master { + page_edit_form page_edit; + + public: + page( apps::strusCms &cms ); +}; + +} // namespace content + +#endif |