Created
March 24, 2012 18:54
-
-
Save ka8725/2186710 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="text-box clear"> | |
<% last_index = 3 %> | |
<% @page.single_custom_fields.in_groups_of(3, false) do |g| %> | |
<% g.each_with_index do |f, index| %> | |
<% last_index = index.succ %> | |
<div class='col-<%= last_index %> fleft'> | |
<% unless f.custom_field.icon.blank? %> | |
<h4> | |
<%= image_tag f.custom_field.icon, :alt => f.custom_field.name, :title => f.custom_field.name %> | |
<%= f.custom_field.name %> | |
</h4> | |
<% end %> | |
<div class='text-indent'><%= raw f.values.first.name %></div> | |
</div> | |
<% end %> | |
<% end %> | |
</div> | |
<div class="row-img-view"> | |
<div class="fright"> | |
<ul class="list-marker"> | |
<% unless @page.working_days.blank? %> | |
<li> | |
<%= image_tag '/assets/marker2.jpg', :alt => 'Режим работы', :title => 'Режим работы' %> | |
<span class='col-1'>Дни работы</span> | |
<%= working_days_panel %> | |
</li> | |
<% end %> | |
<% if @page.address.present? %> | |
<li> | |
<%= image_tag '/assets/address.gif', :alt => 'Адрес', :title => 'Адрес' %> | |
<span class='col-1'>Адрес</span> | |
<%= @page.address %> | |
</li> | |
<% end %> | |
<% if @page.ticket_cost.present? %> | |
<li> | |
<%= image_tag '/assets/title_bull_1.gif', :alt => 'Стоимость билета', :title => 'Стоимость билета' %> | |
<span class='col-1'>Стоимость билета</span> | |
<%= @page.ticket_cost %> | |
</li> | |
<% end %> | |
<% @page.single_custom_fields.each do |cf| %> | |
<% c_field = cf.custom_field %> | |
<li> | |
<% if c_field.icon.present? %> | |
<%= image_tag c_field.icon, :alt => c_field.name, :title => c_field.name %> | |
<% end %> | |
<span class='col-1'><%= c_field.name %></span> | |
<span class='col-2'><%= raw cf.values.first.name %></span> | |
</li> | |
<% end %> | |
</ul> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment