Translation changes

This commit is contained in:
chris 2012-11-27 11:15:15 +08:00
parent 9c6c622a49
commit dc3be3c9a1
128 changed files with 295 additions and 1114 deletions

View File

@ -101,7 +101,6 @@ class Admin::DesignsController < OrbitBackendController
def create def create
@design = Design.new(params[:design]) @design = Design.new(params[:design])
if @design.save if @design.save
flash[:notice] = "Successfully created design and tasks."
redirect_to admin_designs_url redirect_to admin_designs_url
else else
render :action => 'new' render :action => 'new'

View File

@ -112,7 +112,7 @@ class Admin::PurchasesController < ApplicationController
log = Logger.new(STDOUT) log = Logger.new(STDOUT)
log.level = Logger::WARN log.level = Logger::WARN
log.warn("App unzip procress is finished,please restart the server to apply effect") log.warn(t(:unzip_app))
#TODO Perform touch tmp/restart to restart in production env #TODO Perform touch tmp/restart to restart in production env
end end
@ -159,7 +159,7 @@ class Admin::PurchasesController < ApplicationController
log = Logger.new(STDOUT) log = Logger.new(STDOUT)
log.level = Logger::WARN log.level = Logger::WARN
log.warn("App unzip procress is finished,please restart the server to apply effect") log.warn(t(:unzip_app))
} }
temp_file.close temp_file.close

View File

@ -1,78 +0,0 @@
class Admin::UsersController < ApplicationController
layout "admin"
before_filter :authenticate_user!
before_filter :set_attribute, :only => [:index, :show, :new, :edit]
def index
@users = User.all.entries
end
def show
@user = User.find(params[:id])
get_info_and_roles
end
def new
@user = User.new
get_info_and_roles
end
def create
puts params.to_yaml
@user = User.new(params[:user])
if @user.save
flash[:notice] = t('create.success.user')
redirect_to :action => :index
else
render :action => :new
end
end
def edit
@user = User.find(params[:id])
get_info_and_roles
end
def update
@user = User.find(params[:id])
# Update changes to the avatar
@user.remove_avatar! if params[:file]
@user.avatar = params[:file] if params[:file]
if @user.id.to_s.eql?(session['warden.user.user.key'][1].to_s) && @user.admin != params[:user][:admin].to_i.to_b
flash.now[:error] = t(:cant_revoke_self_admin)
end
if !flash[:error] && @user.update_attributes(params[:user])
flash[:notice] = t('update.success.user')
redirect_to :action => :index
else
get_info_and_roles
render :action => :edit
end
end
def destroy
if params[:id].eql?(session['warden.user.user.key'][1].to_s)
flash[:error] = t(:cant_delete_self)
else
@user = User.find(params[:id])
@user.destroy
end
redirect_to :action => :index
end
protected
def get_info_and_roles
@infos = Info.excludes('disabled' => true)
@roles = Role.excludes('disabled' => true)
end
def set_attribute
@class = 'users'
end
end

View File

@ -37,7 +37,7 @@ class Desktop::CoAuthorsController < ApplicationController
@co_author.name_id= current_user.id @co_author.name_id= current_user.id
if @co_author.save if @co_author.save
render json: {success:true, msg: "Co-author successfully saved!"}.to_json render json: {success:true, msg: t('create.sucess.co_author')}.to_json
else else
error_msg = @co_author.errors.full_messages.join("<br />") error_msg = @co_author.errors.full_messages.join("<br />")
render json: {success: false, msg: error_msg}.to_json render json: {success: false, msg: error_msg}.to_json
@ -48,7 +48,7 @@ class Desktop::CoAuthorsController < ApplicationController
@co_author = CoAuthor.find(params[:id]) @co_author = CoAuthor.find(params[:id])
if @co_author.update_attributes(params[:co_author]) if @co_author.update_attributes(params[:co_author])
render json: {success:true, msg: "Co-author successfully update!"}.to_json render json: {success:true, msg: t('update.sucess.co_author')}.to_json
else else
error_msg = @co_author.errors.full_messages.join("<br />") error_msg = @co_author.errors.full_messages.join("<br />")
render json: {success: false, msg: error_msg}.to_json render json: {success: false, msg: error_msg}.to_json

View File

@ -44,7 +44,7 @@ class Desktop::JournalPagesController < ApplicationController
@writing_journal = WritingJournal.new(params[:writing_journal]) @writing_journal = WritingJournal.new(params[:writing_journal])
if @writing_journal.save if @writing_journal.save
render json: {success: true, msg: "Paper successfully saved!"}.to_json render json: {success: true, msg: t('create.success.paper')}.to_json
else else
error_msg = @writing_journal.errors.full_messages.join("<br />") error_msg = @writing_journal.errors.full_messages.join("<br />")
render json: {success: false, msg: error_msg}.to_json render json: {success: false, msg: error_msg}.to_json
@ -56,7 +56,7 @@ class Desktop::JournalPagesController < ApplicationController
@writing_journal= WritingJournal.find(params[:id]) @writing_journal= WritingJournal.find(params[:id])
respond_to do |format| respond_to do |format|
if @writing_journal.update_attributes(params[:writing_journal]) if @writing_journal.update_attributes(params[:writing_journal])
render json: {success: true, msg: "Paper successfully saved!"}.to_json render json: {success: true, msg: t('update.success.paper')}.to_json
else else
error_msg = @writing_journal.errors.full_messages.join("<br />") error_msg = @writing_journal.errors.full_messages.join("<br />")
render json: {success: false, msg: error_msg}.to_json render json: {success: false, msg: error_msg}.to_json
@ -76,7 +76,7 @@ class Desktop::JournalPagesController < ApplicationController
def destroy def destroy
@writing_journal = WritingJournal.find(params[:id]) @writing_journal = WritingJournal.find(params[:id])
@writing_journal.destroy @writing_journal.destroy
render :json => {success: true, msg: "Paper deleted successfully!"} render :json => {success: true, msg: t('delete.success.paper')}
end end
def get_journals_json def get_journals_json

View File

@ -10,7 +10,7 @@ class PagesController < ApplicationController
impressionist(@item) impressionist(@item)
render_page render_page
else else
render :text => 'You need a home page' render :text => t(:need_home)
end end
end end

View File

@ -18,7 +18,7 @@ module Admin::ItemsHelper
ret << (link_to t(:edit), eval("edit_admin_#{node.class.to_s.downcase}_path(node)"), :class => 'js_history') if node.class.to_s.eql?('Page') ret << (link_to t(:edit), eval("edit_admin_#{node.class.to_s.downcase}_path(node)"), :class => 'js_history') if node.class.to_s.eql?('Page')
ret << (link_to t('new.page'), new_admin_page_path(:parent_id => node.id), :class => 'new_page js_history') if node.class.to_s.eql?('Page') ret << (link_to t('new.page'), new_admin_page_path(:parent_id => node.id), :class => 'new_page js_history') if node.class.to_s.eql?('Page')
ret << (link_to t('new.link'), new_admin_link_path(:parent_id => node.id), :class => 'new_link js_history') if node.class.to_s.eql?('Page') ret << (link_to t('new.link'), new_admin_link_path(:parent_id => node.id), :class => 'new_link js_history') if node.class.to_s.eql?('Page')
ret << (link_to t(:delete), eval("delete_admin_#{node.class.to_s.downcase}_path(node, :authenticity_token => form_authenticity_token)"), :confirm => t('sure?'), :class => 'delete js_history') ret << (link_to t(:delete_), eval("delete_admin_#{node.class.to_s.downcase}_path(node, :authenticity_token => form_authenticity_token)"), :confirm => t('sure?'), :class => 'delete js_history')
ret << "</div>" ret << "</div>"
ret << "</div>" ret << "</div>"
ret << render_children(node) ret << render_children(node)

View File

@ -44,13 +44,6 @@ module ApplicationHelper
User.find(session[:guest_user_id].nil? ? session[:guest_user_id] = create_guest_user.id : session[:guest_user_id]) User.find(session[:guest_user_id].nil? ? session[:guest_user_id] = create_guest_user.id : session[:guest_user_id])
end end
def colorize_in_use_locale(locale)
@site_in_use_locales.include?(locale)? 'green' : 'red'
end
def flash_messages def flash_messages
return unless messages = flash.keys.select{|k| FLASH_NOTICE_KEYS.include?(k)} return unless messages = flash.keys.select{|k| FLASH_NOTICE_KEYS.include?(k)}
formatted_messages = messages.map do |type| formatted_messages = messages.map do |type|

View File

@ -228,7 +228,7 @@ protected
temp_field_name = get_basic_field_name_base + '[temp]' temp_field_name = get_basic_field_name_base + '[temp]'
add_more = content_tag :div,:class=> 'controls' do add_more = content_tag :div,:class=> 'controls' do
content_tag :span,:class=> 'help-block' do content_tag :span,:class=> 'help-block' do
content = link_to (content_tag :i,I18n.t("admin.infos.add"),:class=>"icon-plus-sign"),"#",:class=>'addinput' content = link_to (content_tag :i,I18n.t(:add),:class=>"icon-plus-sign"),"#",:class=>'addinput'
content << hidden_field_tag("#{temp_field_name}[count]",@attribute_value.add_more_counter ,:class=>"list_count") content << hidden_field_tag("#{temp_field_name}[count]",@attribute_value.add_more_counter ,:class=>"list_count")
content << hidden_field_tag("#{temp_field_name}[count]",get_basic_field_name_base,:class=>"field_name") content << hidden_field_tag("#{temp_field_name}[count]",get_basic_field_name_base,:class=>"field_name")
content content

View File

@ -33,7 +33,7 @@ module AttributeValuesHelper
end end
year_str = "" year_str = ""
unless date.year == 1912 unless date.year == 1912
m_year = (date.year - 1912).abs.to_s + I18n.t("admin.infos.date.minguo_calendar.year") m_year = (date.year - 1912).abs.to_s + I18n.t("date.minguo_calendar.year")
year_str = minguo_format_year(m_year) year_str = minguo_format_year(m_year)
end end
get_minguo_year + minguo_m_y_d_time get_minguo_year + minguo_m_y_d_time
@ -42,15 +42,15 @@ module AttributeValuesHelper
def get_minguo_year def get_minguo_year
date = get_date date = get_date
m_year = (date.year - 1911).abs m_year = (date.year - 1911).abs
year_end = I18n.t("admin.infos.date.minguo_calendar.year") year_end = I18n.t("date.minguo_calendar.year")
case case
when date.year <1912 when date.year <1912
I18n.t("admin.infos.date.minguo_calendar.before") + (m_year+1).to_s + year_end I18n.t("date.minguo_calendar.before") + (m_year+1).to_s + year_end
when date.year ==1912 when date.year ==1912
I18n.t("admin.infos.date.minguo_calendar.first_year") I18n.t("date.minguo_calendar.first_year")
when date.year >1912 when date.year >1912
I18n.t("admin.infos.date.minguo_calendar.after")+ (m_year).to_s + year_end I18n.t("date.minguo_calendar.after")+ (m_year).to_s + year_end
end # of case tw_claendar year end # of case tw_calendar year
end end
def minguo_m_y_d_time def minguo_m_y_d_time
@ -61,7 +61,7 @@ module AttributeValuesHelper
when 'format2' # Y/M/D when 'format2' # Y/M/D
date.strftime(" %m/%d") date.strftime(" %m/%d")
when 'format3' # Y/M when 'format3' # Y/M
date.strftime(" %m#{I18n.t("admin.infos.date.minguo_calendar.month")}") date.strftime(" %m#{I18n.t("date.minguo_calendar.month")}")
when 'format4' # Y when 'format4' # Y
'' ''
end # of case end # of case
@ -71,11 +71,11 @@ module AttributeValuesHelper
case I18n.locale case I18n.locale
when :zh_tw when :zh_tw
case case
when self.attribute_field["typeC"]["claendar"] == "west_claendar" when self.attribute_field["typeC"]["calendar"] == "west_calendar"
show_west_calender(from_to) show_west_calender(from_to)
when self.attribute_field["typeC"]["claendar"] == "tw_claendar" when self.attribute_field["typeC"]["calendar"] == "tw_calendar"
show_minguo_calendar(from_to) show_minguo_calendar(from_to)
end #case self.attribute_field["typeC"]["claendar"] end #case self.attribute_field["typeC"]["calendar"]
when :en when :en
show_west_calender(from_to) show_west_calender(from_to)
end end

Binary file not shown.

View File

@ -12,7 +12,7 @@ class AttributeField
field :to_delete,:type=> Boolean,:default => false field :to_delete,:type=> Boolean,:default => false
field :typeA,:type=> Hash,:default=>{:cross_lang=>false} field :typeA,:type=> Hash,:default=>{:cross_lang=>false}
field :typeB,:type=> Hash,:default=>{} field :typeB,:type=> Hash,:default=>{}
field :typeC,:type=> Hash,:default=>{:claendar=>"west_claendar",:format=>"format3"} field :typeC,:type=> Hash,:default=>{:calendar=>"west_calendar",:format=>"format3"}
field :typeD,:type=> Hash,:default=>{:cross_lang=>false} field :typeD,:type=> Hash,:default=>{:cross_lang=>false}
field :typeE,:type=> Hash,:default=>{} field :typeE,:type=> Hash,:default=>{}
field :title, localize: true field :title, localize: true

Binary file not shown.

View File

@ -22,7 +22,7 @@
<%if (at_least_module_manager || ad_banner_tab.cur_user_is_sub_manager_of(:edit) )%> <%if (at_least_module_manager || ad_banner_tab.cur_user_is_sub_manager_of(:edit) )%>
<%= content_tag :div ,:class=>'adbanner-action' do%> <%= content_tag :div ,:class=>'adbanner-action' do%>
<%= link_to t("ad.new_image"),new_admin_ad_banner_ad_image_path(ad_banner_tab) ,:class => "btn btn-primary"%> <%= link_to t("ad.new_image"),new_admin_ad_banner_ad_image_path(ad_banner_tab) ,:class => "btn btn-primary"%>
<%= link_to t("modal.preview"), admin_realtime_preview_ad_banner_path(ad_banner_tab.id) , :class=>'preview_trigger btn btn-success'%> <%= link_to t(:preview), admin_realtime_preview_ad_banner_path(ad_banner_tab.id) , :class=>'preview_trigger btn btn-success'%>
<% end -%> <% end -%>
<% end -%> <% end -%>
<ul class="clear"> <ul class="clear">
@ -30,7 +30,7 @@
</ul> </ul>
<% if at_least_module_manager %> <% if at_least_module_manager %>
<%= show_ad_banner_permission_link ad_banner_tab%> <%= show_ad_banner_permission_link ad_banner_tab%>
<%= link_to t(:delete),admin_ad_banner_path(ad_banner_tab),:class => 'btn',:method => :delete,:confirm => t('sure?') %> <%= link_to t(:delete_),admin_ad_banner_path(ad_banner_tab),:class => 'btn',:method => :delete,:confirm => t('sure?') %>
<% end -%> <% end -%>
<%#= render :partial => 'new_add_banner_file', :object => ad_banner_tab.ad_images.build, :locals => { :field_name => "new_ad_images[]", :f => f, :classes => "r_destroy" } %> <%#= render :partial => 'new_add_banner_file', :object => ad_banner_tab.ad_images.build, :locals => { :field_name => "new_ad_images[]", :f => f, :classes => "r_destroy" } %>

View File

@ -7,7 +7,7 @@
<%if at_least_module_manager || sub_manager?(ad_image.ad_banner) %> <%if at_least_module_manager || sub_manager?(ad_image.ad_banner) %>
<p> <p>
<%= link_to t('edit'),edit_admin_ad_banner_ad_image_path(ad_banner,ad_image),:class => 'btn btn-primary' %> <%= link_to t('edit'),edit_admin_ad_banner_ad_image_path(ad_banner,ad_image),:class => 'btn btn-primary' %>
<%= link_to t('delete'),admin_ad_banner_ad_image_path(ad_banner,ad_image),:class => 'btn',:method => :delete,:confirm => t('sure?') %> <%= link_to t(:delete_),admin_ad_banner_ad_image_path(ad_banner,ad_image),:class => 'btn',:method => :delete,:confirm => t('sure?') %>
</p> </p>
<% end -%> <% end -%>
</li> </li>

View File

@ -25,7 +25,7 @@
<div class="control-group"> <div class="control-group">
<%= f.label :best_size, t('ad.best_size'),:class => "control-label" %> <%= f.label :best_size, t('ad.best_size'),:class => "control-label" %>
<div class="controls"> <div class="controls">
<%= f.text_field :best_size %> Ex: 500px x 300px <%= f.text_field :best_size %> <%= t('ad.best_size_example') %>
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
<div class="modal hide fade in banner-preview" id="slideshow-<%=ad_banner.title.dehumanize%>"> <div class="modal hide fade in banner-preview" id="slideshow-<%=ad_banner.title.dehumanize%>">
<div class="modal-header"> <div class="modal-header">
<a class="close" data-dismiss="modal">×</a> <a class="close" data-dismiss="modal">×</a>
<h3><%= t("modal.preview") %></h3> <h3><%= t(:preview) %></h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p class="ad_banner_slideshow"> <p class="ad_banner_slideshow">
@ -13,7 +13,7 @@
</p> </p>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal"><%= t("modal.close") %></a> <a href="#" class="btn" data-dismiss="modal"><%= t(:close) %></a>
</div> </div>
<div> <div>
<script type="text/javascript" src="/static/kernel.js"></script> <script type="text/javascript" src="/static/kernel.js"></script>

View File

@ -1,10 +1,10 @@
<% if ad_banner -%> <% if ad_banner -%>
<%= link_to 'Preview',"#slideshow-#{ad_banner.title.dehumanize}",:class=>"btn btn-primary btn-large",:data=>{:toggle=>'modal'} %> <%= link_to t(:preview),"#slideshow-#{ad_banner.title.dehumanize}",:class=>"btn btn-primary btn-large",:data=>{:toggle=>'modal'} %>
<div class="modal hide fade in banner-preview" id='slideshow-<%=ad_banner.title.dehumanize%>'> <div class="modal hide fade in banner-preview" id='slideshow-<%=ad_banner.title.dehumanize%>'>
<div class="modal-header"> <div class="modal-header">
<a class="close" data-dismiss="modal">×</a> <a class="close" data-dismiss="modal">×</a>
<h3>Modal header</h3> <h3><%= t(:preview) %></h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p class="ad_banner_slideshow"> <p class="ad_banner_slideshow">

