Sha256: c19f3f22564ecfe87f3e2ebacc759d71a452bea88fc5e37c07155ee100bec772

Contents?: true

Size: 970 Bytes

Versions: 1

Compression:

Stored size: 970 Bytes

Contents

- title Radmin::I18n.t(:settings,:default => "Application Settings")
%span.toolbar
  = link_to(Radmin::I18n.t(:new_setting,:default => "New"), new_admin_setting_path) if permitted_to? :create
%p.intro= Radmin::I18n.t(:settings_list_intro,:default => "Application Settings")
%table
  %thead
    %th= Radmin::I18n.t(:setting_key, :default => "Key")
    %th= Radmin::I18n.t(:setting_value, :default => "Value")
    %th.last
  %tbody
    - @settings.each do |setting|
      %tr
        %td= link_to setting.key, edit_admin_setting_path(setting)
        %td= setting.value
        %td.last
          = link_to(Radmin::I18n.t(:edit,:default => "Edit"), edit_admin_setting_path(setting), :class => "edit") if permitted_to? :update
          |
          \#{link_to(Radmin::I18n.t(:delete,:default => "Delete"), admin_setting_path(setting), :confirm => Radmin::I18n.t(:are_you_sure,:default => "Are you sure?"), :method => :delete, :class => "delete") if permitted_to? :destroy}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radmin-0.2.0 app/views/admin/settings/index.html.haml