Sha256: 6fa0775a335ea4d1edf66442f5dd04650a29d50cbf840bef6c5a6f81ca1fdc5d
Contents?: true
Size: 1.98 KB
Versions: 4
Compression:
Stored size: 1.98 KB
Contents
<div class="ui top attached menu borderless"> <div class="item header">Data List</div> <%= link_to 'Record', data_records_path, class: active_helper(controllers: 'data_records') %> <div class="right menu"> <div class="item"> <%= link_to 'New', new_data_record_path, class: 'ui teal button' %> </div> </div> </div> <table class="ui bottom attached table"> <thead> <tr> <th><%= DataList.human_attribute_name(:id) %></th> <th> <p><%= DataList.human_attribute_name(:title) %></p> <p><%= DataList.human_attribute_name(:comment) %></p> </th> <th><%= DataList.human_attribute_name(:data_table) %></th> <th> <p><%= DataList.human_attribute_name(:export_excel) %></p> <p><%= DataList.human_attribute_name(:export_pdf) %></p> </th> <th>Parameters</th> <th>Columns</th> <th></th> <th>Actions</th> </tr> </thead> <tbody> <% @data_records.each do |data_record| %> <% if the_role_user.has_role?('the_data/data_records', 'read', data_record.id) %> <tr> <td><%= data_record.id %></td> <td> <p><%= data_record.title %></p> <p><%= data_record.comment %></p> </td> <td> <p><%= data_record.data_table %></p> <p><%= data_record.export_excel %></p> </td> <td><%= data_record.export_pdf %></td> <td><%= simple_format_hash(data_record.parameters) %></td> <td><%= simple_format_hash(data_record.columns) %></td> <td><%= link_to 'record list', data_record_record_lists_path(data_record) %></td> <td class="ui labels"> <%= 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' %> </td> </tr> <% end %> <% end %> </tbody> </table>
Version data entries
4 entries across 4 versions & 1 rubygems