View File

@ -17,9 +17,9 @@
<div id="sub-wiget"> <div id="sub-wiget">
<div id="widget-date" class="widget-box"> <div id="widget-date" class="widget-box">
<div class="widget-action clear"> <div class="widget-action clear">
<a href="#" class="action"><i title="Set the announcement to start and end dates" class="icon-exclamation-sign icon-white tip"></i></a> <a href="#" class="action"><i title="<%= t('ad.set_dates') %>" class="icon-exclamation-sign icon-white tip"></i></a>
</div> </div>
<h3 class="widget-title"><i class="icons-calendar"></i><%= t('nccu.date') %></h3> <h3 class="widget-title"><i class="icons-calendar"></i><%= t(:date_) %></h3>
<div class="widget-content clear"> <div class="widget-content clear">
<div id="calendarRange"> <div id="calendarRange">
<div class="input-append"> <div class="input-append">
@ -71,9 +71,9 @@
<div id="widget-picture" class="widget-box"> <div id="widget-picture" class="widget-box">
<div class="widget-action clear"> <div class="widget-action clear">
<a class="action"><i title="Upload pictures" class="icon-exclamation-sign icon-white tip"></i></a> <a class="action"><i title="<%= t('ad.upload_pictures') %>" class="icon-exclamation-sign icon-white tip"></i></a>
</div> </div>
<h3 class="widget-title"><i class="icons-pictures"></i><%= t('nccu.picture') %></h3> <h3 class="widget-title"><i class="icons-pictures"></i><%= t(:picture) %></h3>
<div class="widget-content clear"> <div class="widget-content clear">
<div class="control-group"> <div class="control-group">
<div class="upload-picture"> <div class="upload-picture">
@ -99,7 +99,7 @@
<div id="widget-type" class="widget-box"> <div id="widget-type" class="widget-box">
<div class="widget-action clear"> <div class="widget-action clear">
<a class="action"><i class="icon-exclamation-sign icon-white tip" data-original-title="Upload pictures"></i></a> <a class="action"><i class="icon-exclamation-sign icon-white tip" data-original-title="<%= t('ad.select_fx') %>"></i></a>
</div> </div>
<h3 class="widget-title"><i class="icons-star-thin"></i><%= t(:type) %></h3> <h3 class="widget-title"><i class="icons-star-thin"></i><%= t(:type) %></h3>
<div class="widget-content clear"> <div class="widget-content clear">
@ -109,21 +109,21 @@
<div id="widget-time" class="widget-box widget-size-300"> <div id="widget-time" class="widget-box widget-size-300">
<div class="widget-action clear"> <div class="widget-action clear">
<a class="action"><i class="icon-exclamation-sign icon-white tip" data-original-title="Set the range time"></i></a> <a class="action"><i class="icon-exclamation-sign icon-white tip" data-original-title="<%= t('ad.set_range') %>"></i></a>
</div> </div>
<h3 class="widget-title"><i class="icons-time"></i><%= t(:frequency) %></h3> <h3 class="widget-title"><i class="icons-time"></i><%= t(:frequency) %></h3>
<div class="widget-content clear"> <div class="widget-content clear">
<%= f.text_field :weight ,:class=> 'span3',:placeholder=>"在套圖中出現次數 1次請輸入1" %> <%= f.text_field :weight ,:class=> 'span3',:placeholder=> t('ad.chinese_1') %>
</div> </div>
</div> </div>
<div id="widget-link" class="widget-box widget-size-300"> <div id="widget-link" class="widget-box widget-size-300">
<div class="widget-action clear"> <div class="widget-action clear">
<a class="action"><i class="icon-exclamation-sign icon-white tip" data-original-title="Add a reference link"></i></a> <a class="action"><i class="icon-exclamation-sign icon-white tip" data-original-title="<%= t('ad.add_link') %>"></i></a>
</div> </div>
<h3 class="widget-title"><i class="icons-landscape"></i><%= t(:link) %></h3> <h3 class="widget-title"><i class="icons-landscape"></i><%= t(:link) %></h3>
<div class="widget-content clear"> <div class="widget-content clear">
<%= f.text_field :out_link ,:class=> 'span3',:placeholder => "輸入連結"%> <%= f.text_field :out_link ,:class=> 'span3',:placeholder => t('ad.chinese_2') %>
</div> </div>
</div> </div>
@ -143,7 +143,7 @@
<%= content_tag :div,:class => "tab-pane #{active_when_current_locale_eq locale}",:id=>"#{locale}" do%> <%= content_tag :div,:class => "tab-pane #{active_when_current_locale_eq locale}",:id=>"#{locale}" do%>
<div class="title"> <div class="title">
<%= f.fields_for :title_translations do |f| %> <%= f.fields_for :title_translations do |f| %>
<%= f.text_field locale, :class=>"ad_image-title post-title", :placeholder => "輸入標題", :value => (@ad_image.title_translations[locale] rescue nil) %> <%= f.text_field locale, :class=>"ad_image-title post-title", :placeholder => t('ad.chinese_1'), :value => (@ad_image.title_translations[locale] rescue nil) %>
<% end %> <% end %>
</div> </div>
<br/> <br/>
@ -160,7 +160,7 @@
</div> </div>
</div> </div>
<div class="form-actions"> <div class="form-actions">
<%#= link_to t("modal.preview"), admin_realtime_preview_ad_banner_path(@ad_image.ad_banner.title) ,:class=>"preview_trigger btn btn-success" rescue nil%> <%#= link_to t(:preview), admin_realtime_preview_ad_banner_path(@ad_image.ad_banner.title) ,:class=>"preview_trigger btn btn-success" rescue nil%>
<%= f.submit t("submit"),:class=>"btn btn-primary" %> <%= f.submit t("submit"),:class=>"btn btn-primary" %>
<%= f.submit t("cancel"),:class=>"btn ",:type => 'reset' %> <%= f.submit t("cancel"),:class=>"btn ",:type => 'reset' %>
</div> </div>

View File

@ -37,7 +37,7 @@
<td class="action"> <td class="action">
<%= link_to t(:show), admin_module_app_path(module_app), :class => 'show' %> <%= link_to t(:show), admin_module_app_path(module_app), :class => 'show' %>
<%= link_to t(:edit), edit_admin_module_app_path(module_app), :class => 'edit' %> <%= link_to t(:edit), edit_admin_module_app_path(module_app), :class => 'edit' %>
<%= link_to t(:delete), admin_module_app_path(module_app), :class => 'delete', :confirm => t('sure?'), :method => :delete %> <%= link_to t(:delete_), admin_module_app_path(module_app), :class => 'delete', :confirm => t('sure?'), :method => :delete %>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -6,7 +6,7 @@
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
<li><%= link_to t(:edit), edit_admin_asset_category_path(asset_category), :remote => true %></li> <li><%= link_to t(:edit), edit_admin_asset_category_path(asset_category), :remote => true %></li>
<li><%= link_to t(:delete), admin_asset_category_path(asset_category), :confirm => t(:sure?), :method => :delete, :remote => true %></li> <li><%= link_to t(:delete_), admin_asset_category_path(asset_category), :confirm => t(:sure?), :method => :delete, :remote => true %></li>
</ul> </ul>
</div> </div>

View File

@ -2,7 +2,7 @@
<%= form_for(@asset_category, :remote => true, :url => @url) do |f| %> <%= form_for(@asset_category, :remote => true, :url => @url) do |f| %>
<h2><%= (@asset_category.new_record? ? 'Add' : 'Edit') %></h2> <h2><%= (@asset_category.new_record? ? t(:add) : t(:edit)) %></h2>
<div id="widget-title"> <div id="widget-title">
<%= f.label :key %> <%= f.label :key %>
@ -13,7 +13,7 @@
<%= f.fields_for :title_translations do |f| %> <%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %> <% @site_valid_locales.each do |locale| %>
<div class="control-group"> <div class="control-group">
<%= label_tag "name-#{locale}", "Name-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %> <%= label_tag "name-#{locale}", "#{t(:name)}-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
<div class="controls"> <div class="controls">
<%= f.text_field locale, :class => 'input-xxlarge', :value => (@asset_category.title_translations[locale] rescue nil) %> <%= f.text_field locale, :class => 'input-xxlarge', :value => (@asset_category.title_translations[locale] rescue nil) %>
</div> </div>

View File

@ -6,7 +6,7 @@
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
<li><%= link_to t(:edit), edit_admin_asset_path(asset), :remote => true, :class => 'edit' %></li> <li><%= link_to t(:edit), edit_admin_asset_path(asset), :remote => true, :class => 'edit' %></li>
<li class="dropdown"><%= link_to t(:delete), admin_asset_path(asset), :confirm => t('sure?'), :method => :delete, :class => 'delete' %></li> <li class="dropdown"><%= link_to t(:delete_), admin_asset_path(asset), :confirm => t('sure?'), :method => :delete, :class => 'delete' %></li>
</ul> </ul>
</div> </div>
</td> </td>

View File

@ -10,15 +10,15 @@
<% end %> <% end %>
<td class='select_type'> <td class='select_type'>
<ul> <ul>
<li>markup<%= f.select :markup, LIST[:markups].keys, {}, {:style => "width:90px"} %> </li> <li><%= t(:markup) %> : <%= f.select :markup, LIST[:markups].keys, {}, {:style => "width:90px"} %> </li>
<li>markup_value<%= f.text_field :markup_value,:size=>50 %></li> <li><%= t(:markup_value) %> : <%= f.text_field :markup_value,:size=>50 %></li>
<li>markup_options<%= f.text_field :markup_options,:size=>50 %></li> <li><%= t(:markup_options) %> : <%= f.text_field :markup_options,:size=>50 %></li>
<li>locale<%= f.check_box :locale,{},true,false %></li> <li><%= t(:locale) %> : locale<%= f.check_box :locale,{},true,false %></li>
<li>built_in<%= f.check_box :built_in,{},true,false %></li> <li><%= t(:built_in) %> : built_in<%= f.check_box :built_in,{},true,false %></li>
<li>disabled<%= f.check_box :disabled,{},true,false %></li> <li><%= t(:disabled) %> : disabled<%= f.check_box :disabled,{},true,false %></li>
<li>add_more<%= f.check_box :add_more,{},true,false %></li> <li><%= t(:add_more) %> : add_more<%= f.check_box :add_more,{},true,false %></li>
<li>neutral_title<%= f.text_field :neutral_title,:size=>50 %></li> <li><%= t(:neutral_title) %> : neutral_title<%= f.text_field :neutral_title,:size=>50 %></li>
<li>neutral_for<%= f.select :neutral_for, VALID_LOCALES, {}, {:style => "width:90px"} %> </li> <li><%= t(:neutral_for) %> : neutral_for<%= f.select :neutral_for, VALID_LOCALES, {}, {:style => "width:90px"} %> </li>
<!-- <!--
<li><%#= attribute_field[:markup].eql?('select') ? nil : "style='display:none'"%> </li> <li><%#= attribute_field[:markup].eql?('select') ? nil : "style='display:none'"%> </li>
<li><%#= t(:options) %>: <%#= f.text_field :markup_value%></li> <li><%#= t(:options) %>: <%#= f.text_field :markup_value%></li>
@ -27,14 +27,14 @@
</td> </td>
<td class="action"> <td class="action">
<% if attribute_field.new_record? %> <% if attribute_field.new_record? %>
<a href="#" class="delete"><%= t(:delete) %></a> <a href="#" class="delete"><%= t(:delete_) %></a>
<% else %> <% else %>
<%= f.hidden_field :id %> <%= f.hidden_field :id %>
<% if attribute_field.is_built_in? %> <% if attribute_field.is_built_in? %>
<a href="#" class="switch" id="<%= attribute_field.id %>"></a> <a href="#" class="switch" id="<%= attribute_field.id %>"></a>
<%= f.hidden_field :disabled, :value => attribute_field.is_disabled? , :class => 'built_in_state' %> <%= f.hidden_field :disabled, :value => attribute_field.is_disabled? , :class => 'built_in_state' %>
<% else %> <% else %>
<a href="#" class="remove_existing_record delete"><%= t(:delete) %></a> <a href="#" class="remove_existing_record delete"><%= t(:delete_) %></a>
<%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %> <%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %>
<% end %> <% end %>
<% end %> <% end %>

View File

@ -1,34 +1,34 @@
<%= form_for @attribute,:url => admin_info_path(@attribute) ,:class=> "form-horizontal" do |f| %> <%= form_for @attribute,:url => admin_info_path(@attribute) ,:class=> "form-horizontal" do |f| %>
<div class="site-map role-block"> <div class="site-map role-block">
<div class="map-block back"> <div class="map-block back">
<h4><span><%= t("admin.info")%></span></h4> <h4><span><%= t(:info)%></span></h4>
<div class="form-horizontal"> <div class="form-horizontal">
<div class="clear"> <div class="clear">
<div class="control-group pull-left"> <div class="control-group pull-left">
<label class="control-label" for="key"><%= t("admin.key") %></label> <label class="control-label" for="key"><%= t(:key) %></label>
<div class="controls"> <div class="controls">
<% if @attribute.new_record? %> <% if @attribute.new_record? %>
<%= f.text_field :key,:placeholder=>"Key" %> <%= f.text_field :key, :placeholder => t(:key) %>
<% else %> <% else %>
<div><%= @attribute.key%></div> <div><%= @attribute.key%></div>
<% end %> <% end %>
</div> </div>
</div> </div>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>@attribute.title_translations,:class_ext=>"pull-left",:label_ext=>t("admin.infos.item_name"),:field_name=>"info[title_translations]"}%> <%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>@attribute.title_translations,:class_ext=>"pull-left",:label_ext=>t(:item_name),:field_name=>"info[title_translations]"}%>
</div> </div>
</div> </div>
</div> </div>
<% @attribute_fields_upper_object.each do |attribute|%> <% @attribute_fields_upper_object.each do |attribute|%>
<div class="map-block back attributes"> <div class="map-block back attributes">
<h4><span><%= attribute.title+ t("admin.attributes")%></span></h4> <h4><span><%= attribute.title+ t(:attributes)%></span></h4>
<%= render :partial=>"shared/attribute_field/attribute_field",:collection=>attribute.attribute_fields%> <%= render :partial=>"shared/attribute_field/attribute_field",:collection=>attribute.attribute_fields%>
</div> </div>
<% end %> <% end %>
</div> </div>
<div class="form-actions form-fixed pagination-right"> <div class="form-actions form-fixed pagination-right">
<%= link_to content_tag(:i,t("admin.infos.add_attribute_field"),:class=>"icon-plus icon-white"),admin_info_add_attribute_field_path(@attribute),:class=>"btn btn-primary",:remote => true%> <%= link_to content_tag(:i,t(:add_attribute_field),:class=>"icon-plus icon-white"),admin_info_add_attribute_field_path(@attribute),:class=>"btn btn-primary",:remote => true%>
<%= f.submit t("admin.infos.save"),:class=>"btn btn-primary"%> <%= f.submit t(:save),:class=>"btn btn-primary"%>
</div> </div>
<% end %> <% end %>

View File

@ -23,7 +23,7 @@
<%= link_to t(:enable), eval("admin_#{@attribute_type}_path(attribute, :authenticity_token => form_authenticity_token, :#{@attribute_type} => {:disabled => true})"), :remote => true, :method => :put, :id => "disable_#{attribute.id}", :style => "display:#{attribute.is_disabled? ? 'none' : ''}", :class => 'switch' %> <%= link_to t(:enable), eval("admin_#{@attribute_type}_path(attribute, :authenticity_token => form_authenticity_token, :#{@attribute_type} => {:disabled => true})"), :remote => true, :method => :put, :id => "disable_#{attribute.id}", :style => "display:#{attribute.is_disabled? ? 'none' : ''}", :class => 'switch' %>
<%= link_to t(:disable), eval("admin_#{@attribute_type}_path(attribute, :authenticity_token => form_authenticity_token, :#{@attribute_type} => {:disabled => false})"), :remote => true, :method => :put, :id => "enable_#{attribute.id}", :style => "display:#{attribute.is_disabled? ? '' : 'none'}", :class => 'switch' %> <%= link_to t(:disable), eval("admin_#{@attribute_type}_path(attribute, :authenticity_token => form_authenticity_token, :#{@attribute_type} => {:disabled => false})"), :remote => true, :method => :put, :id => "enable_#{attribute.id}", :style => "display:#{attribute.is_disabled? ? '' : 'none'}", :class => 'switch' %>
<% if !attribute.is_built_in? %> <% if !attribute.is_built_in? %>
<%= link_to t(:delete), eval("admin_#{@attribute_type}_path(attribute)"), :class => 'delete', :confirm => t('sure?'), :method => :delete %> <%= link_to t(:delete_), eval("admin_#{@attribute_type}_path(attribute)"), :class => 'delete', :confirm => t('sure?'), :method => :delete %>
<% end %> <% end %>
</td> </td>
</tr> </tr>

View File

@ -19,12 +19,12 @@
<% end %> <% end %>
<% unless auth.nil? %> <% unless auth.nil? %>
<% auth.roles.each do |role| %> <% auth.roles.each do |role| %>
<li> <%= role.key %> Build in:<%= role.built_in ? 'Yes' : 'No' %> <li> <%= role.key %> <%= t(:built_in) %> :<%= role.built_in ? t(:yes_) : t(:no_) %>
<%= link_to '[X]',polymorphic_path(ploy_route_ary,:type=>'role',:target_id=>role.id),:method => :delete %></li> <%= link_to '[X]',polymorphic_path(ploy_route_ary,:type=>'role',:target_id=>role.id),:method => :delete %></li>
<% end %> <% end %>
<ul>Sub Roles </ul> <ul>Sub Roles </ul>
<% auth.sub_roles.each do |role| %> <% auth.sub_roles.each do |role| %>
<li> <%= role.key %> Build in:<%= role.built_in ? 'Yes' : 'No' %> </li><%= link_to '[X]',polymorphic_path(ploy_route_ary,:type=>'sub_role',:target_id=>role.id),:method => :delete %> <li> <%= role.key %> <%= t(:built_in) %> :<%= role.built_in ? t(:yes_) : t(:no_) %> </li><%= link_to '[X]',polymorphic_path(ploy_route_ary,:type=>'sub_role',:target_id=>role.id),:method => :delete %>
<% end %> <% end %>
<ul>PrivilegeList </ul> <ul>PrivilegeList </ul>
<% auth.privilege_users.each do |user| %> <% auth.privilege_users.each do |user| %>

