<%= form_with(model: @result, url: my_module_result_tables_path(format: :json, page: params[:page], order: params[:order]), data: { remote: true, 'name-max-length': Constants::NAME_MAX_LENGTH }) do |f| %>
<%= f.text_field :name, class: 'sci-input-field' %>
<%= f.fields_for :table do |ff| %> <%= ff.hidden_field(:contents, value: ff.object.contents, class: "hot-contents" ) %> <%= ff.hidden_field(:metadata, value: ff.object.metadata, class: "hot-metadata" ) %>
<% end %>
<%= f.button t("result_tables.new.create"), class: 'btn btn-primary save-result' %>
<% end %>