Sha256: f55a3a0e6ab9c31d26d1f25e2b31fcaf30006385480670ad11f6d20fe6b72d87
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
<% cache setting do %> <div class="card"> <h3 class="title"><%= setting.display_name %></h3> <hr/> <div class="label-container"> <label class="type-label"><%= "#{I18n.t('sail.setting_type')}: #{setting.cast_type}" %></label> </div> <p class="setting-description" title="<%= setting.description %>"><%= setting.description %></p> <div id="<%= "setting-message-#{setting.name}" %>" class="setting-message"></div> <%= form_tag(setting_path(name: setting.name), method: :put, remote: true) do %> <%= hidden_field_tag(:cast_type, setting.cast_type) %> <div class="card-body-container"> <div class="card-body"> <% if setting.boolean? %> <label class="switch"> <input type="checkbox" name="value" <%= setting.value == 'true' ? 'checked' : '' %>> <span class="slider round"></span> </label> <% elsif setting.range? %> <input type="range" min="0" max="99" value="<%= setting.value %>" name="value" class="value-slider"> <% else %> <input type="text" name="value" class="value-input" value="<%= setting.value %>"/> <% end %> <button type="submit" class="btn-value-submit"><%= I18n.t('sail.save') %></button> </div> </div> <% end %> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sail-1.1.0 | app/views/sail/settings/_setting.html.erb |