Sha256: 6346019bae95c441588e354c0edc551d4db2b698ab295468055534546f650549

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

<%
if @model_info.hideable? && can?(:edit, @model)
    element_id = "hide_#{item.id}"
    toggle_url = admin_url_for(
        :controller => :status,
        :action => :toggle,
        :model => @model,
        :id => item.id
    ) #todo via native method. Add route resourse

    %><div class="view-option">
        <input id="<%=element_id%>" data-toggle-url="<%= toggle_url %>" type="checkbox"<%
            if item.shown?
                %> checked="checked"<%
            end
        %>/>
        <label for="<%=element_id %>" class="glyphicon"></label>
    </div><%
end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rademade_admin-0.1.5 app/views/rademade_admin/_blocks/button/_hide.html.erb