-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re #77 added autogenerated code for a form to customize the 'brand' p…
…art of the wiki in the layout
- Loading branch information
1 parent
13c5834
commit 2cd049b
Showing
7 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** | ||
* Tatoeba wiki Wiki made with cppcmsskel | ||
* | ||
* Copyright (C) 2013 Allan SIMON <[email protected]> | ||
* See accompanying file COPYING.TXT file for licensing details. | ||
* | ||
* @category Tatoeba wiki | ||
* @package Form | ||
* @author Allan SIMON <[email protected]> | ||
* @link https://github.com/allan-simon/tatowiki | ||
*/ | ||
|
||
#ifndef TATOWIKI_CHANGE_BRAND | ||
#define TATOWIKI_CHANGE_BRAND | ||
|
||
|
||
#include <cppcms/form.h> | ||
|
||
namespace forms{ | ||
namespace admin { | ||
|
||
/** | ||
* @struct change_brand TODO description | ||
* @since 14 August 2013 | ||
* | ||
*/ | ||
struct ChangeBrand : public cppcms::form { | ||
|
||
//%%%NEXT_WIDGET_VAR_MARKER%%% | ||
|
||
/** | ||
* @brief button to submit the form | ||
*/ | ||
cppcms::widgets::submit submit; | ||
|
||
/** | ||
* @brief Constructor | ||
*/ | ||
ChangeBrand() { | ||
|
||
//%%%NEXT_WIDGET_ADD_MARKER%%% | ||
|
||
add(submit); | ||
submit.name( | ||
cppcms::locale::translate("submit") | ||
); | ||
submit.value("submit"); | ||
} | ||
|
||
|
||
}; | ||
|
||
|
||
} // end of namespace admin | ||
}// end of namespace forms | ||
|
||
|
||
#endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<% c++ #include "contents/Admin.h" %> | ||
<% skin %> | ||
<% view common_admin_change_brand uses contents::admin::ChangeBrand extends master %> | ||
<% template title() %><% gt "TODO TITLE" %><% end template %> | ||
|
||
|
||
<% template body() %> | ||
Edit Me Admin / ChangeBrand | ||
<% end template %> | ||
|
||
|
||
|
||
<% end view %> | ||
<% end skin %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<% c++ #include "contents/Admin.h" %> | ||
<% skin %> | ||
<% view admin_change_brand uses contents::admin::ChangeBrand extends common_admin_change_brand %> | ||
|
||
<% end view %> | ||
<% end skin %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<% c++ #include "contents/Admin.h" %> | ||
<% skin %> | ||
<% view admin_change_brand uses contents::admin::ChangeBrand extends common_admin_change_brand %> | ||
|
||
<% end view %> | ||
<% end skin %> | ||
|