View File

@ -5,7 +5,7 @@
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
<li><%= link_to t(:edit), edit_admin_design_path(design), :class => 'edit' %></li> <li><%= link_to t(:edit), edit_admin_design_path(design), :class => 'edit' %></li>
<li class="dropdown"><%= link_to t(:delete), admin_design_path(design), :confirm => t('sure?'), :method => :delete, :class => 'delete' %></li> <li class="dropdown"><%= link_to t(:delete_), admin_design_path(design), :confirm => t('sure?'), :method => :delete, :class => 'delete' %></li>
</ul> </ul>
</div> </div>
</td> </td>

View File

@ -5,7 +5,7 @@
<%= f.hidden_field :id %> <%= f.hidden_field :id %>
<%= f.hidden_field :file %> <%= f.hidden_field :file %>
<%= f.hidden_field :to_destroy %> <%= f.hidden_field :to_destroy %>
<a class="remove_mark" href="#"><%= t('Delete') %></a> <a class="remove_mark" href="#"><%= t(:delete_) %></a>
<% end %> <% end %>
<% if classes.include?('r_edit') %> <% if classes.include?('r_edit') %>
<a class="edit_mark" href="#"><%= t('Edit') %></a> <a class="edit_mark" href="#"><%= t('Edit') %></a>

View File

@ -16,7 +16,7 @@
<div class="modal hide fade" id="imageModal" tabindex="-1" role="dialog" aria-labelledby="imageModalLabel" aria-hidden="true"> <div class="modal hide fade" id="imageModal" tabindex="-1" role="dialog" aria-labelledby="imageModalLabel" aria-hidden="true">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="imageModalLabel">Add image</h3> <h3 id="imageModalLabel"><%= t(:add_image) %></h3>
</div> </div>
<%= form_for :image, :url => upload_image_admin_design_path, :html => {:id => 'ajaxForm', :class => 'form-horizontal'}, :method => :post do |f| %> <%= form_for :image, :url => upload_image_admin_design_path, :html => {:id => 'ajaxForm', :class => 'form-horizontal'}, :method => :post do |f| %>
<div class="modal-body"> <div class="modal-body">
@ -28,7 +28,7 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> <button class="btn" data-dismiss="modal" aria-hidden="true"><%= t(:close) %></button>
<%= f.submit t(:add), :class => "btn btn-primary" %> <%= f.submit t(:add), :class => "btn btn-primary" %>
</div> </div>
<% end %> <% end %>

View File

@ -5,12 +5,12 @@
<h1><%= t('editing.design') %></h1> <h1><%= t('editing.design') %></h1>
<ul class="nav nav-tabs" id="myTab"> <ul class="nav nav-tabs" id="myTab">
<li class="active"><a href="#info" data-toggle="tab"><%= t('design.info') %></a></li> <li class="active"><a href="#info" data-toggle="tab"><%= t(:info) %></a></li>
<li><a href="#layout" data-toggle="tab"><%= @design.layout.name %></a></li> <li><a href="#layout" data-toggle="tab"><%= @design.layout.name %></a></li>
<li><a href="#css_default" data-toggle="tab"><%= @design.css_default.name %></a></li> <li><a href="#css_default" data-toggle="tab"><%= @design.css_default.name %></a></li>
<li><a href="#css_reset" data-toggle="tab"><%= @design.css_reset.name %></a></li> <li><a href="#css_reset" data-toggle="tab"><%= @design.css_reset.name %></a></li>
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= t('design.themes') %> <b class="caret"></b></a> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= t(:themes) %> <b class="caret"></b></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<% @design.themes.each do |theme| %> <% @design.themes.each do |theme| %>
<li><a href="#<%= dom_id theme %>" data-toggle="tab"><%= theme.name %></a></li> <li><a href="#<%= dom_id theme %>" data-toggle="tab"><%= theme.name %></a></li>
@ -18,14 +18,14 @@
</ul> </ul>
</li> </li>
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= t('design.javascripts') %> <b class="caret"></b></a> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= t(javascripts) %> <b class="caret"></b></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<% @design.javascripts.each do |js| %> <% @design.javascripts.each do |js| %>
<li><a href="#<%= dom_id js %>" data-toggle="tab"><%= js.name %></a></li> <li><a href="#<%= dom_id js %>" data-toggle="tab"><%= js.name %></a></li>
<% end %> <% end %>
</ul> </ul>
</li> </li>
<li><a href="#images" data-toggle="tab"><%= t('design.images') %></a></li> <li><a href="#images" data-toggle="tab"><%= t(:images) %></a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">

View File

@ -1,70 +0,0 @@
<div class="attributes_block <%= @class %>">
<h2><%= t("#{@attribute_type}") %></h2>
<div class="info_input">
<table border="0" cellspacing="0" cellpadding="0">
<thead class="list_head">
<tr>
<td><%= t(:key) %></td>
<% @site_valid_locales.each do |locale| %>
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
<% end %>
</tr>
</thead>
<tbody>
<tr class="list_item">
<td><%= is_new ? (f.text_field :key, {:style => "width:150px"}) : @attribute.key %></td>
<%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %>
<td><%= f.text_field locale, :style => "width:150px", :value => (@attribute.title_translations[locale] rescue nil) %></td>
<% end %>
<% end %>
</tr>
</tbody>
</table>
</div>
</div>
<div class="attributes_block <%= @class %>">
<h2>Attributes</h2>
<div class="info_input">
<table id='attributes' border="0" cellspacing="0" cellpadding="0">
<thead class="list_head">
<tr>
<td><%= t('admin.key') %></td>
<td><%= t('admin.cross_lang') %></td>
<% @site_valid_locales.each do |locale| %>
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
<% end %>
<td><%= t(:type)%></td>
<td>&nbsp;</td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="6">
<%= hidden_field_tag 'attribute_field_count', @attribute.attribute_fields.count %>
<a href="#" class="add"><%= t(:add) %></a>
</td>
</tr>
</tfoot>
<tbody>
<% @attribute.attribute_fields.each do |attribute_field| %>
<%= render :partial => 'attribute_field', :object => attribute_field, :locals => {:f => f} %>
<% end %>
</tbody>
</table>
</div>
</div>
<% content_for :page_specific_javascript do %>
<%= javascript_include_tag "attribute_form" %>
<script>
$('.attributes_block a.add').live('click', function(){
var new_id = $(this).prev().attr('value');
var old_id = new RegExp("new_attribute_fields", "g");
$(this).prev().attr('value', parseInt(new_id) + 1);
$('#attributes').append(("<%= escape_javascript(add_attribute 'admin/attributes/attribute_field', f, :attribute_fields) %>").replace(old_id, new_id));
});
</script>
<% end %>

View File

@ -1,7 +1,7 @@
<% form_for :link, :url => admin_link_path(@item), :html => { :method => :delete } do |f| %> <% form_for :link, :url => admin_link_path(@item), :html => { :method => :delete } do |f| %>
<h2><%= t('sure?') %></h2> <h2><%= t('sure?') %></h2>
<p> <p>
<%= submit_tag t(:delete) %> <%= submit_tag t(:delete_) %>
<%= link_back %> <%= link_back %>
</p> </p>
<% end %> <% end %>

View File

@ -22,7 +22,7 @@
<divl> <divl>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal"><%= t("modal.close") %></a> <a href="#" class="btn" data-dismiss="modal"><%= t(:close) %></a>
</div> </div>
<div> <div>
<script type="text/javascript" src="/static/kernel.js"></script> <script type="text/javascript" src="/static/kernel.js"></script>

View File

@ -24,7 +24,7 @@
<td class="action"> <td class="action">
<%= link_to t(:show), admin_object_auth_path(object_auth), :class => 'show' %> <%= link_to t(:show), admin_object_auth_path(object_auth), :class => 'show' %>
<%= link_to t(:edit), edit_admin_object_auth_path(object_auth), :class => 'edit' %> <%= link_to t(:edit), edit_admin_object_auth_path(object_auth), :class => 'edit' %>
<%= link_to t(:delete), admin_object_auth_path(object_auth), :class => 'delete', :confirm => t('sure?'), :method => :delete %> <%= link_to t(:delete_), admin_object_auth_path(object_auth), :class => 'delete', :confirm => t('sure?'), :method => :delete %>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -22,7 +22,7 @@
<divl> <divl>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal"><%= t("modal.close") %></a> <a href="#" class="btn" data-dismiss="modal"><%= t(:close) %></a>
</div> </div>
<div> <div>
<script type="text/javascript" src="/static/kernel.js"></script> <script type="text/javascript" src="/static/kernel.js"></script>

View File

@ -1,7 +1,7 @@
<% form_for :page, :url => admin_page_path(@page), :html => { :method => :delete } do |f| %> <% form_for :page, :url => admin_page_path(@page), :html => { :method => :delete } do |f| %>
<h2><%= t('sure?') %></h2> <h2><%= t('sure?') %></h2>
<p> <p>
<%= submit_tag t(:delete) %> <%= submit_tag t(:delete_) %>
<%= link_back %> <%= link_back %>
</p> </p>
<% end %> <% end %>

View File

@ -10,7 +10,7 @@
<div class="module-nav-view"> <div class="module-nav-view">
<ul class="nav nav-pills"> <ul class="nav nav-pills">
<%= content_tag :li, :class=>(params[:show_plugin_profile].nil? ? "active" : nil) do %> <%= content_tag :li, :class=>(params[:show_plugin_profile].nil? ? "active" : nil) do %>
<%= link_to t("admin.new_admin.users.all_plugin_summary")%> <%= link_to t(:all_plugin_summary)%>
<% end -%> <% end -%>
<% @plugins.each do |plugin| %> <% @plugins.each do |plugin| %>
<%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin.name ? "active" : nil) do %> <%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin.name ? "active" : nil) do %>

View File

@ -1,5 +1,5 @@
<div class="main2"> <div class="main2">
<h1><%= t('list.puchase') %></h1> <h1><%= t('list.purchase') %></h1>
<table> <table>
<thead> <thead>
<tr> <tr>

View File

@ -1,3 +0,0 @@
<%= f.fields_for :attribute_fields, attribute_field do |f| %>
<%= render :partial => 'admin/attributes/attribute_field', :object => attribute_field, :locals => {:f => f} %>
<% end %>

View File

@ -1,52 +0,0 @@
<div class="attributes_block <%= @class %>">
<h2><%= t("#{@attribute_type}") %></h2>
<hr>
<div class="info_input">
<table border="0" cellspacing="0" cellpadding="0">
<thead class="list_head">
<tr>
<td><%= t(:key) %></td>
<% @site_valid_locales.each do |locale| %>
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
<% end %>
</tr>
</thead>
<tbody>
<tr class="list_item">
<td><%= is_new ? (f.text_field :key, {:style => "width:150px"}) : @attribute.key %></td>
<%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %>
<td><%= f.text_field locale, :style => "width:150px", :value => (@attribute.title_translations[locale] rescue nil) %></td>
<% end %>
<% end %>
</tr>
</tbody>
</table>
</div>
</div>
<div id='sub_roles' class="attributes_block <%= @class %>">
<h2>Sub roles</h2>
<hr>
<% @attribute.sub_roles.each_with_index do |sub_role, i| %>
<%= render :partial => 'form_sub', :object => sub_role, :locals => {:f => f, :i => i} %>
<% end %>
</div>
</div>
<div id='add_sub_role'>
<%= hidden_field_tag 'attribute_field_count', @attribute.sub_roles.count %>
<a href="#" class="add"><%= t(:add) %></a>
</div>
<% content_for :page_specific_javascript do %>
<%= javascript_include_tag "attribute_form" %>
<script>
$('#add_sub_role a.add').live('click', function(){
var new_id = $(this).prev().attr('value');
var old_id = new RegExp("new_sub_roles", "g");
$(this).prev().attr('value', parseInt(new_id) + 1);
$('#sub_roles').append(("<%= escape_javascript(add_attribute 'admin/roles/sub_role', f, :sub_roles) %>").replace(old_id, new_id));
});
</script>
<% end %>

View File

@ -1,3 +0,0 @@
<%= f.fields_for :sub_roles, form_sub do |f| %>
<%= render :partial => 'sub_role', :object => form_sub, :locals => {:f => f, :i => i} %>
<% end %>

View File

@ -1,69 +0,0 @@
<div class="info_input">
<table border="0" cellspacing="0" cellpadding="0">
<thead class="list_head">
<tr>
<td><%= t(:key) %></td>
<% @site_valid_locales.each do |locale| %>
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
<% end %>
</tr>
</thead>
<tbody>
<tr class="list_item">
<td><%= sub_role.new_record? ? (f.text_field :key, {:style => "width:150px"}) : sub_role.key %></td>
<%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %>
<td><%= f.text_field locale, :style => "width:150px", :value => (sub_role.title_translations[locale] rescue nil) %></td>
<% end %>
<% end %>
</tr>
</tbody>
</table>
<div class="group">
<h2>Attributes</h2>
<div class="info_input">
<table class="sub_role_attributes" border="0" cellspacing="0" cellpadding="0">
<thead class="list_head">
<tr>
<td><%= t(:key) %></td>
<td><%= t(:multilingual) %></td>
<% @site_valid_locales.each do |locale| %>
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
<% end %>
<td><%= t(:type)%></td>
<td>&nbsp;</td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="6">
<div id='add_attribute'>
<%= hidden_field_tag 'attribute_field_count', sub_role.attribute_fields.count %>
<a href="#" class="add"><%= t(:add) %></a>
<%= hidden_field_tag 'sub_role_temp_id', (i rescue 'new_sub_roles') %>
</div>
</td>
</tr>
</tfoot>
<tbody>
<% sub_role.attribute_fields.each do |attribute_field| %>
<%= render :partial => 'attribute_field', :object => attribute_field, :locals => {:f => f} %>
<% end %>
</tbody>
</table>
</div>
</div>
</div>
<% content_for :page_specific_javascript do %>
<script>
$('#add_attribute a.add').live('click', function(){
var new_parent_id = $(this).next().attr('value');
var old_parent_id = new RegExp("new_sub_roles", "g");
var new_id = $(this).prev().attr('value');
var old_id = new RegExp("new_attribute_fields", "g");
$(this).prev().attr('value', parseInt(new_id) + 1);
$(this).parents('table').append(("<%= escape_javascript(add_attribute 'admin/attributes/attribute_field', f, :attribute_fields) %>").replace(old_id, new_id).replace(old_parent_id, new_parent_id));
});
</script>
<% end unless !sub_role.new_record? %>

View File

@ -8,6 +8,6 @@
</div> </div>
<div class="action"> <div class="action">
<%= link_to t(:edit), edit_admin_tag_path(tag), :remote => true %> <%= link_to t(:edit), edit_admin_tag_path(tag), :remote => true %>
<%= link_to t(:delete), admin_tag_path(tag), :confirm => t('sure?'), :method => :delete, :remote => true %> <%= link_to t(:delete_), admin_tag_path(tag), :confirm => t('sure?'), :method => :delete, :remote => true %>
</div> </div>
</div> </div>

View File

@ -1,40 +0,0 @@
<div id="person" class="clear">
<% if @user.avatar? %>
<%= image_tag(@user.avatar.thumb.url) %>
<% else %>
<%= image_tag "person.png" %>
<% end %>
<%= file_field_tag 'file' %>
<%= hidden_field_tag :avatar_cache %>
<label>
<span><%= t(:email) %></span>
<%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t(:email)};}", :value => (@user.email.blank? ? t(:email) : @user.email), :class => 'user_mail' %>
</label>
<label>
<%= f.check_box :admin %>
<span><%= t(:admin) %></span>
</label>
<label>
<span><%= t(:role) %></span>
<%= f.select :role_id, @roles.sort_by{|role| role.key }.collect {|role| [ role.title, role.id ]}, :selected => (@user.role_id || Role.get_role_from_key('student')) %>
</label>
</div>
<%= render :partial => 'info', :collection => @infos, :locals => {:f => f} %>
<div id='roles'>
<% @roles.each do |role| %>
<div id="<%= role.id %>_block" class="attributes_block <%= @class %>" <%= raw(' style="display: none;"') unless ((@user.role.id.eql?(role.id) rescue nil) || (role.key.eql?('student') && @user.new_record?)) %>>
<h2><%= role.title %></h2>
<hr class="<#%= @user.role.key %>_block">
<%= render :partial => 'sub_role_selector', :locals => {:f => f, :role => role} %>
<%= render :partial => 'sub_role', :collection => role.sub_roles, :locals => {:f => f, :role => role} %>
</div>
<% end -%>
</div>
<% content_for :page_specific_javascript do %>
<%= javascript_include_tag "user_form" %>
<% end -%>

View File

@ -1,40 +0,0 @@
<div id="basic_block" class="attributes_block <%= @class %>">
<h2><%= info.title %></h2>
<hr>
<div class="info_input">
<table border="0" cellspacing="0" cellpadding="0">
<thead class="list_head">
<tr>
<td><%= t(:key) %></td>
<% @site_valid_locales.each do |locale| %>
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
<% end %>
</tr>
</thead>
<tbody>
<% info.get_enabled_attribute_fields.each do |attr| %>
<%= f.fields_for :attribute_values, @user.get_value_from_field_id(attr.id) do |f| %>
<tr class="list_item">
<td><%= attr.title %></td>
<% if attr["locale"] && attr["markup"] == 'text_field' %>
<% @site_valid_locales.each do |locale| %>
<td><%= f.text_field locale %></td>
<% end %>
<% else %>
<td colspan=<%= @site_valid_locales.size %>>
<% if attr["markup"] == "text_field" %>
<%= f.text_field :non_locale %>
<% elsif attr["markup"] == "select" %>
<%= f.select :non_locale, options_for_select(attr["options"], value['non_locale']) %>
<% end -%>
</td>
<% end -%>
<%= f.hidden_field :attribute_field_id, :value => attr.id %>
<%= f.hidden_field :key, :value => attr.key %>
</tr>
<% end %>
<% end %>
</tbody>
</table>
</div>
</div>

View File

