Sha256: 20e178b05ec2423a93c6de4d23c76725e40f53c39fe92e20a8112f2a114339e2

Contents?: true

Size: 1.62 KB

Versions: 13

Compression:

Stored size: 1.62 KB

Contents

<table  border="0"
        cellspacing="0"
        cellpadding="0"
        id="settings"
        class="index_table index">
  <thead>
    <tr>
      <th class="">Name</th>
      <th class="">Value</th>
      <th class=""></th>
    </tr>
  </thead>
  <tbody>
    <% settings.each do |setting| %>
    <tr class="odd option-type-<%= setting.type %>" id="setting_<%= setting.id %>">
      <td>
        <strong><%= setting.name %></strong></br>
        <em><%= setting.description %></em>
      </td>
      <td>
        <div class="form <%= setting.type %>">
          <%= semantic_form_for setting,
              :method => :put,
              :url    => "/admin/settings/#{setting.id}" do |f| %>
            <%= f.inputs do %>
              <% case setting.type %>
              <% when "file" %>
                <%= f.input :file, :hint => setting.value %>
                <%= f.input :remove_file, :as => :boolean %>
              <% when "text" %>
                <%= f.input :string, :as => :text %>
              <% when "html" %>
                <%= f.input :string,
                            :as => :text,
                            :input_html => { :class => "settings-redactor" } %>
              <% else %>
                <%= f.input :string, :placeholder => "Default: " + setting.default_value %>
              <% end %>
            <% end %>
          <% end %>
        </div>
      </td>
      <td>
        <a href="#" class="member_link update_link"
                    data-id="#setting_<%= setting.id %>">
          Update
        </a>
        <span class="saved-state">Saved</span>
      </td>
    </tr>
  <% end %>
  </tbody>
</table>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
activeadmin-settings-0.4.4 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.4.3 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.4.2 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.4.1 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.4.0 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.3.5 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.3.4 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.3.3 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.3.2 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.3.1 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.3.0 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.2.9 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.2.8 app/views/admin/settings/_settings_table.html.erb