<%= best_in_place @mega_display[:model_display], :instructions, url: @model_display_path, as: :textarea %>
<%= form_tag @mega_display[:form_path] + '/filter' do %>
<%=@mf.app_wrapper.html_safe%>
<% if @filter_text && might_filter? %>
Current Filters: <%= @filter_text.join(', ') %>
<%= render partial: "mega_bar_inline_help_links", :locals => {:links => reorder_up(displayable_field, 'up')} %>
<%= best_in_place displayable_field[:field_display], :header, url: @field_display_path %>
<%= render partial: "mega_bar_inline_help_links", :locals => {:links => reorder_down(displayable_field, 'down')} %>
|
<% end %>
<%= @mf.field_wrapper.html_safe%>
<%
data = render template: displayable_field[:field_display].format.tableize + "/show", locals: data_format_locals(mega_record, displayable_field)
%>
<% if displayable_field[:field_display].link_type == 'link_field_value' && displayable_field[:field_display].format == 'textread' %>
<% end %>
<%= data %>
<% if displayable_field[:field_display].link_type == 'link_field_value' && displayable_field[:field_display].format == 'textread' %>
<% end %>
<%= @mf.field_wrapper_end.html_safe %>
<% if @mf.name == 'ProfileTable' %>
|
<% end %>
<% end %>
<% if @mf.name == 'GridHtml' %>
<%= link_to 'Show '.html_safe, link_path('show', mega_record.id) %>
|
<%= link_to 'Edit '.html_safe, link_path('edit', mega_record.id) %> |
<%= link_to 'Destroy '.html_safe, mega_record, method: :delete, data: { confirm: 'Are you sure?' } %> |
<% if @mega_model_properties.position_parent.present? && @nested_ids.map{|nid| true if nid.key?((@mega_model_properties.position_parent.split("::").last.underscore.downcase + "_id")) }.first %>
<% unless @mega_instance.first.position == mega_record.position %>
<%= link_to 'up', link_path('move', mega_record.id).to_s + "?method=move_higher", data: { turbolinks: false } %>
<%= link_to 'top', link_path('move', mega_record.id).to_s + "?method=move_to_top", data: { turbolinks: false } %>
<% end %>
<% unless @mega_instance.last.position == mega_record.position %>
<% unless mega_record.position == (@mega_instance.first.position || @mega_instance.last.position) %> | <% end %>
<%= link_to 'down', link_path('move', mega_record.id).to_s + "?method=move_lower", data: { turbolinks: false } %>
<%= link_to 'bottom', link_path('move', mega_record.id).to_s + "?method=move_to_bottom", data: { turbolinks: false } %>
<% end %>
|
<% end %>
<% end %>
<%= @mf.record_wrapper_end.html_safe%>
<% end %>
<% if might_filter? %>
---|