@ -1,26 +0,0 @@
<div class="info_input">
<table border="0" cellspacing="0" cellpadding="0">
<thead class="list_head">
<td><%= t(:key) %></td>
<% @site_valid_locales.each do |locale| %>
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
<% end %>
</thead>
<tbody>
<% show_attribute.get_enabled_attribute_fields.each do |attr| %>
<tr class="list_item">
<td><%= attr.title %></td>
<% @site_valid_locales.each do |locale| %>
<td>
<% if attr["locale"] && attr["markup"] == 'text_field' %>
<%= show_attribute(@user, attr.id, locale) %>
<% else %>
<%= show_attribute(@user, attr.id) %>
<% end %>
</td>
<% end %>
</tr>
<% end %>
</tbody>
</table>
</div>

View File

@ -1,4 +0,0 @@
<div id="sub_role_<%= show_sub_role.id %>" class="group">
<h2><%= show_sub_role.title %></h2>
<%= render :partial => 'show_attribute', :object => show_sub_role %>
</div>

View File

@ -1,11 +0,0 @@
<div id="search">
<input id="user_search" name="user[username]" size="30" type="text" />
</div>
<div class="member_setup <%= @class %>">
<h1><%= t(:setup_member) %></h1>
<ul class="list">
<li class="set_1"><%= link_to content_tag(:span, t('list.user')), admin_users_path %></li>
<li class="set_2"><%= link_to content_tag(:span, t('list.role')), admin_roles_path %></li>
<li class="set_3"><%= link_to content_tag(:span, t('list.info')), admin_infos_path %></li>
</ul>
</div>

View File

@ -1,39 +0,0 @@
<div id="sub_role_<%= sub_role.id %>" class="group" <%= raw(' style="display: none;"') unless @user.sub_role_ids.include?(sub_role.id) %>>
<h2><%= sub_role.title %></h2>
<div class="info_input">
<table border="0" cellspacing="0" cellpadding="0">
<thead class="list_head">
<tr>
<td><%= t(:key) %></td>
<% @site_valid_locales.each do |locale| %>
<td><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></td>
<% end %>
</tr>
</thead>
<tbody>
<% sub_role.get_enabled_attribute_fields.each do |attr| %>
<%= f.fields_for :attribute_values, @user.get_value_from_field_id(attr.id) do |f| %>
<tr class="list_item">
<td><%= attr.title %></td>
<% if attr["locale"] && attr["markup"] == 'text_field' %>
<% @site_valid_locales.each do |locale| %>
<td><%= f.text_field locale %></td>
<% end %>
<% else %>
<td colspan=<%= @site_valid_locales.size %>>
<% if attr["markup"] == "text_field" %>
<%= f.text_field :non_locale %>
<% elsif attr["markup"] == "select" %>
<%= f.select :non_locale, options_for_select(attr["options"], value['non_locale']) %>
<% end -%>
</td>
<% end -%>
<%= f.hidden_field :attribute_field_id, :value => attr.id %>
<%= f.hidden_field :key, :value => attr.key %>
</tr>
<% end %>
<% end %>
</tbody>
</table>
</div>
</div>

View File

@ -1,4 +0,0 @@
<% role.sub_roles.each do |sub_role| %>
<%= f.label sub_role.title, :for => "check_sub_role_#{sub_role.id}", :class => 'sub_role_select' %>
<%= check_box_tag "user[sub_role_ids][]", sub_role.id, @user.sub_role_ids.include?(sub_role.id), :id => "check_sub_role_#{sub_role.id}", :class => 'sub_role_select' %>
<% end %>

View File

@ -1,14 +0,0 @@
<% content_for :secondary do %>
<%= render 'side_bar' %>
<% end %>
<div id="profile" class="clear">
<%= form_for @user, :url => admin_user_path(@user), :html => { :multipart => true } do |f| %>
<%= f.error_messages %>
<%= render :partial => 'form', :locals => { :f => f } %>
<div class="button_bar">
<%= link_back %>
<%= link_to t('update'), "#", :onclick=>"$('#edit_user_#{@user.id}').submit()" %>
</div>
<% end -%>
</div>

View File

@ -1,42 +0,0 @@
<% content_for :secondary do %>
<%= render 'side_bar' %>
<% end %>
<div class="main_list clear">
<%= flash_messages %>
<div class="button_bar up">
<%= link_to t('new.user'), new_admin_user_path, :class => 'new' %>
</div>
<table>
<thead>
<tr>
<td class="roles"><%= t(:role) %></td>
<td class="name"><%= t(:name) %></td>
<td class="email"><%= t(:email) %></td>
<td class="admin"><%= t(:admin) %></td>
<td class="action"><%= t(:action) %></td>
</tr>
</thead>
<tbody>
<% @users.each do |user| %>
<tr class="have">
<td class="roles <%= user.role.key.downcase rescue nil %>"><%= user.role.title rescue nil %></td>
<td class="name"><%= user.name ? user.name : 'bob' %></td>
<td class="email"><%= user.email %></td>
<td class="admin"><%= user.admin ? t(:yes_) : t(:no_) %></td>
<td class="action">
<%= link_to t(:show), admin_user_path(user), :class => 'show' %>
<%= link_to t(:edit), edit_admin_user_path(user), :class => 'edit' %>
<%= link_to t(:delete), admin_user_path(user), :class => 'delete', :confirm => t('sure?'), :method => :delete %>
</td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<% end %>
</tbody>
</table>
<div class="button_bar">
<%= link_to t('new.user'), new_admin_user_path, :class => 'new' %>
</div>
</div>

View File

@ -1,19 +0,0 @@
<% content_for :secondary do %>
<%= render 'side_bar' %>
<% end %>
<div id="profile" class="clear">
<%= form_for @user, :url => admin_users_path, :html => { :multipart => true } do |f| %>
<%= f.error_messages %>
<%= render :partial => 'form', :locals => { :f => f } %>
<div class="button_bar">
<%= link_back %>
<%= link_to t('create'), "#", :onclick=>"$('#new_user').submit()" %>
</div>
<% end -%>
</div>

View File

@ -1,33 +0,0 @@
<% content_for :secondary do %>
<%= render 'side_bar' %>
<% end %>
<div id="profile" class="clear">
<div id="person">
<% if @user.avatar? %>
<%= image_tag(@user.avatar.thumb.url) %>
<% else %>
<%= image_tag "person.png" %>
<% end %>
<label><span><%= @user.email %></span></label>
</div>
<% @infos.each do |a| %>
<div id="basic_block" class="roles_block <%= @class %>">
<h2><%= a.title %></h2>
<hr>
<%= render :partial => 'show_attribute', :object => a %>
</div>
<% end -%>
<div id="basic_block" class="roles_block <%= @class %>">
<h2><%= @user.role.title %></h2>
<hr class="<%= @user.role.key %>_block">
<%= render :partial => 'show_sub_role', :collection => @user.sub_roles %>
</div>
<div class="button_bar">
<%= link_to t(:edit), edit_admin_user_path(@user) %>
<%= link_back %>
</div>
</div>

View File

@ -1,8 +1,8 @@
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
<li><a href="#"><%= t("admin.new_admin.action.edit")%> </a></li> <li><a href="#"><%= t(:edit)%> </a></li>
<li class="dropdown"> <li class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle"><%= t("admin.new_admin.action.quick_edit")%><b class="caret"></b></a> <a href="#" data-toggle="dropdown" class="dropdown-toggle"><%= t(:quick_edit)%><b class="caret"></b></a>
<ul class="dropdown-menu" id="menu1"> <ul class="dropdown-menu" id="menu1">
<li><a href="#"># TODO:Basic</a></li> <li><a href="#"># TODO:Basic</a></li>
<li><a href="#"># TODO:Picture</a></li> <li><a href="#"># TODO:Picture</a></li>
@ -11,6 +11,6 @@
<li><a href="#"># TODO:File</a></li> <li><a href="#"># TODO:File</a></li>
</ul> </ul>
</li> </li>
<li><a href="#"><%= t("admin.new_admin.action.delete")%></a></li> <li><a href="#"><%= t(:delete_)%></a></li>
</ul> </ul>
</div> </div>

View File

@ -1,25 +1,25 @@
<div class="subnav"> <div class="subnav">
<div class="btn-group pull-right view-mode"> <div class="btn-group pull-right view-mode">
<form action="" method="get"> <form action="" method="get">
<button class="btn <%= "active" if params[:at].blank? %>"><i class="icon-align-justify"></i> <%= t("admin.new_admin.show_mode.index")%></button> <button class="btn <%= "active" if params[:at].blank? %>"><i class="icon-align-justify"></i> <%= t("show_mode.index")%></button>
<button name="at" value="summary" class="btn <%= "active" if params[:at] == "summary" %>"><i class="icon-th-list"></i> <%= t("admin.new_admin.show_mode.summary")%></button> <button name="at" value="summary" class="btn <%= "active" if params[:at] == "summary" %>"><i class="icon-th-list"></i> <%= t("show_mode.summary")%></button>
<button name="at" value="thumbnail" class="btn <%= "active" if params[:at] == "thumbnail" %>"><i class="icon-th-large"></i> <%= t("admin.new_admin.show_mode.thumbnail")%></button> <button name="at" value="thumbnail" class="btn <%= "active" if params[:at] == "thumbnail" %>"><i class="icon-th-large"></i> <%= t("show_mode.thumbnail")%></button>
</form> </form>
</div> </div>
<ul class="nav nav-pills filter"> <ul class="nav nav-pills filter">
<li class="accordion-group"> <li class="accordion-group">
<div class="accordion-heading"> <div class="accordion-heading">
<a href="#collapse-status" data-toggle="collapse" data-parent=".filters" class="accordion-toggle"><%= t("admin.new_admin.table_header.status")%> <b class="web-symbol"></b></a> <a href="#collapse-status" data-toggle="collapse" data-parent=".filters" class="accordion-toggle"><%= t(:status)%> <b class="web-symbol"></b></a>
</div> </div>
</li> </li>
<li class="accordion-group"> <li class="accordion-group">
<div class="accordion-heading"> <div class="accordion-heading">
<a href="#collapse-category" data-toggle="collapse" data-parent=".filters" class="accordion-toggle"><%= t("admin.new_admin.table_header.category")%> <b class="web-symbol"></b></a> <a href="#collapse-category" data-toggle="collapse" data-parent=".filters" class="accordion-toggle"><%= t(:category)%> <b class="web-symbol"></b></a>
</div> </div>
</li> </li>
<li class="accordion-group"> <li class="accordion-group">
<div class="accordion-heading"> <div class="accordion-heading">
<a href="#collapse-tags" data-toggle="collapse" data-parent=".filters" class="accordion-toggle"><%= t("admin.new_admin.table_header.tags")%> <b class="web-symbol"></b></a> <a href="#collapse-tags" data-toggle="collapse" data-parent=".filters" class="accordion-toggle"><%= t(:tags)%> <b class="web-symbol"></b></a>
</div> </div>
</li> </li>
</ul> </ul>
@ -32,7 +32,7 @@
<a href="#" class="btn">Distinguished</a> <a href="#" class="btn">Distinguished</a>
</div> </div>
<div class="filter-clear"> <div class="filter-clear">
<a href="#" class="btn"><i class="icons-brush-large"></i><%= t("admin.new_admin.table_header.clear_filter")%></a> <a href="#" class="btn"><i class="icons-brush-large"></i><%= t(:clear)%></a>
</div> </div>
</div> </div>
<div class="accordion-body collapse" id="collapse-category"> <div class="accordion-body collapse" id="collapse-category">
@ -42,7 +42,7 @@
<% end -%> <% end -%>
</div> </div>
<div class="filter-clear"> <div class="filter-clear">
<a href="#" class="btn"><i class="icons-brush-large"></i><%= t("admin.new_admin.table_header.clear_filter")%></a> <a href="#" class="btn"><i class="icons-brush-large"></i><%= t(:clear)%></a>
</div> </div>
</div> </div>
<div class="accordion-body collapse" id="collapse-tags"> <div class="accordion-body collapse" id="collapse-tags">
@ -52,7 +52,7 @@
<% end -%> <% end -%>
</div> </div>
<div class="filter-clear"> <div class="filter-clear">
<a href="#" class="btn"><i class="icons-brush-large"></i><%= t("admin.new_admin.table_header.clear_filter")%></a> <a href="#" class="btn"><i class="icons-brush-large"></i><%= t(:clear)%></a>
</div> </div>
</div> </div>
<% if params[:at].blank? #header for index%> <% if params[:at].blank? #header for index%>
@ -66,11 +66,11 @@
<a href class="list-remove"><i class="icon-minus-sign"></i></a> <a href class="list-remove"><i class="icon-minus-sign"></i></a>
<%end%> <%end%>
</th> </th>
<th id="sort-roles" class="sort span3"><%= t("admin.new_admin.attributes.roles")%><b class="web-symbol"></b></th> <th id="sort-roles" class="sort span3"><%= t(:roles)%><b class="web-symbol"></b></th>
<th id="sort-name" class="sort span1-2 select active"><%= t("admin.new_admin.attributes.name")%><b class="web-symbol"></b></th> <th id="sort-name" class="sort span1-2 select active"><%= t(:name)%><b class="web-symbol"></b></th>
<th id="sort-email" class="sort span2"><%= t("admin.new_admin.attributes.publications")%><b class="web-symbol"></b></th> <th id="sort-email" class="sort span2"><%= t(:publications)%><b class="web-symbol"></b></th>
<th id="sort-admin" class="sort span2"><%= t("admin.new_admin.attributes.courses")%><b class="web-symbol"></b></th> <th id="sort-admin" class="sort span2"><%= t(:courses)%><b class="web-symbol"></b></th>
<th id="sort-admin" class="sort span2"><%= t("admin.new_admin.attributes.followers")%><b class="web-symbol"></b></th> <th id="sort-admin" class="sort span2"><%= t(:followers)%><b class="web-symbol"></b></th>
</tr> </tr>
</thead> </thead>
</table> </table>

View File

@ -1,7 +1,7 @@
<div class="form-actions form-fixed pagination-right"> <div class="form-actions form-fixed pagination-right">
<% if is_admin? %> <% if is_admin? %>
<%= link_to(new_admin_users_new_interface_path,:class=> "btn btn-primary pull-right") do%> <%= link_to(new_admin_users_new_interface_path,:class=> "btn btn-primary pull-right") do%>
<i class="icon-plus icon-white"></i><%= t("admin.new_admin.action.add")%> <i class="icon-plus icon-white"></i><%= t(:add)%>
<% end -%> <% end -%>
<%end -%> <%end -%>
<div class="paginationFixed" id="user_pagination"> <div class="paginationFixed" id="user_pagination">

View File

@ -8,7 +8,7 @@
<% sub_role_disable = @user.sub_roles.include?(sub_role) ? false : true %> <% sub_role_disable = @user.sub_roles.include?(sub_role) ? false : true %>
<%#= hidden_field_tag("[user][new_attribute_values][sub_role][disable][#{sub_role.id}]",sub_role_disable)%> <%#= hidden_field_tag("[user][new_attribute_values][sub_role][disable][#{sub_role.id}]",sub_role_disable)%>
<legend> <legend>
<button for=<%=@form_index%> class="onoff pull-right <%= sub_role_disable ? 'disabled' : '' %> ">ON</button><%= sub_role.title %> <button for=<%=@form_index%> class="onoff pull-right <%= sub_role_disable ? 'disabled' : '' %> "><%= t(:on_upcase) %></button><%= sub_role.title %>
<%= hidden_field_tag("user[disable_sub_role][id][#{sub_role.id}]",sub_role_disable,:for=>@form_index,:class=>"subrole_disable_field",:value=>sub_role_disable)%> <%= hidden_field_tag("user[disable_sub_role][id][#{sub_role.id}]",sub_role_disable,:for=>@form_index,:class=>"subrole_disable_field",:value=>sub_role_disable)%>
</legend> </legend>
<div class="controls-block <%= sub_role_disable ? 'hide' : '' %>" > <div class="controls-block <%= sub_role_disable ? 'hide' : '' %>" >

View File

