Sha256: c6be7f97f5b2be1e4ac4d01baf9f23e50be714aeacce16956550c661c3552947
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 KB
Contents
<ol class="breadcrumb"> <li class="active"> <%= t('settings.index.title') %> </li> </ol> <% if @casted_settings && @casted_settings[:errors].any? %> <div class="alert alert-danger"> <%= t('settings.index.settings_include_errors') %> </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"> <% setting_with_error = @casted_settings && @casted_settings[:errors].include?(name) %> <div class="form-group <%= errors ? 'has-error' : '' %>"> <%= setting_field(name, value, @settings) %> <%- 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails-settings-ui-1.2.0 | app/views/rails_settings_ui/settings/index.html.erb |
rails-settings-ui-1.1.0 | app/views/rails_settings_ui/settings/index.html.erb |