.row.hidden-print .col-xs-12 - if flash[:error] .alert.alert-danger.alert-dismissable button.close type="button" data-dismiss="alert" aria-hidden="true"> × = flash[:error] - if flash[:error] .alert.alert-success.alert-dismissable button.close type="button" data-dismiss="alert" aria-hidden="true"> × = flash[:success] .row .col-xs-12 .box.box-default .box-header.with-border h3.box-title | .box-tools.hidden-print - if policy(@resources.model).create? = link_button(t("faalis.dashboard.index_view.new_button", title: t("resources.#{@resources.model.name.underscore}")), remote: false, href: get_url(@new_route, nil, @engine), classes: 'btn-success btn-flat', icon_class: 'plus fa-lg') = action_buttons(@_action_buttons) .box-body.no-padding table.table.table-striped.dataTable tbody tr - @index_fields.each do |field| th /= field = t("main_app.#{field}").humanize th.text-center.hidden-print = t('faalis.actions') - @resources.each do |resource| tr id=("#{controller_name.singularize.underscore}_#{resource.id}") - @index_fields.each do |field| td = resource.try(field.to_s).to_s || '-' td.btn-user.text-center.hidden-print .btn-group.action-bar a.pull-left.link.btn.btn-xs.btn.show.tool href=(get_url(@show_route, resource.id, @engine)) data-toggle="tooltip" data-placement="top" title=(t("faalis.dashboard.index_section.show")) i.fa.fa-eye.fa-lg a.warning.link.pull-left.btn.btn-xs.btn.edit.tool href=(get_url(@edit_route, resource.id, @engine)) data-toggle="tooltip" data-placement="top" title=(t("faalis.dashboard.index_section.edit")) i.fa.fa-edit.fa-lg a.link.pull-left.btn.btn-xs.delete.tool href=(get_url(@show_route, resource.id, @engine)) data-remote="true" data-method="delete" data-toggle="tooltip" data-placement="top" title=(t("faalis.dashboard.index_section.delete")) data-confirm=(t('faalis.dashboard.index_section.delete_msg')) i.fa.fa-remove.fa-lg.btn-remove - @_tools_buttons.each do |btn_name, btn| a id=("tool_button_#{btn_name}") class=("link pull-left btn btn-xs #{btn[:class] || 'btn-default'}") href=(btn[:block].call(resource)) data-remote=("#{btn[:remote]}") i class=("fa #{btn[:icon_class]}") = btn_name .box-footer.hidden-print .row .col-xs-12.col-sm-12 = paginate @resources