@ -1,16 +1,16 @@
<%= content_tag :li, :class => active_for_controllers('users_new_interface') do -%> <%= content_tag :li, :class => active_for_controllers('users_new_interface') do -%>
<%= link_to content_tag(:i, nil, :class => 'icons-member')+ content_tag(:span, t('admin.new_admin.user')), admin_users_new_interface_index_path %> <%= link_to content_tag(:i, nil, :class => 'icons-member')+ content_tag(:span, t(:member)), admin_users_new_interface_index_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('users_new_interface')) do -%> <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('users_new_interface')) do -%>
<%= content_tag :li, link_to((t('admin.new_admin.side_bar.all_user') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, admin_users_new_interface_index_path), :class => active_for_action('users_new_interface', 'index') %> <%= content_tag :li, link_to((t(:all_member) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, admin_users_new_interface_index_path), :class => active_for_action('users_new_interface', 'index') %>
<%= content_tag :li, link_to((t('admin.new_admin.side_bar.add_user') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, new_admin_users_new_interface_path), :class => active_for_action('users_new_interface', 'new') %> <%= content_tag :li, link_to((t(:add_member) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, new_admin_users_new_interface_path), :class => active_for_action('users_new_interface', 'new') %>
<%= content_tag :li, link_to((t('admin.new_admin.side_bar.user_roles') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_infos_path ), :class => active_for_action('users_new_interfacexx', 'index') %> <%= content_tag :li, link_to((t(:roles) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_infos_path ), :class => active_for_action('users_new_interfacexx', 'index') %>
<%= content_tag :li, link_to((t('admin.new_admin.side_bar.user_info') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, admin_roles_path), :class => active_for_action('users_new_interfacexx', 'index') %> <%= content_tag :li, link_to((t(:info) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, admin_roles_path), :class => active_for_action('users_new_interfacexx', 'index') %>
<% end -%> <% end -%>
<% end -%> <% end -%>
<%= content_tag :li, :class => active_for_controllers('plugins') do -%> <%= content_tag :li, :class => active_for_controllers('plugins') do -%>
<%= link_to content_tag(:i, nil, :class => 'icons-pie')+ content_tag(:span, t('admin.plugins')), admin_plugins_path %> <%= link_to content_tag(:i, nil, :class => 'icons-pie')+ content_tag(:span, t(:plugins)), admin_plugins_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('plugins')) do -%> <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('plugins')) do -%>
<%= content_tag :li, link_to((t('admin.all_plugins') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, admin_plugins_path), :class => active_for_action('users_new_interface', 'index') %> <%= content_tag :li, link_to((t(:all_plugins) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, admin_plugins_path), :class => active_for_action('users_new_interface', 'index') %>
<% end -%> <% end -%>
<% end -%> <% end -%>

View File

@ -7,12 +7,12 @@
<%= file_field_tag 'file' %> <%= file_field_tag 'file' %>
<%= hidden_field_tag :avatar_cache %> <%= hidden_field_tag :avatar_cache %>
<label> <label>
<span><%= t('admin.email') %></span> <span><%= t(:email) %></span>
<%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t('admin.email')};}", :value => (@user.email.blank? ? t('admin.email') : @user.email), :class => 'user_mail' %> <%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t(:email)};}", :value => (@user.email.blank? ? t(:email) : @user.email), :class => 'user_mail' %>
</label> </label>
<label> <label>
<%= f.check_box :admin %> <%= f.check_box :admin %>
<span><%= t('admin.admin') %></span> <span><%= t(:admin) %></span>
</label> </label>
<label> <label>
@ -21,7 +21,7 @@
<tr> <tr>
<%=render :partial=>"temp_profile",:collection=>Info.all%> <%=render :partial=>"temp_profile",:collection=>Info.all%>
<tr> <tr>
<tr> <span><%= t('admin.role') %></span> </tr> <tr> <span><%= t(:role) %></span> </tr>
<tr> <tr>
<%= render :partial=>"temp_sub_role_from",:collection=>@user.sub_roles %> <%= render :partial=>"temp_sub_role_from",:collection=>@user.sub_roles %>
</tr> </tr>

View File

@ -1,11 +1,11 @@
<%#= devise_error_messages! %> <%#= devise_error_messages! %>
<div class="map-block back"> <div class="map-block back">
<h4><span><%=t('admin.user_new_interface.sys_basic_form')%></span></h4> <h4><span><%=t(:sys_basic_form)%></span></h4>
<div class="form-horizontal"> <div class="form-horizontal">
<div class="control-group"> <div class="control-group">
<%= f.label t('admin.user_new_interface.email'),:class=>"control-label" %><br /> <%= f.label t(:email),:class=>"control-label" %><br />
<div class="controls"> <div class="controls">
<%= f.email_field :email %> <%= f.email_field :email %>
</div> </div>
@ -14,7 +14,7 @@
<div class="form-horizontal"> <div class="form-horizontal">
<div class="control-group"> <div class="control-group">
<%= f.label t('admin.user_new_interface.password'),:class=>"control-label" %> <%= f.label t(:password),:class=>"control-label" %>
<div class="controls"> <div class="controls">
<%= f.password_field :password %> <%= f.password_field :password %>
</div> </div>
@ -23,7 +23,7 @@
<div class="form-horizontal"> <div class="form-horizontal">
<div class="control-group"> <div class="control-group">
<%= f.label t('admin.user_new_interface.password_confirmation'),:class=>"control-label" %> <%= f.label t(:password_confirmation),:class=>"control-label" %>
<div class="controls"> <div class="controls">
<%= f.password_field :password_confirmation %> <%= f.password_field :password_confirmation %>
</div> </div>

View File

@ -1,5 +1,5 @@
<% content_for :side_bar do %> <% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('admin.user'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %> <%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:member), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %> <% end %>
<% content_for :page_specific_css do -%> <% content_for :page_specific_css do -%>

View File

@ -1,5 +1,5 @@
<% content_for :side_bar do %> <% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('admin.user'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %> <%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:member), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %> <% end %>
<%= render :partial => "js_and_css"%> <%= render :partial => "js_and_css"%>

View File

@ -1,5 +1,5 @@
<% content_for :side_bar do %> <% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('admin.user'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %> <%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:member), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %> <% end %>
<%= render :partial => "js_and_css"%> <%= render :partial => "js_and_css"%>

View File

@ -1,5 +1,5 @@
<% content_for :side_bar do %> <% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('admin.user'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %> <%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:member), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %> <% end %>
<%= render :partial => "js_and_css"%> <%= render :partial => "js_and_css"%>

View File

@ -1,5 +1,5 @@
<% content_for :side_bar do %> <% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('admin.user'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %> <%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:member), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %> <% end %>
<% content_for :page_specific_css do -%> <% content_for :page_specific_css do -%>

View File

@ -1,5 +1,5 @@
<% content_for :side_bar do %> <% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('admin.user'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %> <%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:member), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %> <% end %>
<div class="member-plugin"> <div class="member-plugin">

View File

@ -1,5 +1,5 @@
<% content_for :side_bar do %> <% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('admin.user'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %> <%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:member), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %> <% end %>
<%= render :partial => "js_and_css"%> <%= render :partial => "js_and_css"%>
@ -11,7 +11,7 @@
<div class="module-nav-view"> <div class="module-nav-view">
<ul class="nav nav-pills"> <ul class="nav nav-pills">
<%= content_tag :li, :class=>(params[:show_plugin_profile].nil? ? "active" : nil) do %> <%= content_tag :li, :class=>(params[:show_plugin_profile].nil? ? "active" : nil) do %>
<%= link_to t("admin.new_admin.users.all_plugin_summary")%> <%= link_to t(:all_plugin_summary)%>
<% end -%> <% end -%>
<% @plugins.each do |plugin| %> <% @plugins.each do |plugin| %>
<%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin.name ? "active" : nil) do %> <%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin.name ? "active" : nil) do %>
@ -38,7 +38,7 @@
<p class="user-mail"> <p class="user-mail">
<%= @user.email %> <%= @user.email %>
</p> </p>
<%= link_to("<i class='icon-pencil'></i>#{t('admin.edit')}".html_safe,edit_admin_users_new_interface_path(@user),:class=>"btn btn-small" ) if is_admin?%> <%= link_to("<i class='icon-pencil'></i>#{t(:edit)}".html_safe,edit_admin_users_new_interface_path(@user),:class=>"btn btn-small" ) if is_admin?%>
</div> </div>
<div class="user-roles my_scroll"> <div class="user-roles my_scroll">
<div class="scrollbar"> <div class="scrollbar">

View File

@ -1,5 +1,5 @@
<% content_for :side_bar do %> <% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('admin.user'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %> <%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:member), :link_url => admin_site_site_info_path(@site), :icon => 'icons-group', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %> <% end %>
<% content_for :page_specific_css do -%> <% content_for :page_specific_css do -%>

View File

@ -1,5 +1,5 @@
<a class="brand dropdown-toggle" data-toggle="dropdown" href="#">Orbit</a> <a class="brand dropdown-toggle" data-toggle="dropdown" href="#">Orbit</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><%= link_to content_tag(:i, nil, :class => 'icons-gauge') + t(:dashboard_), admin_dashboards_path %></li> <li><%= link_to content_tag(:i, nil, :class => 'icons-gauge') + t(:dashboard_), admin_dashboards_path %></li>
<li><%= link_to content_tag(:i, nil, :class => 'icons-group') + t('admin.new_admin.user'), admin_users_new_interface_index_path %></li> <li><%= link_to content_tag(:i, nil, :class => 'icons-group') + t(:member), admin_users_new_interface_index_path %></li>
</ul> </ul>

View File

@ -1,7 +1,7 @@
<a class="brand dropdown-toggle" data-toggle="dropdown" href="#">Orbit</a> <a class="brand dropdown-toggle" data-toggle="dropdown" href="#">Orbit</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><%= link_to content_tag(:i, nil, :class => 'icons-gauge') + t(:dashboard_), admin_dashboards_path %></li> <li><%= link_to content_tag(:i, nil, :class => 'icons-gauge') + t(:dashboard_), admin_dashboards_path %></li>
<li><%= link_to content_tag(:i, nil, :class => 'icons-group') + t('admin.new_admin.user'), admin_users_new_interface_index_path %></li> <li><%= link_to content_tag(:i, nil, :class => 'icons-group') + t(:member), admin_users_new_interface_index_path %></li>
<li><%#= link_to content_tag(:i, nil, :class => 'icons-content') + t(:content) %></li> <li><%#= link_to content_tag(:i, nil, :class => 'icons-content') + t(:content) %></li>
<li><%#= link_to content_tag(:i, nil, :class => 'icons-member') + t(:member), admin_users_path %></li> <li><%#= link_to content_tag(:i, nil, :class => 'icons-member') + t(:member), admin_users_path %></li>

View File

@ -20,6 +20,7 @@
<%= content_tag :li, (link_to t(:_locale, :locale => locale), add_locale(remove_locale((referer rescue request.fullpath)), locale)), :class => (I18n.locale.eql?(locale.to_sym) ? 'active' : nil) %> <%= content_tag :li, (link_to t(:_locale, :locale => locale), add_locale(remove_locale((referer rescue request.fullpath)), locale)), :class => (I18n.locale.eql?(locale.to_sym) ? 'active' : nil) %>
<% end %> <% end %>
</ul> </ul>
</li>
<li class="search clear" title="<%= t :search_google %>"> <li class="search clear" title="<%= t :search_google %>">
<a class="orbit-bar-search" href="#" data-icon="search"></a> <a class="orbit-bar-search" href="#" data-icon="search"></a>
<form class="navbar-search" method="get" action="http://www.google.com/custom"> <form class="navbar-search" method="get" action="http://www.google.com/custom">

View File

@ -1,6 +1,6 @@
<div id="main-sidebar" class="my_scroll"> <div id="main-sidebar" class="my_scroll">
<div id="position"> <div id="position">
<%= link_to content_tag(:i, nil, :class => (local_assigns.has_key? :icon) ? icon : 'icons-gauge') + content_tag(:span, (local_assigns.has_key? :link_name) ? link_name : t('admin.dashboard')), (local_assigns.has_key? :link_url) ? link_url : admin_dashboards_path %> <%= link_to content_tag(:i, nil, :class => (local_assigns.has_key? :icon) ? icon : 'icons-gauge') + content_tag(:span, (local_assigns.has_key? :link_name) ? link_name : t(:dashboard)), (local_assigns.has_key? :link_url) ? link_url : admin_dashboards_path %>
<div id="collapse-menu"><i class="icon-chevron-right"></i><i class="icon-chevron-right"></i></div> <div id="collapse-menu"><i class="icon-chevron-right"></i><i class="icon-chevron-right"></i></div>
</div> </div>
<div class="scrollbar"> <div class="scrollbar">

View File

@ -1,46 +1,33 @@
<%#= content_tag :li, :class => active_for_controllers('purchases') do -%>
<%#= link_to content_tag(:i, nil, :class => 'icons-purchase') + t('admin.purchase'), admin_purchases_path %>
<%# end -%>
<% content_for :page_specific_javascript do %> <% content_for :page_specific_javascript do %>
<%= javascript_include_tag "/static/kernel.js" %> <%= javascript_include_tag "/static/kernel.js" %>
<% end %> <% end %>
<%= content_tag :li, :class => (active_for_controllers('bulletins', '/panel/announcement/back_end/tags', 'bulletin_categorys', 'approvals') || active_for_app_auth('Announcement') || active_for_ob_auths_object("BulletinCategory") ) do -%> <%= content_tag :li, :class => (active_for_controllers('bulletins', '/panel/announcement/back_end/tags', 'bulletin_categorys', 'approvals') || active_for_app_auth('Announcement') || active_for_ob_auths_object("BulletinCategory") ) do -%>
<%= link_to content_tag(:i, nil, :class => 'icons-megaphone') + content_tag(:span, t('admin.announcement')), panel_announcement_back_end_bulletins_path %> <%= link_to content_tag(:i, nil, :class => 'icons-megaphone') + content_tag(:span, t(:announcement)), panel_announcement_back_end_bulletins_path %>
<%= content_tag :ul, :class => ("nav nav-list " + (visible_for_controllers('bulletins', '/panel/announcement/back_end/tags', 'bulletin_categorys', 'approvals')||active_for_ob_auths_object("BulletinCategory"))) do -%> <%= content_tag :ul, :class => ("nav nav-list " + (visible_for_controllers('bulletins', '/panel/announcement/back_end/tags', 'bulletin_categorys', 'approvals')||active_for_ob_auths_object("BulletinCategory"))) do -%>
<%= content_tag :li, link_to((t('announcement.all_articles') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_announcement_back_end_bulletins_path), :class => active_for_action('bulletins', 'index')if (is_manager? rescue nil) %> <%= content_tag :li, link_to((t('announcement.all_articles') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_announcement_back_end_bulletins_path), :class => active_for_action('bulletins', 'index')if (is_manager? rescue nil) %>
<%= content_tag :li, link_to((t('announcement.add_new') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, new_panel_announcement_back_end_bulletin_path), :class => active_for_action('bulletins', 'new') if (is_manager? rescue nil) %> <%= content_tag :li, link_to((t('announcement.add_new') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, new_panel_announcement_back_end_bulletin_path), :class => active_for_action('bulletins', 'new') if (is_manager? rescue nil) %>
<%= content_tag :li, link_to((t('announcement.categories') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_announcement_back_end_bulletin_categorys_path), :class =>( active_for_action('bulletin_categorys', 'index') || active_for_ob_auths_object("BulletinCategory") )if (is_manager? rescue nil) %> <%= content_tag :li, link_to((t('announcement.categories') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_announcement_back_end_bulletin_categorys_path), :class =>( active_for_action('bulletin_categorys', 'index') || active_for_ob_auths_object("BulletinCategory") )if (is_manager? rescue nil) %>
<%= content_tag :li, link_to((t('announcement.tags') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_announcement_back_end_tags_path), :class => active_for_action('/panel/announcement/back_end/tags', 'index')if (is_manager? rescue nil) %> <%= content_tag :li, link_to((t('announcement.tags') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_announcement_back_end_tags_path), :class => active_for_action('/panel/announcement/back_end/tags', 'index')if (is_manager? rescue nil) %>
<%= content_tag :li, link_to((t('announcement.bulletin.approval_setting') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_announcement_back_end_approval_setting_path), :class => active_for_action('approvals', 'setting') if (is_manager? rescue nil) %> <%= content_tag :li, link_to((t('announcement.bulletin.approval_setting') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_announcement_back_end_approval_setting_path), :class => active_for_action('approvals', 'setting') if (is_manager? rescue nil) %>
<%= content_tag :li, link_to((t('admin.module.authorization') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "announcement"}))), :class => active_for_app_auth('Announcement') if (is_admin? rescue nil) %> <%= content_tag :li, link_to((t(:module_authorization) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "announcement"}))), :class => active_for_app_auth('Announcement') if (is_admin? rescue nil) %>
<% end -%> <% end -%>
<% end -%> <% end -%>
<%#= content_tag :li, :class => active_for_controllers('users') do -%>
<%#= link_to content_tag(:i, nil, :class => 'icons-member') + t('admin.member'), admin_users_path %>
<%# end -%>
<%= content_tag :li, :class => active_for_controllers('page_contexts') || active_for_app_auth('page_content') || active_for_ob_auths_object("PageContext") do -%> <%= content_tag :li, :class => active_for_controllers('page_contexts') || active_for_app_auth('page_content') || active_for_ob_auths_object("PageContext") do -%>
<%= link_to content_tag(:i, nil, :class => 'icons-page') + content_tag(:span, t('admin.page')), panel_page_content_back_end_page_contexts_path %> <%= link_to content_tag(:i, nil, :class => 'icons-page') + content_tag(:span, t(:page)), panel_page_content_back_end_page_contexts_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('page_contexts')) do -%> <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('page_contexts')) do -%>
<%#= content_tag :li, link_to(t('admin.all_articles'), panel_page_content_back_end_page_contexts_path), :class => active_for_action('page_context', 'index') %> <%= content_tag :li, link_to((t(:module_authorization) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "page_content"}))), :class => active_for_app_auth('page_content') if (is_admin? rescue nil) %>
<%= content_tag :li, link_to((t('admin.module.authorization') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "page_content"}))), :class => active_for_app_auth('page_content') if (is_admin? rescue nil) %>
<% end -%> <% end -%>
<% end -%> <% end -%>
<%= content_tag :li, :class => active_for_controllers('ad_banners', 'ad_images') ||active_for_ob_auths_object("AdBanner") ||active_for_app_auth('ad_banner') do -%> <%= content_tag :li, :class => active_for_controllers('ad_banners', 'ad_images') ||active_for_ob_auths_object("AdBanner") ||active_for_app_auth('ad_banner') do -%>
<%= link_to content_tag(:i, nil, :class => 'icons-landscape') + content_tag(:span, t('admin.ad_banner')), admin_ad_banners_path %> <%= link_to content_tag(:i, nil, :class => 'icons-landscape') + content_tag(:span, t(:ad_banner)), admin_ad_banners_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('ad_banners', 'ad_images') ) do -%> <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('ad_banners', 'ad_images') ) do -%>
<%#= content_tag :li, link_to(t('admin.ad.all_banners'), admin_ad_banners_path), :class => active_for_action('ad_banners', 'index') %> <%= content_tag :li, link_to((t(:module_authorization) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "ad_banner"}))), :class => active_for_app_auth('ad_banners') if (is_admin? rescue nil) %>
<%#= content_tag :li, link_to(t('admin.ad.new_banner'), new_admin_ad_banner_path), :class => active_for_action('ad_banners', 'new') %>
<%#= content_tag :li, link_to(t('admin.ad.new_image'), new_ad_image_admin_ad_banners_path), :class => active_for_action('ad_images', 'new') %>
<%= content_tag :li, link_to((t('admin.module.authorization') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "ad_banner"}))), :class => active_for_app_auth('ad_banners') if (is_admin? rescue nil) %>
<% end -%> <% end -%>
<% end %> <% end %>
@ -48,9 +35,9 @@
<%= content_tag :li, :class => active_for_controllers('web_links', '/panel/web_resource/back_end/tags', 'web_link_categorys') || active_for_app_auth('web_resource') || active_for_ob_auths_object("WebLinkCategory") do -%> <%= content_tag :li, :class => active_for_controllers('web_links', '/panel/web_resource/back_end/tags', 'web_link_categorys') || active_for_app_auth('web_resource') || active_for_ob_auths_object("WebLinkCategory") do -%>
<%= link_to content_tag(:i, nil, :class => 'icons-link') + content_tag(:span, t('admin.link')), panel_web_resource_back_end_web_links_path %> <%= link_to content_tag(:i, nil, :class => 'icons-link') + content_tag(:span, t('admin.link')), panel_web_resource_back_end_web_links_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('web_links', '/panel/web_resource/back_end/tags', 'web_link_categorys')) do -%> <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('web_links', '/panel/web_resource/back_end/tags', 'web_link_categorys')) do -%>
<%= content_tag :li, link_to((t('admin.all_articles') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_web_resource_back_end_web_links_path), :class => active_for_action('web_links', 'index')if (is_manager? rescue nil) %> <%= content_tag :li, link_to((t(:list) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_web_resource_back_end_web_links_path), :class => active_for_action('web_links', 'index')if (is_manager? rescue nil) %>
<%= content_tag :li, link_to((t('announcement.add_new') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, new_panel_web_resource_back_end_web_link_path), :class => active_for_action('web_links', 'new') if (is_manager? rescue nil)%> <%= content_tag :li, link_to((t('new.link') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, new_panel_web_resource_back_end_web_link_path), :class => active_for_action('web_links', 'new') if (is_manager? rescue nil)%>
<%= content_tag :li, link_to((t('announcement.categories') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_web_resource_back_end_web_link_categorys_path), :class => (active_for_action('web_link_categorys', 'index') || active_for_ob_auths_object("WebLinkCategory")) if (is_manager? rescue nil)%> <%= content_tag :li, link_to((t(:categories) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_web_resource_back_end_web_link_categorys_path), :class => (active_for_action('web_link_categorys', 'index') || active_for_ob_auths_object("WebLinkCategory")) if (is_manager? rescue nil)%>
<%= content_tag :li, link_to((t('announcement.tags') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_web_resource_back_end_tags_path), :class => active_for_action('/panel/web_resource/back_end/tags', 'index') if (is_manager? rescue nil)%> <%= content_tag :li, link_to((t('announcement.tags') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_web_resource_back_end_tags_path), :class => active_for_action('/panel/web_resource/back_end/tags', 'index') if (is_manager? rescue nil)%>
<%= content_tag :li, link_to((t('admin.module.authorization') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "web_resource"}))), :class => active_for_app_auth('web_resource') if (is_admin? rescue nil) %> <%= content_tag :li, link_to((t('admin.module.authorization') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "web_resource"}))), :class => active_for_app_auth('web_resource') if (is_admin? rescue nil) %>
<% end -%> <% end -%>
@ -59,9 +46,6 @@
<%= content_tag :li, :class => active_for_controllers('albums','album_images','gallery_categories','/panel/gallery/back_end/tags') || active_for_app_auth("gallery") do -%> <%= content_tag :li, :class => active_for_controllers('albums','album_images','gallery_categories','/panel/gallery/back_end/tags') || active_for_app_auth("gallery") do -%>
<%= link_to content_tag(:i, nil, :class => 'icons-pictures') + content_tag(:span, t('admin.orbit_gallery')), panel_gallery_back_end_albums_path %> <%= link_to content_tag(:i, nil, :class => 'icons-pictures') + content_tag(:span, t('admin.orbit_gallery')), panel_gallery_back_end_albums_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('albums') ) do -%> <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('albums') ) do -%>
<%#= content_tag :li, link_to(t('admin.ad.all_banners'), admin_ad_banners_path), :class => active_for_action('ad_banners', 'index') %>
<%#= content_tag :li, link_to(t('admin.ad.new_banner'), new_admin_ad_banner_path), :class => active_for_action('ad_banners', 'new') %>
<%#= content_tag :li, link_to(t('admin.ad.new_image'), new_ad_image_admin_ad_banners_path), :class => active_for_action('ad_images', 'new') %>
<%= content_tag(:li, link_to((t('gallery.categories') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_gallery_back_end_gallery_categories_path), :class => active_for_action('gallery_categories','index') )if (is_manager? rescue nil)%> <%= content_tag(:li, link_to((t('gallery.categories') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_gallery_back_end_gallery_categories_path), :class => active_for_action('gallery_categories','index') )if (is_manager? rescue nil)%>
<%= content_tag :li, link_to((t('gallery.tags') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_gallery_back_end_tags_path), :class => active_for_action('/panel/gallery/back_end/tags', 'index') if (is_manager? rescue nil) %> <%= content_tag :li, link_to((t('gallery.tags') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, panel_gallery_back_end_tags_path), :class => active_for_action('/panel/gallery/back_end/tags', 'index') if (is_manager? rescue nil) %>
<%= content_tag :li, link_to((t('admin.module.authorization') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "gallery"}))), :class => active_for_app_auth('gallery') if (is_admin? rescue nil) %> <%= content_tag :li, link_to((t('admin.module.authorization') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "gallery"}))), :class => active_for_app_auth('gallery') if (is_admin? rescue nil) %>
@ -81,23 +65,13 @@
<%= content_tag :li, :class => active_for_controllers('cals','panel/calendar/back_end/tags') || active_for_app_auth("calendar") do -%> <%= content_tag :li, :class => active_for_controllers('cals','panel/calendar/back_end/tags') || active_for_app_auth("calendar") do -%>
<%= link_to content_tag(:i, nil, :class => 'icons-calendar') + content_tag(:span, t('admin.calendar')), panel_calendar_back_end_cals_path %> <%= link_to content_tag(:i, nil, :class => 'icons-calendar') + content_tag(:span, t('admin.calendar')), panel_calendar_back_end_cals_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('cals','calendar_categories') ) do -%> <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('cals','calendar_categories') ) do -%>
<%#= content_tag :li, link_to(t('admin.ad.all_banners'), admin_ad_banners_path), :class => active_for_action('ad_banners', 'index') %>
<%#= content_tag :li, link_to(t('admin.ad.new_banner'), new_admin_ad_banner_path), :class => active_for_action('ad_banners', 'new') %>
<%#= content_tag :li, link_to(t('admin.ad.new_image'), new_ad_image_admin_ad_banners_path), :class => active_for_action('ad_images', 'new') %>
<%= content_tag :li, link_to((t('admin.calendars') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, new_panel_calendar_back_end_cal_path), :class => active_for_action('cals','new') if (is_manager? rescue nil)%> <%= content_tag :li, link_to((t('admin.calendars') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, new_panel_calendar_back_end_cal_path), :class => active_for_action('cals','new') if (is_manager? rescue nil)%>
<%= content_tag :li, link_to(t('admin.tags'), panel_calendar_back_end_tags_path), :class => active_for_action('/panel/calendar/back_end/tags', 'index')if (is_manager? rescue nil) %> <%= content_tag :li, link_to(t('admin.tags'), panel_calendar_back_end_tags_path), :class => active_for_action('/panel/calendar/back_end/tags', 'index')if (is_manager? rescue nil) %>
<%#= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "gallery"}))), :class => active_for_app_auth('gallery') if (is_admin? rescue nil) %>
<% end -%> <% end -%>
<% end %> <% end %>
<%= content_tag :li, :class => active_for_controllers('locations') || active_for_app_auth("gprs") do -%> <%= content_tag :li, :class => active_for_controllers('locations') || active_for_app_auth("gprs") do -%>
<%= link_to content_tag(:i, nil, :class => 'icons-location') + content_tag(:span, t('admin.gprs')), panel_gprs_back_end_locations_path %> <%= link_to content_tag(:i, nil, :class => 'icons-location') + content_tag(:span, t('admin.gprs')), panel_gprs_back_end_locations_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('locations') ) do -%> <%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('locations') ) do -%>
<%#= content_tag :li, link_to(t('admin.ad.all_banners'), admin_ad_banners_path), :class => active_for_action('ad_banners', 'index') %>
<%#= content_tag :li, link_to(t('admin.ad.new_banner'), new_admin_ad_banner_path), :class => active_for_action('ad_banners', 'new') %>
<%#= content_tag :li, link_to(t('admin.ad.new_image'), new_ad_image_admin_ad_banners_path), :class => active_for_action('ad_images', 'new') %>
<%#= content_tag :li, link_to((t('calendar.calendars') + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, new_panel_calendar_back_end_cal_path), :class => active_for_action('cals','new') %>
<%#= content_tag :li, link_to(t('gallery.tags'), panel_gallery_back_end_tags_path), :class => active_for_action('/panel/gallery/back_end/tags', 'index') %>
<%#= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "gallery"}))), :class => active_for_app_auth('gallery') if (is_admin? rescue nil) %>
<% end -%> <% end -%>
<% end %> <% end %>

View File

@ -1,33 +0,0 @@
<div id="seminar_p">
<div id="content">
<div id="header" class="hh3">
<div class="dtitle w2 hh3 hp">
<span class="thmtxth">Seminar</span>
</div>
<div id="search_app" class="hfn w2 hh2 hp thmc3">
<input type="text" class="ini_input form" value="Search" id="searchbox" />
<input type="submit" class="ini_input submit thmc1" value="Submit"/>
</div>
</div>
<div id="holder">
<div id="panel_l" class="ph">
<div class="s_menu sm_v">
<ul id='setting_left_nav'>
<li><a href="list" class="hh2 w2 hp active thmc1 thmtxt" onclick='return false;'>List</a></li>
<li><a href="addseminar" class="admtxt hh2 w2 hp" onclick='return false;'>Add/Edit</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Books</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Co-Authors</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Tags &amp; Keywords</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Analysis</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Import</a></li>
<li><a href="" class="admtxt hh2 w2 hp" onclick='return false;'>Export</a></li>
</ul>
</div>
</div>
<div id="panel_r" class="ph pw admbg hp">
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>

View File

@ -56,7 +56,7 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true"><%=t("modal.close")%></button> <button class="btn" data-dismiss="modal" aria-hidden="true"><%=t(:close)%></button>
<button href="" class="btn btn-primary bt-save" data-dismiss="modal" aria-hidden="true"><%=t("modal.save_and_close")%></button> <button href="" class="btn btn-primary bt-save" data-dismiss="modal" aria-hidden="true"><%=t("modal.save_and_close")%></button>
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
<button class="onoff pull-right <%= attribute_field.disabled ? 'disabled' : ''%>">ON</button> <button class="onoff pull-right <%= attribute_field.disabled ? 'disabled' : ''%>">ON</button>
<%= hidden_field "info[attribute_fields][#{attribute_field_counter}]","disabled",:value=>attribute_field.disabled,:class=>"attribute_field_disabled"%> <%= hidden_field "info[attribute_fields][#{attribute_field_counter}]","disabled",:value=>attribute_field.disabled,:class=>"attribute_field_disabled"%>
<%= hidden_field "info[attribute_fields][#{attribute_field_counter}]","to_delete",:value=>false,:class=>"attribute_field_to_delete"%> <%= hidden_field "info[attribute_fields][#{attribute_field_counter}]","to_delete",:value=>false,:class=>"attribute_field_to_delete"%>
<a class="btn btn-small pull-right btn-danger remove_attribute" href="#"><i class="icon-trash icon-large"></i> <%= t("delete")%></a> <a class="btn btn-small pull-right btn-danger remove_attribute" href="#"><i class="icon-trash icon-large"></i> <%= t(:delete_)%></a>
<div class="clear"> <div class="clear">
<div class="control-group pull-left"> <div class="control-group pull-left">
<label class="control-label" for="key"><%= t("admin.key") %></label> <label class="control-label" for="key"><%= t("admin.key") %></label>
@ -13,9 +13,9 @@
</div> </div>
</div> </div>
</div> </div>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>attribute_field.title_translations,:class_ext=>"pull-left",:label_ext=>t("admin.infos.name"),:field_name=>"info[attribute_fields][#{attribute_field_counter}][title_translations]"}%> <%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>attribute_field.title_translations,:class_ext=>"pull-left",:label_ext=>t(:name),:field_name=>"info[attribute_fields][#{attribute_field_counter}][title_translations]"}%>
<div class="control-group pull-left"> <div class="control-group pull-left">
<label class="control-label" for=""><%= t("admin.infos.type")%></label> <label class="control-label" for=""><%= t(:type)%></label>
<div class="controls"> <div class="controls">
<%#= select_tag "info[attribute_fields][#{attribute_field_counter}][markup]" do %> <%#= select_tag "info[attribute_fields][#{attribute_field_counter}][markup]" do %>
<select class="dataType" name=<%= "info[attribute_fields][#{attribute_field_counter}][markup]"%>> <select class="dataType" name=<%= "info[attribute_fields][#{attribute_field_counter}][markup]"%>>
@ -30,15 +30,15 @@
<div class="<%= attribute_field.disabled ? 'hide' : ''%>"> <div class="<%= attribute_field.disabled ? 'hide' : ''%>">
<%= content_tag :div,:class=>show_type_panel(attribute_field,"typeA") do%> <%= content_tag :div,:class=>show_type_panel(attribute_field,"typeA") do%>
<div class="control-group"> <div class="control-group">
<label class="control-label"><%= t("admin.infos.options")%></label> <label class="control-label"><%= t(:options)%></label>
<div class="controls"> <div class="controls">
<label class="checkbox inline"> <label class="checkbox inline">
<%= check_box_tag("info[attribute_fields][#{attribute_field_counter}][typeA][cross_lang]","true",attribute_field["typeA"]["cross_lang"]) %> <%= check_box_tag("info[attribute_fields][#{attribute_field_counter}][typeA][cross_lang]","true",attribute_field["typeA"]["cross_lang"]) %>
<%= t("admin.infos.cross_lang")%> <%= t(:cross_lang)%>
</label> </label>
<label class="checkbox inline"> <label class="checkbox inline">
<%= check_box_tag("info[attribute_fields][#{attribute_field_counter}][typeA][add_more]","true",attribute_field["typeA"]["add_more"]) %> <%= check_box_tag("info[attribute_fields][#{attribute_field_counter}][typeA][add_more]","true",attribute_field["typeA"]["add_more"]) %>
<%= t("admin.infos.add_more")%> <%= t(:add_more)%>
</label> </label>
</div> </div>
</div> </div>
@ -46,7 +46,7 @@
<% end %> <% end %>
<%= content_tag :div,:class=>show_type_panel(attribute_field,"typeB") do %> <%= content_tag :div,:class=>show_type_panel(attribute_field,"typeB") do %>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:label_ext=>t("admin.infos.initial"),:values=>attribute_field["typeB"]["initial"],:field_name=>"info[attribute_fields][#{attribute_field_counter}][typeB][initial]"}%> <%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:label_ext=>t(:initial),:values=>attribute_field["typeB"]["initial"],:field_name=>"info[attribute_fields][#{attribute_field_counter}][typeB][initial]"}%>
<% if attribute_field.self_defined_markup_options?%> <% if attribute_field.self_defined_markup_options?%>
<%= render :partial=>"shared/attribute_field/list_block",:locals=>{:values=>attribute_field["option_list"],:field_name=> "info[attribute_fields][#{attribute_field_counter}][attribute][role][statuses]"} %> <%= render :partial=>"shared/attribute_field/list_block",:locals=>{:values=>attribute_field["option_list"],:field_name=> "info[attribute_fields][#{attribute_field_counter}][attribute][role][statuses]"} %>
@ -57,41 +57,41 @@
<% end %> <% end %>
<%= content_tag :div,:class=>show_type_panel(attribute_field,"typeC") do %> <%= content_tag :div,:class=>show_type_panel(attribute_field,"typeC") do %>
<div class="control-group"> <div class="control-group">
<label class="control-label"><%= t("admin.infos.date.format")%></label> <label class="control-label"><%= t("date.format")%></label>
<div class="controls"> <div class="controls">
<%= select "info[attribute_fields][#{attribute_field_counter}][typeC]","format",Admin::AttributeValuesViewHelper::OPT,:class=>"dataType",:selected=>attribute_field["typeC"]["format"] %> <%= select "info[attribute_fields][#{attribute_field_counter}][typeC]","format",Admin::AttributeValuesViewHelper::OPT,:class=>"dataType",:selected=>attribute_field["typeC"]["format"] %>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label"><%= t("admin.infos.date.range")%></label> <label class="control-label"><%= t("date.range")%></label>
<div class="controls"> <div class="controls">
<label class="radio inline"> <label class="radio inline">
<%= radio_button("info[attribute_fields][#{attribute_field_counter}][typeC]", "is_range", "false",:checked => (!attribute_field.date_is_range? ? true : false)) %><%= t("admin.infos.not_range")%> <%= radio_button("info[attribute_fields][#{attribute_field_counter}][typeC]", "is_range", "false",:checked => (!attribute_field.date_is_range? ? true : false)) %><%= t(:yes_)%>
</label> </label>
<label class="radio inline"> <label class="radio inline">
<%= radio_button("info[attribute_fields][#{attribute_field_counter}][typeC]", "is_range", "true",:checked => (attribute_field.date_is_range? ? true : false)) %><%= t("admin.infos.is_range")%> <%= radio_button("info[attribute_fields][#{attribute_field_counter}][typeC]", "is_range", "true",:checked => (attribute_field.date_is_range? ? true : false)) %><%= t(:no_)%>
</label> </label>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label"><%= t("admin.infos.date.claendar")%></label> <label class="control-label"><%= t("date.calendar")%></label>
<div class="controls"> <div class="controls">
<label class="radio inline"> <label class="radio inline">
<%= radio_button("info[attribute_fields][#{attribute_field_counter}][typeC]", "claendar", "west_claendar",:checked =>(attribute_field["typeC"]["claendar"]== "west_claendar" ? true : false)) %><%= t("admin.infos.date.west_claendar")%> <%= radio_button("info[attribute_fields][#{attribute_field_counter}][typeC]", "calendar", "west_calendar",:checked =>(attribute_field["typeC"]["calendar"]== "west_calendar" ? true : false)) %><%= t("date.west_calendar")%>
</label> </label>
<label class="radio inline"> <label class="radio inline">
<%= radio_button("info[attribute_fields][#{attribute_field_counter}][typeC]", "claendar", "tw_claendar",:checked =>(attribute_field["typeC"]["claendar"]== "tw_claendar" ? true : false)) %><%= t("admin.infos.date.tw_claendar")%> <%= radio_button("info[attribute_fields][#{attribute_field_counter}][typeC]", "calendar", "tw_calendar",:checked =>(attribute_field["typeC"]["calendar"]== "tw_calendar" ? true : false)) %><%= t("date.tw_calendar")%>
</label> </label>
</div> </div>
</div> </div>
<% end %> <% end %>
<%= content_tag :div,:class=>show_type_panel(attribute_field,"typeD") do%> <%= content_tag :div,:class=>show_type_panel(attribute_field,"typeD") do%>
<div class="control-group"> <div class="control-group">
<label class="control-label"><%= t("admin.infos.options")%></label> <label class="control-label"><%= t(:options)%></label>
<div class="controls"> <div class="controls">
<label class="checkbox inline"> <label class="checkbox inline">
<%= check_box_tag("info[attribute_fields][#{attribute_field_counter}][typeD][cross_lang]","true",attribute_field["typeD"]["cross_lang"]) %> <%= check_box_tag("info[attribute_fields][#{attribute_field_counter}][typeD][cross_lang]","true",attribute_field["typeD"]["cross_lang"]) %>
<%= t("admin.infos.cross_lang")%> <%= t(:cross_lang)%>
</label> </label>
</div> </div>
</div> </div>

