{% set base_view_url = app.config.base_url ~ "/" ~ current_route %} {% if module_config.visibility_inheritance_relations is defined and module_config.visibility_inheritance_relations|length > 0 %} {% set tot_in_mod = 0 %} {% for relmodule,relmod in module_config.visibility_inheritance_relations %} {% if app.modules[relmodule] is defined %}{% set tot_in_mod = tot_in_mod+1 %}{% endif %} {% endfor %} {% if tot_in_mod>0 %}
{% endif %} {% endif %} {% if view_name is defined and view_name!="popup" %}
{% if view_name!="list" %} {% set view_url = base_view_url ~ "/list/" %} {% if inherited_view %}{% set view_url = view_url ~ "related/" ~ parent_module.route.route %}{% endif %} view_list{{"View List"|trans}} {% endif %} {% if view_name!="grid" and module_config.grid.enabled is defined and module_config.grid.enabled %} {% set view_url = base_view_url ~ "/grid/" %} {% if inherited_view %}{% set view_url = view_url ~ "related/" ~ parent_module.route.route %}{% endif %} view_module{{"View Grid"|trans}} {% endif %} {% if view_name!="kanban" and module_config.kanban.enabled is defined and module_config.kanban.enabled %} {% set view_url = base_view_url ~ "/kanban/" %} {% if inherited_view %}{% set view_url = view_url ~ "related/" ~ parent_module.route.route %}{% endif %} view_weekView Kanban {% endif %} {% if view_name!="gantt" and module_config.gantt.enabled is defined and module_config.gantt.enabled %} {% set view_url = base_view_url ~ "/gantt/" %} {% if inherited_view %}{% set view_url = view_url ~ "related/" ~ parent_module.route.route %}{% endif %} view_dayView Gantt {% endif %} {% if view_name!="calendar" and module_config.calendar.enabled is defined and module_config.calendar.enabled %} {% set view_url = base_view_url ~ "/calendar/" %} {% if inherited_view %}{% set view_url = view_url ~ "related/" ~ parent_module.route.route %}{% endif %} date_rangeView Calendar {% endif %}
{% if module_config.create_enabled is defined and module_config.create_enabled %} add{{"Create New"|trans}} {% endif %} {% if upload_document_enabled is defined and upload_document_enabled and app.upload_enabled %} file_upload{{"Upload Document"|trans}} {% endif %}
{% endif %}