Sha256: 329842aa7927315d066ea0bc50329b3505eaddd50308fd520114ec631abb5f6c

Contents?: true

Size: 1.38 KB

Versions: 6

Compression:

Stored size: 1.38 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" id="setting_<%= setting.id %>">
      <td class="">
        <strong><%= setting.name %></strong></br>
        <em><%= setting.description %></em>
      </td>
      <td class="">
        <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 %>
              <% else %>
                <%= f.input :string, :placeholder => "Default: " + setting.default_value %>
              <% end %>
            <% end %>
          <% end %>
        </div>
      </td>
      <td class="">
        <a href="#" class="member_link update_link"
                    data-id="#setting_<%= setting.id %>">
          Update
        </a>
      </td>
    </tr>
  <% end %>
  </tbody>
</table>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
activeadmin-settings-0.2.6 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.2.5 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.2.4 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.2.3 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.2.2 app/views/admin/settings/_settings_table.html.erb
activeadmin-settings-0.2.1 app/views/admin/settings/_settings_table.html.erb