<% if @current_user.super_admin? %>
<%= theme_panel_heading(@section.name) %> <%= theme_panel_sub_heading(@section.page.try(:name), "#") %> <%= clear_tag(10) %> <%= display_publishable_status(@section) %>
<% if display_manage_links? %>
<%= display_manage_buttons(@section) %> <%= display_publishable_buttons(@section) if @current_user.super_admin? %>
<% end %>
<%= clear_tag(20) %>
Section Texts

<% end %> <%= clear_tag(20) %>
<% if @section.enable_title %>
Title
<%= @section.title %>
<% end %> <% if @section.enable_sub_title %>
Sub Title
<%= @section.sub_title.blank? ? "-" : @section.sub_title %>
<% end %>
<% if @section.enable_button_one %>
Button Text One
<%= @section.button_one_text.blank? ? "-" : @section.button_one_text %>
Button Link One
<%= @section.button_one_link.blank? ? "-" : @section.button_one_link %>
<% end %> <% if @section.enable_button_two %>
Button Text Two
<%= @section.button_two_text.blank? ? "-" : @section.button_two_text %>
Button Link Two
<%= @section.button_two_link.blank? ? "-" : @section.button_two_link %>
<% end %>
<% if @section.enable_short_description %>
Short Description
<% if @section.short_description.blank? %> <Not Specified> <% else %> <%= raw(@section.short_description) %> <% end %>
<% end %> <% if @section.enable_long_description %>
Long Description
<% if @section.long_description.blank? %> <Not Specified> <% else %> <%= raw(@section.long_description) %> <% end %>
<% end %>
<% if @section.enable_cover_image %> <%= clear_tag(30) %>
Section Image (Optional)

<%= clear_tag(10) %> <% if display_edit_links? %> <%= edit_image(@section, "cover_image.image.large.url", upload_image_link(@section, :cover_image, nil ), remove_image_link(@section, :cover_image, nil ), image_options: {assoc_name: :cover_image }) %> <% else %> <%= display_image(@section, "cover_image.image.large.url", class: "img-inline", alt: @section.display_name) %> <% end %>
<%= clear_tag(30) %> <% end %> <% if @section.enable_gallery_images %> <%= clear_tag(30) %>
Section Images (Optional)
<%= theme_button('Upload a New Image', 'plus', upload_multiple_image_link(@section, :gallery_images, nil ), classes: "pull-right", btn_type: "success") %>

<%= clear_tag(10) %>
<%= render :partial=>"kuppayam/images/multiple_images", locals: { images: @section.gallery_images } %>
<%= clear_tag(30) %> <% end %> <% if @current_user.super_admin? %> <%= clear_tag(30) %>
Technical Details

ID<%= @section.id %> Page <%= "#{@section.page.name} (#{@section.page.id})" if @section.page %>
CODE<%= @section.code %>
Status<%= @section.status %> Priority<%= @section.priority %>
Enable Title <%=@section.enable_title %> Enable Sub Title <%=@section.enable_sub_title %>
Enable Button One <%=@section.enable_button_one %> Enable Button Two <%=@section.enable_button_two %>
Enable Short Description <%=@section.enable_short_description %> Enable Long Description <%=@section.enable_long_description %>
Enable Cover Image <%=@section.enable_cover_image %> Enable Gallery Images <%=@section.enable_gallery_images %>
Created At<%= @section.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @section.created_at %> Updated At<%= @section.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @section.updated_at %>
<% end %> <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right ml-10", style: "width:120px;" %> <%= link_to "Edit", edit_section_path(@section), remote: true, class: "btn btn-success pull-right", style: "width:180px;" if display_manage_links? %> <%= clear_tag %>