View File

@ -2,7 +2,7 @@
<div class="control-group"> <div class="control-group">
<%= hidden_field_tag "#{temp_field_name}[count]",((values.keys.collect{|t| t.to_i}.max rescue nil) || 0 ),:class=>"list_count"%> <%= hidden_field_tag "#{temp_field_name}[count]",((values.keys.collect{|t| t.to_i}.max rescue nil) || 0 ),:class=>"list_count"%>
<%= hidden_field_tag "#{temp_field_name}[name]",field_name,:class=>"field_name"%> <%= hidden_field_tag "#{temp_field_name}[name]",field_name,:class=>"field_name"%>
<label class="control-label" ><%= t("admin.infos.list")%></label> <label class="control-label" ><%= t(:list)%></label>
<div class="multipleInput"> <div class="multipleInput">
<%if values.blank? %> <%if values.blank? %>
<div class="controls"> <div class="controls">
@ -39,7 +39,7 @@
</div> </div>
<div class="controls"> <div class="controls">
<span class="help-block"> <span class="help-block">
<a href="#"><i class="icon-plus-sign"></i><%= t("admin.infos.add") %></a> <a href="#"><i class="icon-plus-sign"></i><%= t(:add) %></a>
</span> </span>
</div> </div>
</div> </div>

View File

@ -1,6 +1,6 @@
<% values ||=[]%> <% values ||=[]%>
<%= content_tag :div,:class=>"control-group language-swich #{class_ext rescue "" }" do%> <%= content_tag :div,:class=>"control-group language-swich #{class_ext rescue "" }" do%>
<label class="control-label" for=""><%= (defined? label_ext) ? label_ext : t("admin.infos.placeholder") %></label> <label class="control-label" for=""><%= (defined? label_ext) ? label_ext : t(:placeholder) %></label>
<div class="controls"> <div class="controls">
<div class="tabbable"> <div class="tabbable">
<div class="tab-content"> <div class="tab-content">

View File

@ -1,7 +1,7 @@
<div class="modal hide fade in banner-preview" id="<%= @preview_obj.id %>"> <div class="modal hide fade in banner-preview" id="<%= @preview_obj.id %>">
<div class="modal-header"> <div class="modal-header">
<a class="close" data-dismiss="modal">×</a> <a class="close" data-dismiss="modal">×</a>
<h3><%= t("modal.preview") %></h3> <h3><%= t(:preview) %></h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p class=""> <p class="">
@ -16,7 +16,7 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal"><%= t("modal.close") %></a> <a href="#" class="btn" data-dismiss="modal"><%= t(:close) %></a>
</div> </div>
<div> <div>
<script type="text/javascript" src="/static/kernel.js"></script> <script type="text/javascript" src="/static/kernel.js"></script>

View File

@ -13,28 +13,50 @@ en:
account_settings: Account settings account_settings: Account settings
action: Action action: Action
ad: ad:
chinese_1: 在套圖中出現次數 1次請輸入1
chinese_2: 輸入連結
chinese_3: 輸入標題
ab_fx: FX ab_fx: FX
add_link: Add a reference link
banner_best_size: Banner Best Size banner_best_size: Banner Best Size
best_size: Best size best_size: Best size
best_size_example: "Ex: 500px x 300px"
new_image: New image new_image: New image
not_showing: Not showing not_showing: Not showing
picture_list: Picture List picture_list: Picture List
sec_place_holder: Enter 3 if 3 sec sec_place_holder: Enter 3 if 3 sec
select_fx: Select the effect type
set_dates: Set the image to start and end dates
set_range: Set the range time
showing: Showing showing: Showing
success_destroy_ad_image: Image successfully destroyed success_destroy_ad_image: Image successfully destroyed
trans_unit_sec: sec trans_unit_sec: sec
transition_sec: Transition time transition_sec: Transition time
update_banner: Update Banner update_banner: Update Banner
upload_pictures: Upload pictures
widget_info_for_ad_image_size: "Best size with: %{best_size}" widget_info_for_ad_image_size: "Best size with: %{best_size}"
ad_banner: AD Banner ad_banner: AD Banner
add: Add add: Add
add_attribute_field: Add attribute field
add_image: Add image
add_item: Add item add_item: Add item
add_member: Add member
add_more: Add more
address_modal:
default_title: Address
street_address: Street address
city: City
county: County
zip: ZIP
country: Country
addthis_tools: addthis_tools:
add_to_bookmark: Add this to bookmark add_to_bookmark: Add this to bookmark
admin: Admin admin: Admin
all_content: All Content all_content: All Content
all_file: All File all_file: All File
all_member: All Member all_member: All Member
all_plugin_summary: All plugin summary
all_plugins: All plugins
always_display_title: Always displayed in the title bar always_display_title: Always displayed in the title bar
app_auth: app_auth:
list_setting_result: Authorization List list_setting_result: Authorization List
@ -52,6 +74,7 @@ en:
fail: Removal of sub-manager failed fail: Removal of sub-manager failed
success: Sub-manager successfully removed success: Sub-manager successfully removed
failed_no_user: Failed, no user failed_no_user: Failed, no user
operation_not_permitted: Operation not permitted
approval: approval:
not_pass: Not pass not_pass: Not pass
not_pass_reason: Not pass reason not_pass_reason: Not pass reason
@ -61,6 +84,7 @@ en:
user_list: Unit user_list: Unit
approval_: Approval approval_: Approval
asset: Asset asset: Asset
attributes: Attributes
auth: auth:
add_manager: Add Manager add_manager: Add Manager
add_sub_manager: Add SubManager add_sub_manager: Add SubManager
@ -74,6 +98,7 @@ en:
back: Back back: Back
basic: Basic basic: Basic
browse: Browse browse: Browse
built_in: Built-in
cancel: Cancel cancel: Cancel
cant_delete_self: You can not delete yourself. cant_delete_self: You can not delete yourself.
cant_empty_star: Cannot be empty (*) cant_empty_star: Cannot be empty (*)
@ -82,7 +107,9 @@ en:
category: Category category: Category
category_auth: Category Authorization category_auth: Category Authorization
clear: Clear clear: Clear
close: Close
content: Content content: Content
courses: Courses
create: create:
error: error:
link: Error when creating link. link: Error when creating link.
@ -90,11 +117,27 @@ en:
fail: Creation failed fail: Creation failed
success: success:
asset_category: Asset category was successfully created. asset_category: Asset category was successfully created.
co_author: Co-author was successfully created.
link: Link was successfully created. link: Link was successfully created.
page: Page was successfully created. page: Page was successfully created.
paper: Paper was successfully created.
user: User was successfully created. user: User was successfully created.
create_: Create create_: Create
cross_lang: 跨語言輸入
data: Data data: Data
date:
calendar: 紀年法
range: 本欄為時間區段
format: 格式
tw_calendar: 民國
minguo_calendar:
after: 民國
before: 民前
first_year: 民國元年
year:
month:
west_calendar: 西元
date_: Date
dashboard: dashboard:
bulletin: Announcement bulletin: Announcement
news_bulletin: News news_bulletin: News
@ -103,11 +146,15 @@ en:
dashboard_: Dashboard dashboard_: Dashboard
deadline: Deadline deadline: Deadline
default_css: Default CSS default_css: Default CSS
delete: Delete delete:
delete_file: Delete file file: Delete file
success:
paper: Paper was successfully deleted.
delete_: Delete
description: Description description: Description
desktop: Desktop desktop: Desktop
disable: Disable disable: Disable
disabled: Disabled
dots: ●●●●●● dots: ●●●●●●
download: Download download: Download
downloaded: Downloaded downloaded: Downloaded
@ -130,6 +177,7 @@ en:
upload: File upload upload: File upload
file_: File file_: File
file_type: File Type file_type: File Type
followers: Followers
forgot_password: Forgot your password? forgot_password: Forgot your password?
frequency: Frequency frequency: Frequency
help: Help help: Help
@ -140,10 +188,14 @@ en:
horizontal: Horizontal horizontal: Horizontal
hot: Hot hot: Hot
image: Image image: Image
images: Images
info: Information info: Information
initial: 起始值
intro: Introduction intro: Introduction
is_published: Is published is_published: Is published
item: Item item: Item
item_name: Item name
javascripts: Javascripts
key: Key key: Key
last_modified: Last modified last_modified: Last modified
layout: Layout layout: Layout
@ -166,6 +218,7 @@ en:
text_area: Text Area text_area: Text Area
radio_button: Radio button radio_button: Radio button
checkbox: Checkbox checkbox: Checkbox
locale: Locale
login: Login login: Login
logout: Logout logout: Logout
mail: mail:
@ -180,20 +233,21 @@ en:
user_name: User Name user_name: User Name
manager: Manager manager: Manager
manager: Manager manager: Manager
markup: Markup
markup_options: Markup options
markup_value: Markup value
me: Me me: Me
member: Member member: Member
menu_enabled_for: Menu enabled for menu_enabled_for: Menu enabled for
modal:
close: Close
preview: Preview
module: Module module: Module
module_authorization: Module Authorization module_authorization: Module Authorization
more_plus: more+ more_plus: more+
most_visited_page: Most Visited Page most_visited_page: Most Visited Page
multilingual: Multilingual multilingual: Multilingual
name: Name name: Name
nccu_c: need_home: You need a home page
nccu_ldap_uid: NCCU LDAP Account neutral_title: Neutral title
neutral_for: Neutral for
new: new:
asset: New asset asset: New asset
banner: New banner banner: New banner
@ -203,6 +257,7 @@ en:
user: New user user: New user
info: New user information info: New user information
role: New user role role: New user role
new_: New
news: News news: News
no_: "No" no_: "No"
no_deadline: No deadline no_deadline: No deadline
@ -222,40 +277,16 @@ en:
text: Text Area text: Text Area
passed: Approved passed: Approved
password: Password password: Password
# : <<<<<<< HEAD password_confirmation: Password Confirmation
pending: Pending pending: Pending
picture: Picture picture: Picture
placeholder: Placeholder
plugins: Plugins
postdate: Postdate postdate: Postdate
posted_by: Posted by posted_by: Posted by
preview: Preview preview: Preview
publications: Publications
purchase: Purchase purchase: Purchase
# : =======
register: Register
remember_me: Remember me
search_google: Search Google
show: Show
submit: Submit
sure?: Are you sure?
update: Update
update_failed: Update failed
view: View
view_count: View count
yes_: "Yes"
addthis_tools:
add_to_bookmark: Add this to bookmark
all_content: All Content
all_file: All File
all_member: All Member
content: Content
data: Data
file: File
file_type: File Type
hits: Hits
item: Item
member: Member
module: Module
most_visited_page: Most Visited Page
# : >>>>>>> various_bugs
quantity: Quantity quantity: Quantity
quick_edit: Quick edit quick_edit: Quick edit
recent_update: Recent Update recent_update: Recent Update
@ -276,9 +307,14 @@ en:
sitesearch: Google Site Search sitesearch: Google Site Search
too_many: "Search about ' %{search_word} 'resulted more than %{exceed_num} items maybe try to search with more specific terms?" too_many: "Search about ' %{search_word} 'resulted more than %{exceed_num} items maybe try to search with more specific terms?"
unit_get: "Listed items created by :%{unit_name} Found %{item_num} items" unit_get: "Listed items created by :%{unit_name} Found %{item_num} items"
search_nccu: Search NCCU search_: Search
search_google: Search Google
setup_member: Member setup setup_member: Member setup
show: Show show: Show
show_mode:
index: Index
summary: Summary
thumbnail: Thumbnail
site: site:
description: Site description description: Site description
description_help: '' description_help: ''
@ -298,6 +334,7 @@ en:
site_info: Site Info site_info: Site Info
sitemap: Sitemap sitemap: Sitemap
site_name: Site Name site_name: Site Name
size: Size
start: Start start: Start
start_date: Start date start_date: Start date
statistics: Statistics statistics: Statistics
@ -315,6 +352,7 @@ en:
module_page_lang_not_support: "We are sorry, this page is not available for English" module_page_lang_not_support: "We are sorry, this page is not available for English"
not_previewable: "Preview not support" not_previewable: "Preview not support"
preview_only_for_img: "Preview only supprt with file type: jpg, png, gif, bmp" preview_only_for_img: "Preview only supprt with file type: jpg, png, gif, bmp"
sys_basic_form: User system info
system_info: System information system_info: System information
tag_cloud: Tag cloud tag_cloud: Tag cloud
tags: Tags tags: Tags
@ -329,15 +367,18 @@ en:
traffic: Traffic traffic: Traffic
type: Type type: Type
unit_name: Unit name unit_name: Unit name
unzip_success: "App unzip procress is finished, please restart the server to apply effect"
up_to_date: Up-to-date up_to_date: Up-to-date
update: update:
error: error:
link: Error when updating link. link: Error when updating link.
fail: Update failed fail: Update failed
success: success:
co_author: Co-author was successfully updated.
content: Content was successfully updated. content: Content was successfully updated.
link: Link was successfully updated. link: Link was successfully updated.
page: Page was successfully updated. page: Page was successfully updated.
paper: Paper was successfully updated.
user: User was successfully updated. user: User was successfully updated.
success_: Successfully updated success_: Successfully updated
update_: Update update_: Update
@ -354,243 +395,3 @@ en:
visitors_this_year: This year's visitors visitors_this_year: This year's visitors
visitors_today: Today's visitors visitors_today: Today's visitors
yes_: "Yes" yes_: "Yes"
# : <<<<<<< HEAD
nccu:
date: Date
file: File
file_description: Description
file_name: Name
link_name: Name
picture: Picture
selected_file: File
# : =======
errors:
at_least_one: must at least have one value
# admin:
# access:
# denied:
# app:
# not_sub_manager: Access Denied for you are not SubManager for this app
# not_manager: Access Denied for you are not SubManager for this app
# not_authed_user: Access Denied for you are not User for this app
# not_admin: Access Denied for you are not Admin
# object: "Access Denied for you don't have permission for this object"
# action: Action
# ad_banner: AD Banner
# orbit_gallery: Gallery
# calendar: Calendar
# ad:
# sec_place_holder: Enter 3 if 3 sec
# ab_fx: FX
# all_banners: AdBanner list
# banner_best_size: Banner Best Size
# best_size: Best size
# new_banner: New banner
# new_image: New image
# showing: Showing
# not_showing: NotShowing
# picture_list: Picture List
# title: Title
# transition_sec: Transition time
# trans_unit_sec: sec
# update_banner: Update Banner
# widget_info_for_ad_image_size: "Best size with: %{best_size}"
# add: Add
# add_item: Add item
# add_language: Add language
# add_drop_down_item: +Add Menu Item
# admin: Admin
# action: Action
# all_articles: List
# always_display_title: Always displayed in the title bar
# announcement: Announcement
# asset: Asset
# assets:
# file: File
# album: Album
# video: Video
# book: Book
# attributes: Attributes
# author: Author
# calendar: Calendar
# gprs: GPS
# cant_delete_self: You can not delete yourself.
# cant_revoke_self_admin: You can not revoke your admin role yourself.
# category: Category
# choose_file: Choose a file...
# class: Class
# content: Content
# create_error_link: Error when creating link.
# create_error_page: Error when creating page.
# create_success_home: Homepage was successfully created.
# create_success_layout: Layout was successfully created.
# create_success_link: Link was successfully created.
# create_success_page: Page was successfully created.
# create_success_snippet: Snippet was successfully created.
# create_success_user: User was successfully created.
# data: Data
# dashboard: Dashboard
# delete_language: Delete language
# description: Description
# design: Template
# disable_language: Disable language
# editing_home: Editing homepage
# editing_layout: Editing layout
# editing_link: Editing link
# editing_page: Editing page
# editing_snippet: Editing snippet
# editing_info: Editing user information
# editing_role: Editing user role
# email: Email
# enable_language: Enable language
# enabled_for: Enabled for
# file_name: Filename
# file_size: File size
# file_upload: File upload
# format: Format
# home: Home
# id: ID
# info: Information
# intro: Introduction
# is_published: Is published
# item: Item
# key: Key
# keywords: Keywords
# language: Language
# layout: Layout
# layout_name: Layout name
# links: Links
# link: Links
# list_assets: Assets list
# list_designs: Designs list
# list_items: Items list
# list_puchases: Purchases list
# list_snippets: Snippets list
# list_users: Users list
# list_infos: User information list
# list_roles: User roles list
# mail_address: Address
# mail_port: Port
# mail_domain: Domain
# mail_authentication: Authentication
# mail_user_name: User Name
# mail_password: Password
# mail_tls: TLS
# mail_enable_starttls_auto: Enable Start TLS Auto
# member: Member
# menu_enabled_for: Menu enabled for
# module:
# authorization: Module Authorization
# move_down: Move down
# move_up: Move up
# multilingual: Multilingual
# my_avatar: My Avatar
# no_home_page: You don't have a homepage
# no_layout: You don't have a layout
# name: Name
# nccu: NCCU Custom
# nccu_c:
# nccu_ldap_uid: NCCU LDAP Account
# new_asset: New asset
# new_component: New component
# new_design: New design
# new_home: New homepage
# new_layout: New layout
# new_link: New link
# new_page: New page
# new_snippet: New snippet
# new_user: New user
# new_info: New user information
# new_role: New user role
# news: News
# non_multilingual: Non multilingual
# object_auth:
# list_title_of_users: %{auth_title} Auth List
# update_done: Update done,reulst showing in list
# update_failed: Update failed
# options: Options
# orig_upload_file: Original filename
# page: Page
# page_context:
# edit: Edit
# ob_auth:
# edit: Category authorization
# page_part_kinds:
# text: Text Area
# public_r_tag: System Widget
# module_widget: Plug-in Module Widget
# position: Position
# published?: Published?
# purchase: Purchase
# registered: Registered
# role: Role
# roles: Roles
# setup_member: Member setup
# setup_translations: Translations setup
# setup_designs: Designs setup
# site: Site
# site_description: Site description
# site_footer: Site footer
# site_settings: Site Setting
# site_sub_menu: Site sub-menu
# site_title: Site title
# super_pages: Super pages
# structure: Structure
# : >>>>>>> various_bugs
tags: Tags
url: URL
# : <<<<<<< HEAD
# : =======
user: User
user_new_interface:
sys_basic_form: User system info
password: Password
password_confirmation: Password Confirmation
email: User account
user_role:
auth:
all_member: All Member
manager: Manager
sub_mamanger: SubManager
by_role: By Role
by_sub_role: By SubRole
block_list: Block List
privilege_list: Privilege List
add_manager: Add Manager
add_sub_manager: Add SubManager
add_to_block_list: Add to block List
add_to_privilege_list: Add to privilege List
auth_by: -AuthBy %{user_display_name}
info: User information
panel: User panel
role: User role
dashboard:
bulletin: Announcement
news_bulletin: News
page_context: Page
web_link: Link
panel:
modal:
close: Close
preview: Preview
sys:
not_previewable: "Preview not support"
limit_of_upload_file_size: "Upload file must be less than: %{best_size}"
preview_only_for_img: "Preview only supprt with file type:jpg,png,gif,bmp"
can_not_display_due_to_no_context: "Can not display due to no context for English"
module_page_lang_not_support: "We are sorry, this page is not available for English"
search:
not_found: "NOT FOUND"
domains: Google Search Domains
site_search: Site Search
sitesearch: Google Site Search
site_setting_help: Please Enter the search argument for Google search.
result_get: "Searched about ' %{search_word} ' Found %{item_num} items"
too_many: "Search about ' %{search_word} 'resulted more than %{exceed_num} items maybe try to search with more specific terms?"
unit_get: "Listed items created by :%{unit_name} Found %{item_num} items"
# : >>>>>>> various_bugs

