Sha256: a367273c80a38119fd3808ab270fd2d43539cf2e2a52c728603e4bcd3546591c

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

<!--

  @File Name                 : admin/layouts/index.html.erb
  @Company Name              : Mindfire Solutions Private Limited
  @Creator Name              : Vikram Kumar Mishra
  @Date Created              : 2012-06-15
  @Date Modified             : 
  @Last Modification Details :
  @Purpose                   : To display all the layouts and respective image and let the user choose the specific layout.

-->

<h3> Click on the Image you want to choose as layout </h3>

<div id="layout-images-div">

  <!--
    looping through all the elements of @layouts array to
    show preview images for all layouts
  -->
  <% @layouts.each do |layout| %>

    <div class="layout-images">

      <div class="layout-name">

        <%= layout.name %>

      </div>
      <div class="layout-image">

        <%= image_tag("layouts/#{layout.name.tr(' ', '-')}.png", :size => "400x400", :alt => "#{layout.name}", :title => "click to view large") %>
        
      </div>
      <div class="layout-link">

        <!-- if parent_id is not 0 then send parent_id through url -->
        <% if not @page_parent_id == 0 %>
        
          <%= link_to("Use This Layout", new_admin_page_path(:layout_id => "#{layout.id}", :parent_id => "#{@page_parent_id}")) %>

        <% else %>
          
          <%= link_to("Use This Layout", new_admin_page_path(:layout_id => "#{layout.id}")) %>
        
        <% end %>

      </div>

    </div>

  <% end %>

</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mcms_pages-0.0.1 app/views/mcms_pages/admin/layouts/index.html.erb