<% @data_records.each do |data_record| %> <% if the_role_user.has_role?('the_data/data_records', 'read', data_record.id) %> <% end %> <% end %>
<%= DataList.human_attribute_name(:id) %>

<%= DataList.human_attribute_name(:title) %>

<%= DataList.human_attribute_name(:comment) %>

<%= DataList.human_attribute_name(:data_table) %>

<%= DataList.human_attribute_name(:export_excel) %>

<%= DataList.human_attribute_name(:export_pdf) %>

Parameters Columns Actions
<%= data_record.id %>

<%= data_record.title %>

<%= data_record.comment %>

<%= data_record.data_table %>

<%= data_record.export_excel %>

<%= data_record.export_pdf %> <%= simple_format_hash(data_record.parameters) %> <%= simple_format_hash(data_record.columns) %> <%= link_to 'record list', data_record_record_lists_path(data_record) %> <%= link_to 'Edit', edit_data_record_path(data_record), class: 'ui green label' %> <%= link_to 'Rebuild', rebuild_data_record_path(data_record), method: :patch, data: { confirm: 'Confirm' }, class: 'ui blue label' %> <%= link_to 'Delete', data_record_path(data_record), method: :delete, data: { confirm: 'Are you sure?' }, class: 'ui red label' %>