Sha256: 5289032b621d88578c93904eef611d1903353e2da6b56401c70416ab421f0da7
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
<ol class="breadcrumb"> <li class="active"> <%= t('settings.index.title') %> </li> </ol> <% flash.each do |key, value| %> <div class="alert alert-<%= key %>"><%= value %></div> <% end %> <%= form_tag [:update_all], method: :put, class: 'form' do %> <table class="table table-striped"> <thead> <tr> <th> <%= t('settings.index.description') %> </th> <th> <%= t('settings.index.value') %> </th> </tr> </thead> <tbody> <% @settings.each do |name, value| %> <% errors = @errors.has_key?(name.to_sym) ? @errors[name.to_sym].join(', ') : nil %> <tr data-name="<%= name %>"> <td> <%= I18n.t("settings.attributes.#{name}.name") %> </td> <td class="setting-value"> <div class="form-group <%= errors ? 'has-error' : '' %>"> <%= setting_field(name, value) %> <%- if errors.present? %> <span class="help-block"><%= errors %></span> <% end %> </div> </td> </tr> <% end %> </tbody> </table> <%= submit_tag t('settings.index.save_all'), class: 'btn btn-primary btn-lg' %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems