moved some ezc functions from templates/item.cpp to Item and ItemContent

removed: templates/item.cpp
updated: some html templates which use [item] or [item_tab]
removed some old html templates: item_info.html and itam_tab_info.html
This commit is contained in:
2021-07-06 21:52:29 +02:00
parent 746aa41111
commit 9d65d931d0
24 changed files with 67 additions and 1297 deletions

View File

@@ -92,6 +92,7 @@ void Item::fields()
field(L"execute", &Item::execute);
field(L"has_html_template", &Item::has_html_template);
// may we should add a method setTypeFromInt(int t)?
type = static_cast<Type>(type_helper);
@@ -648,6 +649,11 @@ void Item::execute(EzcEnv & env)
}
bool Item::has_html_template()
{
return !html_template.empty();
}
} // namespace Winix