<%= I18n.t("#{self.controller.to_i18n}.index.title") %>

<%= render "kirgudu_base/admin/zapanel/shared/top_menu_simple", data: data %>

<%= I18n.t("#{self.controller.to_i18n}.index.title") %>

<% if data[:entries] && data[:entries].count > 0 %>
<% if @settings_manager.get('additional_use_bulk_action') == true %> <% end %> <% if @settings_manager.get('common_show_numbers') == true %> <% end %> <% if @settings_manager.get('common_show_ids') == true %> <% end %> <% data[:page].lists[:entries_list].properties.each_pair do |key, property| %> <% end %> <% data[:entries].each do |item| %> <% if @settings_manager.get('additional_use_bulk_action') == true %> <% end %> <% if @settings_manager.get('common_show_numbers') == true %> <% end %> <% if @settings_manager.get('common_show_ids') == true %> <% end %> <% data[:page].lists[:entries_list].properties.each_pair do |key, property| %> <% end %> <% end %>
# <%= I18n.t("activerecord.attributes.#{self.controller.entry_class.to_i18n}.id") %> <%= property.label ? property.i18n_data_as_string(:label) : I18n.t("activerecord.attributes.#{self.controller.entry_class.to_i18n}.#{property.name}") %>
<%= print_property(item, :row_number) %> <%= print_property(item, :id) %> <%= print_property(item, property.text_value_property || property.name) %> <%= link_to I18n.t("kirgudu_base.common.menus.buttons_menu.show"), self.controller.to_url_for(:show, data[:parent_ids].merge(id: item.id)) %> <%= link_to I18n.t("kirgudu_base.common.menus.buttons_menu.edit"), self.controller.to_url_for(:edit, data[:parent_ids].merge(id: item.id)) %> <%= link_to I18n.t("kirgudu_base.common.menus.buttons_menu.delete"), self.controller.to_url_for(:destroy, data[:parent_ids].merge(id: item.id)), :"redirect-url" => data[:current_url], class: "delete-button" %>
<%= will_paginate data[:entries] %>
<%= I18n.t("kirgudu_base.common.pages.index.pagination.entries_total")%> <%= data[:entries].total_entries %>
<%= I18n.t("kirgudu_base.common.pages.index.pagination.page") %> <%= data[:entries].current_page %> <%= I18n.t("kirgudu_base.common.pages.index.pagination.of") %> <%= data[:entries].total_pages %>
<% else %> <%= I18n.t("kirgudu_base.common.pages.index.messages.no_entries_found") %> <% end %>

<%= I18n.t("kirgudu_base.common.filters.title") %>

<% if data[:page].lists[:entries_list].filters && data[:page].lists[:entries_list].filters.select { |filter| filter.visible == :true }.length > 0 %> <%= form_tag(self.controller.to_url_for(:index, data[:parent_ids]), id: "filters-form", method: :get) do %> <% data[:page].lists[:entries_list].filters.select { |f| f.visible == :true }.each do |filter| %>
<%= control_tag filter, params, data[:filters_data][filter.name], class: "form-control" %>
<% end %> <%= I18n.t("kirgudu_base.common.filters.buttons.reset") %> <% end %> <% else %> <% end %>
<%= content_for :body_scripts_on_document_ready do %> $.input_events = {}; <% end %>