change layout from old admin to new_admin. not complete code
This commit is contained in:
parent
a549fb71a0
commit
928c642840
|
@ -1,5 +1,5 @@
|
||||||
class Admin::AdBannersController < ApplicationController
|
class Admin::AdBannersController < ApplicationController
|
||||||
layout "admin"
|
layout "new_admin"
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :is_admin?
|
before_filter :is_admin?
|
||||||
|
|
||||||
|
|
|
@ -1,47 +1,41 @@
|
||||||
<% content_for :secondary do %>
|
|
||||||
<div class="ad_banners_setup">
|
|
||||||
<h1><%= t('admin.setup_ad_banners') %></h1>
|
|
||||||
<ul class="list">
|
|
||||||
<li><%= link_to content_tag(:span, t('admin.new_ad_banner')), new_admin_ad_banner_path, :class => 'seclink1' %></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<% end -%>
|
|
||||||
|
|
||||||
<%= flash_messages %>
|
<%= flash_messages %>
|
||||||
<div class="main2">
|
|
||||||
<h1><%= t('admin.list_ad_banners') %></h1>
|
|
||||||
|
|
||||||
<table>
|
<ul class="nav nav-pills filter">
|
||||||
|
<li class="accordion-group">
|
||||||
|
<form class="form-search">
|
||||||
|
<input class="input-medium search-query" type="text">
|
||||||
|
<button class="btn" type="submit">Search</button>
|
||||||
|
</form>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
<table class="table main-list" style="margin-top: 62px; ">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= t('admin.title') %></td>
|
<th class="span1"></th>
|
||||||
<td><%= t('admin.picture_position') %></td>
|
<th class="span1-2"><%= t('admin.location') %></th>
|
||||||
<td><%= t('admin.post_date') %></td>
|
<th class="span1"><%= t('admin.title') %> </th>
|
||||||
<td><%= t('admin.unpost_date') %></td>
|
<th class="span7"><%= t('admin.title') %></th>
|
||||||
<td><%= t('admin.context') %></td>
|
<th class="span1-2"><%= t('admin.start_date')%></th>
|
||||||
<td><%= t('admin.direct_to_after_click') %></td>
|
<th class="span1-2"><%= t('admin.end_date') %></th>
|
||||||
<td><%= t('admin.now_display?') %></td>
|
<th class="span1-2"><%= t('admin.style') %></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<% @ad_banners.each do |ad_banner| %>
|
<% @ad_banners.each do |ad_banner| %>
|
||||||
<tr class="have">
|
<tr class="have">
|
||||||
<td><%= ad_banner.title %></td>
|
<td></td>
|
||||||
<td><%= ad_banner.picture_position %></td>
|
<td><%= ad_banner.picture_position %></td>
|
||||||
|
<td><%= link_to ad_banner.title,edit_admin_ad_banner_path(ad_banner) %></td>
|
||||||
|
<td></td>
|
||||||
<td><%= ad_banner.post_date %></td>
|
<td><%= ad_banner.post_date %></td>
|
||||||
<td><%= ad_banner.unpost_date.nil?? t('form.date_unlimited'): ad_banner.unpost_date %></td>
|
<td><%= ad_banner.unpost_date.nil?? t('form.date_unlimited'): ad_banner.unpost_date %></td>
|
||||||
<td><%= ad_banner.context %></td>
|
<td><%= ad_banner.ad_fx %></td>
|
||||||
<td><%= ad_banner.direct_to_after_click %></td>
|
|
||||||
<td><%= ad_banner.display? %></td>
|
|
||||||
<td class="action">
|
|
||||||
<%= link_to t(:show), admin_ad_banner_path(ad_banner), :class => 'show' %>
|
|
||||||
<%= link_to t(:edit), edit_admin_ad_banner_path(ad_banner), :class => 'edit' %>
|
|
||||||
<%= link_to t(:delete), admin_ad_banner_path(ad_banner), :confirm => t('sure?'), :method => :delete, :class => 'delete' %>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr></tr>
|
<tr></tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="button_bar">
|
<div class="button_bar">
|
||||||
<%= link_to t('admin.new_ad_banner'), new_admin_ad_banner_path, :class => 'new' %>
|
<%= link_to t('admin.new_ad_banner'), new_admin_ad_banner_path, :class => 'new' %>
|
||||||
|
|
Reference in New Issue