[#if SET_DATASOURCE!="1"#]
[#endif SET_DATASOURCE#]
[#if DATA_SOURCE="scenes" || DATA_SOURCE=""#]
[#if VIEW_MODE="search_scenes" || VIEW_MODE=""#]
[#inc scenes_search_admin.html#]
[#endif VIEW_MODE#]
[#if VIEW_MODE="edit_scenes"#]
[#if ID!=""#]
[#endif ID#]
[#if TAB=""#]
[#inc scenes_edit_default.html#]
[#endif TAB#]
[#if TAB="elements"#]
[#inc scenes_edit_elements.html#]
[#endif TAB#]
[#if TAB="devices"#]
[#inc scenes_edit_devices.html#]
[#endif TAB#]
[#if TAB="preview"#]
[#endif TAB#]
[#endif VIEW_MODE#]
[#if VIEW_MODE="view_scenes"#]
[#if TAB=""#]
[#inc scenes_view_default.html#]
[#endif TAB#]
[#endif VIEW_MODE#]
[#endif DATA_SOURCE#]
[#if DATA_SOURCE="elements"#]
[#if VIEW_MODE="search_elements" || VIEW_MODE=""#]
[#inc elements_search_admin.html#]
[#endif VIEW_MODE#]
[#if VIEW_MODE="edit_elements"#]
[#inc elements_edit.html#]
[#endif VIEW_MODE#]
[#if VIEW_MODE="view_elements"#]
[#inc elements_view.html#]
[#endif VIEW_MODE#]
[#endif DATA_SOURCE#]
[#if DATA_SOURCE="elm_states"#]
[#if VIEW_MODE="search_elm_states" || VIEW_MODE=""#]
[#inc elm_states_search_admin.html#]
[#endif VIEW_MODE#]
[#if VIEW_MODE="edit_elm_states"#]
[#inc elm_states_edit.html#]
[#endif VIEW_MODE#]
[#if VIEW_MODE="view_elm_states"#]
[#inc elm_states_view.html#]
[#endif VIEW_MODE#]
[#endif DATA_SOURCE#]