View File

@ -380,17 +380,17 @@ zh_tw:
is_range: is_range:
not_range: not_range:
date: date:
claendar: 紀年法 calendar: 紀年法
range: 本欄為時間區段 range: 本欄為時間區段
format: 格式 format: 格式
tw_claendar: 民國 tw_calendar: 民國
minguo_calendar: minguo_calendar:
after: 民國 after: 民國
before: 民前 before: 民前
first_year: 民國元年 first_year: 民國元年
year: year:
month: month:
west_claendar: 西元 west_calendar: 西元
access: access:
denied: denied:
app: app:

View File

@ -3,7 +3,7 @@
<div class="modal hide fade in banner-preview" id="bulletin-<%=bulletin.id%>"> <div class="modal hide fade in banner-preview" id="bulletin-<%=bulletin.id%>">
<div class="modal-header"> <div class="modal-header">
<a class="close" data-dismiss="modal">×</a> <a class="close" data-dismiss="modal">×</a>
<h3><%= t("modal.preview") %></h3> <h3><%= t(:preview) %></h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p class="bulletin_slideshow"> <p class="bulletin_slideshow">
@ -19,7 +19,7 @@
<div class="modal-footer"> <div class="modal-footer">
<%= form_for bulletin, :url => panel_announcement_back_end_bulletin_approve_path(bulletin),:method => :post, :html => {:class => 'clear'} do |f| %> <%= form_for bulletin, :url => panel_announcement_back_end_bulletin_approve_path(bulletin),:method => :post, :html => {:class => 'clear'} do |f| %>
<%= f.label :approval_stat, t('approval_stat') %> <%= f.label :approval_stat, t('approval.stat') %>
<%= content_tag :label,:class => "radio inline" do -%> <%= content_tag :label,:class => "radio inline" do -%>
<%= f.radio_button :is_checked, true , {:class => 'privacy'} %> <%= f.radio_button :is_checked, true , {:class => 'privacy'} %>
<%= t('approval.pass') %> <%= t('approval.pass') %>
@ -34,7 +34,7 @@
<%= f.submit t(:submit_approval),:class=>"btn"%> <%= f.submit t(:submit_approval),:class=>"btn"%>
<% end %> <% end %>
<a href="#" class="btn" data-dismiss="modal"><%= t("modal.close") %></a> <a href="#" class="btn" data-dismiss="modal"><%= t(:close) %></a>
</div> </div>
<div> <div>
<script type="text/javascript" src="/static/kernel.js"></script> <script type="text/javascript" src="/static/kernel.js"></script>

View File

@ -22,7 +22,7 @@
<divl> <divl>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal"><%= t("modal.close") %></a> <a href="#" class="btn" data-dismiss="modal"><%= t(:close) %></a>
</div> </div>
<div> <div>
<script type="text/javascript" src="/static/kernel.js"></script> <script type="text/javascript" src="/static/kernel.js"></script>

View File

@ -22,7 +22,7 @@
<divl> <divl>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal"><%= t("modal.close") %></a> <a href="#" class="btn" data-dismiss="modal"><%= t(:close) %></a>
</div> </div>
<div> <div>
<script type="text/javascript" src="/static/kernel.js"></script> <script type="text/javascript" src="/static/kernel.js"></script>

View File

@ -18,11 +18,4 @@
<% end %> <% end %>
<% end %> <% end %>
</div> </div>
<div id="widget-title">
<%= f.label :display %>
<%= f.radio_button :display, "List" %>List
<%= f.radio_button :display, "Picture" %>Picture
<br />顯示方式是設定在前台頁面時,資訊所呈現的樣式
</div>
</div> </div>

View File

@ -50,7 +50,7 @@
<% end -%> <% end -%>
<% if show_delete_link(bulletin) %> <% if show_delete_link(bulletin) %>
<li class="dropdown"><%= link_to t(:delete), panel_announcement_back_end_bulletin_path(bulletin), :confirm => t(:sure?), :method => :delete, :remote => true %></li> <li class="dropdown"><%= link_to t(:delete_), panel_announcement_back_end_bulletin_path(bulletin), :confirm => t(:sure?), :method => :delete, :remote => true %></li>
<% end %> <% end %>
<% if show_approval_link(bulletin) %> <% if show_approval_link(bulletin) %>
<li><%= link_to t(:approval_), panel_announcement_back_end_bulletin_approval_preview_path(bulletin),:class => 'preview_trigger' %></li><%#= #TODO add ancher so user can quick access into that part %> <li><%= link_to t(:approval_), panel_announcement_back_end_bulletin_approval_preview_path(bulletin),:class => 'preview_trigger' %></li><%#= #TODO add ancher so user can quick access into that part %>

View File

@ -4,7 +4,7 @@
<div class="modal-header"> <div class="modal-header">
<a class="close" data-dismiss="modal">×</a> <a class="close" data-dismiss="modal">×</a>
<h3><%= (@bulletin_file.new_record? ? 'Add File' : 'Edit File') %></h3> <h3><%= (@bulletin_file.new_record? ? t(:add) : t(:edit)) %></h3>
</div> </div>
<div class="modal-body form-horizontal"> <div class="modal-body form-horizontal">
<div class="control-group"> <div class="control-group">
@ -16,7 +16,7 @@
<%= f.fields_for :title_translations do |f| %> <%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %> <% @site_valid_locales.each do |locale| %>
<div class="control-group"> <div class="control-group">
<label for="file-<%= locale %>" class="control-label">Name <%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></label> <label for="file-<%= locale %>" class="control-label"><%= t(:name) %> <%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></label>
<div class="controls"> <div class="controls">
<%= f.text_field locale, :id => "file-#{locale}", :class => "input-xlarge", :value => (@bulletin_file.title_translations[locale] rescue nil) %> <%= f.text_field locale, :id => "file-#{locale}", :class => "input-xlarge", :value => (@bulletin_file.title_translations[locale] rescue nil) %>
</div> </div>
@ -27,7 +27,7 @@
<%= f.fields_for :description_translations do |f| %> <%= f.fields_for :description_translations do |f| %>
<% @site_valid_locales.each do |locale| %> <% @site_valid_locales.each do |locale| %>
<div class="control-group"> <div class="control-group">
<label for="file-<%= locale %>" class="control-label">Description <%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></label> <label for="file-<%= locale %>" class="control-label"><%= t(:description) %> <%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %></label>
<div class="controls"> <div class="controls">
<%= f.text_field locale, :id => "file-#{locale}", :class => "input-xlarge", :value => (@bulletin_file.description_translations[locale] rescue nil) %> <%= f.text_field locale, :id => "file-#{locale}", :class => "input-xlarge", :value => (@bulletin_file.description_translations[locale] rescue nil) %>
</div> </div>

View File

@ -4,11 +4,11 @@
<div class="modal-header"> <div class="modal-header">
<a class="close" data-dismiss="modal">×</a> <a class="close" data-dismiss="modal">×</a>
<h3><%= (@bulletin_link.new_record? ? 'Add Link' : 'Edit Link') %></h3> <h3><%= (@bulletin_link.new_record? ? t(:add) : t(:edit)) %></h3>
</div> </div>
<div class="modal-body form-horizontal"> <div class="modal-body form-horizontal">
<div class="control-group"> <div class="control-group">
<label for="http" class="control-label">URL</label> <label for="http" class="control-label"><%= t(:url) %></label>
<div class="controls"> <div class="controls">
<%= f.text_field :url %> <%= f.text_field :url %>
</div> </div>
@ -17,7 +17,7 @@
<%= f.fields_for :title_translations do |f| %> <%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %> <% @site_valid_locales.each do |locale| %>
<div class="control-group"> <div class="control-group">
<%= label_tag "link-#{locale}", "Name-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %> <%= label_tag "link-#{locale}", "#{t(:name)}-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
<div class="controls"> <div class="controls">
<%#= f.text_field locale, :class => 'input-xxlarge' %> <%#= f.text_field locale, :class => 'input-xxlarge' %>
<%= f.text_field locale, :class => 'control-label', :value => (@bulletin_link.title_translations[locale] rescue nil) %> <%= f.text_field locale, :class => 'control-label', :value => (@bulletin_link.title_translations[locale] rescue nil) %>

View File

@ -18,13 +18,13 @@
<span class="action"> <span class="action">
<% if bulletin_file.new_record? %> <% if bulletin_file.new_record? %>
<a href="#" class="delete"><%= t(:delete) %></a> <a href="#" class="delete"><%= t(:delete_) %></a>
<% else %> <% else %>
<%= f.hidden_field :id %> <%= f.hidden_field :id %>
<% if bulletin_file.is_built_in? %> <% if bulletin_file.is_built_in? %>
<a href="#" class="switch" id="<%= bulletin_file.id %>"></a> <a href="#" class="switch" id="<%= bulletin_file.id %>"></a>
<% else %> <% else %>
<a href="#" class="remove_existing_record"><%= t(:delete) %></a> <a href="#" class="remove_existing_record"><%= t(:delete_) %></a>
<%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %> <%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %>
<% end %> <% end %>
<% end %> <% end %>

View File

@ -32,7 +32,7 @@
<br> --> <br> -->
<% if @bulletin.image.file %> <% if @bulletin.image.file %>
<%= f.check_box :remove_image %> <%= f.check_box :remove_image %>
<%= t(:delete_file) %> <%= t('delete.file') %>
<% end %> <% end %>
</div> </div>
</div> </div>
@ -43,7 +43,7 @@
<div class="widget-action clear"> <div class="widget-action clear">
<a href="#" class="action"><i title="Set the announcement to start and end dates" class="icon-exclamation-sign icon-white tip"></i></a> <a href="#" class="action"><i title="Set the announcement to start and end dates" class="icon-exclamation-sign icon-white tip"></i></a>
</div> </div>
<h3 class="widget-title"><i class="icons-calendar"></i><%= t('nccu.date') %></h3> <h3 class="widget-title"><i class="icons-calendar"></i><%= t(:date) %></h3>
<div class="widget-content clear"> <div class="widget-content clear">
<div class="control-group"> <div class="control-group">
<label class="control-label"><%= t(:start) %></label> <label class="control-label"><%= t(:start) %></label>

View File

@ -3,7 +3,7 @@
<div class="modal hide fade in banner-preview" id="bulletin-<%=bulletin.id%>" style="width:1024px;height:500px;margin-left:-512px"> <div class="modal hide fade in banner-preview" id="bulletin-<%=bulletin.id%>" style="width:1024px;height:500px;margin-left:-512px">
<div class="modal-header"> <div class="modal-header">
<a class="close" data-dismiss="modal">×</a> <a class="close" data-dismiss="modal">×</a>
<h3><%= t("modal.preview") %></h3> <h3><%= t(:preview) %></h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p class="bulletin_slideshow"> <p class="bulletin_slideshow">
@ -20,7 +20,7 @@
<div class="modal-footer"> <div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal"><%= t("modal.close") %></a> <a href="#" class="btn" data-dismiss="modal"><%= t(:close) %></a>
</div> </div>
<div> <div>
<script type="text/javascript" src="/static/kernel.js"></script> <script type="text/javascript" src="/static/kernel.js"></script>

View File

@ -16,7 +16,7 @@
<br> <br>
<% if bulletin.image.file %> <% if bulletin.image.file %>
<%= f.check_box :remove_image %> <%= f.check_box :remove_image %>
<%= t(:delete_file) %> <%= t('delete.file') %>
<% end %> <% end %>
</div> </div>
</div> </div>

View File

@ -16,7 +16,7 @@ end
# :active_for_controllers=> ['news_bulletins', '/panel/news/back_end/tags', 'news_bulletin_categorys', 'news_approvals'], # :active_for_controllers=> ['news_bulletins', '/panel/news/back_end/tags', 'news_bulletin_categorys', 'news_approvals'],
# :active_for_ob_auths_object => ['NewsBulletinCategory'], # :active_for_ob_auths_object => ['NewsBulletinCategory'],
# :head_link => panel_news_back_end_news_bulletins_path , # :head_link => panel_news_back_end_news_bulletins_path ,
# :head_label=> I18n.t('admin.news') # :head_label=> I18n.t(:news)
# context_link :link=>new_panel_news_back_end_news_bulletin_path , # context_link :link=>new_panel_news_back_end_news_bulletin_path ,
# :priority=>1,:label=>I18n.t('announcement.add_new'), # :priority=>1,:label=>I18n.t('announcement.add_new'),

View File

@ -3,7 +3,7 @@
<div class="modal hide fade in banner-preview" id="page_context-<%=page_context.id%>" style="width:1024px;height:500px;margin-left:-512px"> <div class="modal hide fade in banner-preview" id="page_context-<%=page_context.id%>" style="width:1024px;height:500px;margin-left:-512px">
<div class="modal-header"> <div class="modal-header">
<a class="close" data-dismiss="modal">×</a> <a class="close" data-dismiss="modal">×</a>
<h3><%= t("modal.preview") %></h3> <h3><%= t(:preview) %></h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p class="page_context_slideshow"> <p class="page_context_slideshow">
@ -20,7 +20,7 @@
<div class="modal-footer"> <div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal"><%= t("modal.close") %></a> <a href="#" class="btn" data-dismiss="modal"><%= t(:close) %></a>
</div> </div>
<div> <div>
<script type="text/javascript" src="/static/kernel.js"></script> <script type="text/javascript" src="/static/kernel.js"></script>

View File

@ -11,7 +11,7 @@
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
<%if at_least_module_manager || writing_book.writing_book_category.cur_user_is_sub_manager_of(:edit)%> <%if at_least_module_manager || writing_book.writing_book_category.cur_user_is_sub_manager_of(:edit)%>
<li><%= link_to t('edit'), edit_panel_personal_book_back_end_writing_book_path(writing_book) %></li> <li><%= link_to t('edit'), edit_panel_personal_book_back_end_writing_book_path(writing_book) %></li>
<li><%= link_to t('delete'), panel_personal_book_back_end_writing_book_path(writing_book), :confirm => t('sure?'), :method => :delete, :remote => true %></li> <li><%= link_to t(:delete_), panel_personal_book_back_end_writing_book_path(writing_book), :confirm => t('sure?'), :method => :delete, :remote => true %></li>
<% end -%> <% end -%>
</ul> </ul>
</div> </div>

View File

@ -11,7 +11,7 @@
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
<%if at_least_module_manager || writing_book.writing_book_category.cur_user_is_sub_manager_of(:edit)%> <%if at_least_module_manager || writing_book.writing_book_category.cur_user_is_sub_manager_of(:edit)%>
<li><%= link_to t('edit'), edit_panel_personal_book_plugin_writing_book_path(writing_book) %></li> <li><%= link_to t('edit'), edit_panel_personal_book_plugin_writing_book_path(writing_book) %></li>
<li><%= link_to t('delete'), panel_personal_book_plugin_writing_book_path(writing_book), :confirm => t('sure?'), :method => :delete, :remote => true %></li> <li><%= link_to t(:delete_), panel_personal_book_plugin_writing_book_path(writing_book), :confirm => t('sure?'), :method => :delete, :remote => true %></li>
<% end -%> <% end -%>
</ul> </ul>
</div> </div>

View File

@ -16,7 +16,7 @@ end
# :active_for_controllers=> ['news_bulletins', '/panel/news/back_end/tags', 'news_bulletin_categorys', 'news_approvals'], # :active_for_controllers=> ['news_bulletins', '/panel/news/back_end/tags', 'news_bulletin_categorys', 'news_approvals'],
# :active_for_ob_auths_object => ['NewsBulletinCategory'], # :active_for_ob_auths_object => ['NewsBulletinCategory'],
# :head_link => panel_news_back_end_news_bulletins_path , # :head_link => panel_news_back_end_news_bulletins_path ,
# :head_label=> I18n.t('admin.news') # :head_label=> I18n.t(:news)
# context_link :link=>new_panel_news_back_end_news_bulletin_path , # context_link :link=>new_panel_news_back_end_news_bulletin_path ,
# :priority=>1,:label=>I18n.t('announcement.add_new'), # :priority=>1,:label=>I18n.t('announcement.add_new'),

Some files were not shown because too many files have changed in this diff Show More