Sha256: 74e4991b0a6004de1ea3ed53687b8ff93c7620300961731c1de58374b1d0dba8
Contents?: true
Size: 1.61 KB
Versions: 39
Compression:
Stored size: 1.61 KB
Contents
<%= symphonia_form_tag(url: params.require(:path), method: :get, html: { id: 'symphonia_query_options_form' }) do |f| %> <% if true #false # TODO: Move to inline-table UI %> <fieldset class="symphonia-query-filters-selector"> <legend><%= t('query_options.filters') %></legend> <div class="row"> <%= hidden_field_tag(:set_filter, '1') %> <% @query.render_filters do |xf| %> <div class="form-group col-6"> <%= label_tag("filters_#{xf.name}", t(xf.caption, default: xf.caption), class: 'control-label') %> <%= xf.form_field(self) %> </div> <% end -%> </div> </fieldset> <% end %> <fieldset class="clearfix symphonia-query-column-selector"> <legend><%= t('query_options.columns') %></legend> <% (@query.columns + (@query.columns(true) - @query.columns)).each do |column| # reordering %> <div class="column reorder"> <%= f.check_box(column.name, label: column.title, checked: @query.column_names.include?(column.name)) %> </div> <% end %> </fieldset> <% unless request.xhr? %> <div class="buttons"> <%= link_to(t(:button_reset), 'javascript:void(0)', onclick: %q{window.location = window.location.protocol + '//' + window.location.host + window.location.pathname + '?set_filter=0'}, class: 'btn btn-danger pull-left') %> <%= link_to(t(:button_submit), %q{javascript:window.symphoniaFiltersForm.submit()}, class: 'btn btn-primary') %> </div> <% end %> <% end %> <script type="text/javascript"> window.symphoniaFiltersForm = new SymphoniaFilter('symphonia_query_options_form') </script>
Version data entries
39 entries across 39 versions & 1 rubygems