Sha256: df1a3f660fe16c00ea927ad7ec7eecf570cdf8d95252fd6ce8f8c34b1efef085

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

<%= content_for :head do %>
    <%= stylesheet_link_tag 'ns_settings_ui/settings' -%>
    <%= javascript_include_tag 'ns_settings_ui/application' -%>
<% end %>
<div id="ns_settings_ui">
  <h1 class="text-white ps-1">Settings</h1>
  <div class="card">
    <div class="card-body">
      <div class="input-group input-group-sm mb-2">
        <span class="input-group-text">Filter: </span>
        <input class="form-control form-control-sm" id="filter-input" type="text" value="">
        <span class="form-text ms-2">(regular expressions are available)</span>
      </div>
      <table class="table table-sm table-striped">
        <thead>
          <th>Setting key</th>
          <th class="text-center">Default value</th>
          <th class="text-center">Current value</th>
        </thead>
        <tbody>
          <%= render partial: 'setting_row', collection: @settings, as: 'setting' -%>
        </tbody>
      </table>
    </div>
  </div>
</div>

<%= javascript_tag do -%>
    $('#ns_settings_ui').liveFilter('#ns_settings_ui #filter-input', 'tr', {filterChildSelector: '.setting_key'});
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ns_settings_ui-1.7.0 app/views/ns_settings_ui/settings/index.html.erb
ns_settings_ui-1.6.1 app/views/ns_settings_ui/settings/index.html.erb
ns_settings_ui-1.6.0 app/views/ns_settings_ui/settings/index.html.erb