Method: ModelModalHelper#model_modal_standard

Defined in:
app/helpers/model_modal_helper.rb

#model_modal_standard(model, _options = {}) ⇒ Object



162
163
164
165
166
167
168
169
170
# File 'app/helpers/model_modal_helper.rb', line 162

def model_modal_standard(model, _options = {})
  (:table, class: 'center-align highlight') do
    concat((:tbody) do
      %w[_id _type created_at updated_at search_text sort_text].each do |field_name|
        concat(model_modal_field(model, field_name))
      end
    end)
  end
end