<% entries = @texts_by_type[tab[:name]] || [] %> <% if entries.any? %>
<% entries.each do |attribute_help_text| -%> <% end %>
<%= AttributeHelpText.human_attribute_name(:attribute_name) %>
<%= AttributeHelpText.human_attribute_name(:help_text) %>
<%= link_to h(attribute_help_text.attribute_caption), edit_attribute_help_text_path(attribute_help_text) %> <%= link_to( op_icon('icon icon-delete'), (attribute_help_text_path(attribute_help_text)), method: :delete, data: { confirm: I18n.t(:text_are_you_sure) }, title: t(:button_delete)) %>
<% else %> <%= no_results_box %> <% end %>
<%= link_to new_attribute_help_text_path(name: tab[:name]), { class: 'attribute-help-texts--create-button button -alt-highlight', aria: {label: t(:'attribute_help_texts.add_new')}, title: t(:'attribute_help_texts.add_new')} do %> <%= op_icon('button--icon icon-add') %> <%= t('activerecord.models.attribute_help_text') %> <% end %>