fix dashboard & announcement

This commit is contained in:
unknown authored and Christophe Vilayphiou committed 2012-03-16 14:44:57 +08:00
1 parent b6d49df145
commit 6f6e84b015
38 files changed
+849 -497

No files matched your search

@@ -1,31 +1,32 @@
<% # encoding: utf-8 %>
<%= f.error_messages %>
<%#= debugger %>
<div class="field">
<%= f.label :name %>
<%= @page_context.page.i18n_variable[I18n.locale] %>
</div>
<%= f.error_messages %>
<div class="field">
<%= f.label :context %>
<%= f.fields_for :context, (@page_context.new_record? ? @page_context.build_context : @page_context.context ) do |f| %>
<% @site_valid_locales.each do |locale| %>
<td>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_area locale, :rows => 10, :cols => 40 %>
</td>
<% end %>
<% end %>
</div>
<br />
<br />
<div class="actions">
<%= f.submit %>
</div>
<div id="post-body">
<div class="title">
<%= f.label :name %>
<%= @page_context.page.i18n_variable[I18n.locale] %>
</div>
<div class="title">
<%= f.label :context %>
<%= f.fields_for :context, (@page_context.new_record? ? @page_context.build_context : @page_context.context ) do |f| %>
<% @site_valid_locales.each do |locale| %>
<td>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_area locale, :style=>"width:100%" %>
</td>
<% end %>
<% end %>
</div>
<div class="form-actions">
<%= f.submit 'Submit/送出', :class=>'btn btn-primary' %>
</div>
</div>
<% content_for :page_specific_javascript do %>
@@ -1,10 +1,14 @@
<tr id="<%= dom_id page_context %>">
<td><%= page_context.page.i18n_variable[I18n.locale] %></td>
<td><%= link_to page_context.version, panel_page_content_back_end_view_path(page_context.page_id) %></td>
<td><%= page_context.updated_at.strftime("%Y-%m-%d %H:%I:%S") %></td>
<td><%= User.find(page_context.create_user_id).name %></td>
<td>
<%= link_to t('page_context.edit'), edit_panel_page_content_back_end_page_context_path(page_context) %>
</td>
</tr>
<tr id="<%= dom_id page_context %>" class="with_action">
<td>
<%= page_context.page.i18n_variable[I18n.locale] %>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('page_context.edit'), edit_panel_page_content_back_end_page_context_path(page_context) %></li>
</ul>
</div>
</td>
<td><%= link_to page_context.version, panel_page_content_back_end_view_path(page_context.page_id) %></td>
<td><%= page_context.updated_at.strftime("%Y-%m-%d %H:%I:%S") %></td>
<td><%= User.find(page_context.create_user_id).name %></td>
</tr>
@@ -1,10 +1,15 @@
<tr id="<%= dom_id view_page_context %>">
<td><%= view_page_context.page.i18n_variable[I18n.locale] %></td>
<td><%= view_page_context.version %></td>
<td><%= view_page_context.updated_at.strftime("%Y-%m-%d %H:%I:%S") %></td>
<td><%= User.find(view_page_context.create_user_id).name %></td>
<td>
<%= link_to t('view_page_context.show'), panel_page_content_back_end_page_context_path(view_page_context) %>
</td>
</tr>
<tr id="<%= dom_id view_page_context %>" class="with_action">
<td>
<%= view_page_context.page.i18n_variable[I18n.locale] %>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('view_page_context.show'), panel_page_content_back_end_page_context_path(view_page_context) %></li>
</ul>
</div>
</td>
<td><%= view_page_context.version %></td>
<td><%= view_page_context.updated_at.strftime("%Y-%m-%d %H:%I:%S") %></td>
<td><%= User.find(view_page_context.create_user_id).name %></td>
</tr>
@@ -1,7 +1,3 @@
<br />
<br />
<br />
<br />
<h1><%= t('page_content.editing_page_content') %></h1>
@@ -9,8 +5,4 @@
<%= render :partial => 'form', :locals => {:f => f} %>
<% end %>
<%= link_back %>
<br />
<br />
<br />
<br />
<%#= link_back %>
@@ -1,36 +1,20 @@
<% content_for :secondary do %>
<br />
<br />
<br />
<br />
<br />
<ul class="list">
<li><%= link_to t('page_context.page_content_list'), panel_page_content_back_end_page_contexts_path %></li>
</ul>
<% end -%>
<%= flash_messages %>
<br />
<br />
<br />
<br />
<br />
<h1><%= t('page_context.list_page_content') %></h1>
<table>
<tr>
<th><%= t('page_context.name') %></th>
<th><%= t('page_context.version') %></th>
<th><%= t('page_context.update_time') %></th>
<th><%= t('page_context.last_modified') %></th>
<th><%= t('page_context.action') %></th>
</tr>
<table class="table main-list">
<thead>
<tr>
<th class="span7 select"><%= t('page_context.name') %></th>
<th class="span1-2"><%= t('page_context.version') %></th>
<th class="span1-2"><%= t('page_context.update_time') %></th>
<th class="span1-2"><%= t('page_context.last_modified') %></th>
</tr>
</thead>
<tbody>
<%= render :partial => 'page_context', :collection => @page_contexts %>
<%= render :partial => 'page_context', :collection => @page_contexts %>
</table>
</tbody>
</table>
<br />
@@ -1,36 +1,19 @@
<% content_for :secondary do %>
<br />
<br />
<br />
<br />
<br />
<ul class="list">
<li><%= link_to t('page_context.page_content_list'), panel_page_content_back_end_page_contexts_path %></li>
</ul>
<% end -%>
<%= flash_messages %>
<br />
<br />
<br />
<br />
<br />
<h1><%= t('page_context.list_page_content') %></h1>
<table>
<tr>
<th><%= t('page_context.name') %></th>
<th><%= t('page_context.version') %></th>
<th><%= t('page_context.update_time') %></th>
<th><%= t('page_context.last_modified') %></th>
<th><%= t('page_context.action') %></th>
</tr>
<table class="table main-list">
<thead>
<tr>
<th class="span7 select"><%= t('page_context.name') %></th>
<th class="span1-2"><%= t('page_context.version') %></th>
<th class="span1-2"><%= t('page_context.update_time') %></th>
<th class="span1-2"><%= t('page_context.last_modified') %></th>
</tr>
</thead>
<tbody>
<%= render :partial => 'view_page_context', :collection => @page_contexts %>
</table>
<br />
</tbody>
</table>