<%
   modul_uniq_id = "module_inside_#{page_module.uuid.dasherize}"
   user = (page_params[:user] || User.current)
   pmtc_options = { easy_page_modules_data: @easy_page_modules_data[page_module.module_name], modul_uniq_id: modul_uniq_id, block_name: page_module.module_name, user: user, no_expander: !page_module.module_definition.collapsible? }
   tc_options = get_page_module_toggling_container_options(page_module, pmtc_options)
%>
<div id="module_<%= page_module.uuid.dasherize %>" class="easy-page-module easy-page__module box <%= 'push-left' if page_module.floating? %> <%= page_module.css_class %>">
  <%= page_module_toggling_container(page_module, page_params, modul_uniq_id, user, tc_options) do %>
    <%= render(partial: 'easy_page_layout/page_module_show', locals: { page_params: page_params, page_module: page_module }) %>
  <% end %>
</div>

<% if request.xhr? %>
  <script type="text/javascript">
    initEasyAutocomplete();
    initEasyInlineEdit();
  </script>
<% end %>
