Sha256: b1c601d9fda0f335f7657341d1c9a90235d4b5563c10996848507c8678b08ef7

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 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>

<%= render :partial => "mcms_pages/layouts/head" %>

Version data entries

1 entries across 1 versions & 1 rubygems

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