Merge branch 'design_team' into ldap
This commit is contained in:
commit
87449ec6a8
|
@ -13,3 +13,5 @@
|
||||||
//= require orbit-bar-search
|
//= require orbit-bar-search
|
||||||
//= require side_bar_history
|
//= require side_bar_history
|
||||||
//= require page_edit
|
//= require page_edit
|
||||||
|
//= require tinymce-jquery
|
||||||
|
//= require tinymce_orbit
|
|
@ -2,7 +2,7 @@
|
||||||
<% @site_valid_locales.each do |locale| %>
|
<% @site_valid_locales.each do |locale| %>
|
||||||
<div>
|
<div>
|
||||||
<%= I18nVariable.from_locale(locale) %>
|
<%= I18nVariable.from_locale(locale) %>
|
||||||
<%= f.text_area locale %>
|
<%= f.text_area locale, :class => 'tinymce_textarea' %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
|
@ -62,6 +62,9 @@ Orbit::Application.routes.draw do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
resources :module_apps do
|
resources :module_apps do
|
||||||
|
match 'manager_auth_proc' => "new_interface_module_apps#setting" ,:as => :manager_auth_proc,:via => :get
|
||||||
|
match 'manager_auth_proc' => "new_interface_module_apps#update_setting" ,:as => :manager_auth_proc,:via => :post
|
||||||
|
match 'manager_auth_proc' => "new_interface_module_apps#user_list" ,:as => :manager_auth_show,:via => :put
|
||||||
resources :app_auths do
|
resources :app_auths do
|
||||||
member do
|
member do
|
||||||
match 'remove/:type/:target_id' ,:action=> 'remove',:via => "delete",:as =>:remove
|
match 'remove/:type/:target_id' ,:action=> 'remove',:via => "delete",:as =>:remove
|
||||||
|
|
|
@ -320,7 +320,7 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
|
||||||
|
|
||||||
def get_categorys(id = nil)
|
def get_categorys(id = nil)
|
||||||
@bulletin_categorys = []
|
@bulletin_categorys = []
|
||||||
@unit_list_for_anc = UnitListForAnc.all
|
#@unit_list_for_anc = UnitListForAnc.all
|
||||||
if(is_manager? || is_admin?)
|
if(is_manager? || is_admin?)
|
||||||
@bulletin_categorys = (id ? BulletinCategory.find(id).to_a : BulletinCategory.excludes('disabled' => true))
|
@bulletin_categorys = (id ? BulletinCategory.find(id).to_a : BulletinCategory.excludes('disabled' => true))
|
||||||
elsif is_sub_manager?
|
elsif is_sub_manager?
|
||||||
|
|
|
@ -33,7 +33,7 @@ class Bulletin
|
||||||
mount_uploader :image, ImageUploader
|
mount_uploader :image, ImageUploader
|
||||||
|
|
||||||
belongs_to :bulletin_category
|
belongs_to :bulletin_category
|
||||||
belongs_to :unit_list_for_anc
|
# belongs_to :unit_list_for_anc
|
||||||
|
|
||||||
# embeds_many :bulletin_links, :cascade_callbacks => true
|
# embeds_many :bulletin_links, :cascade_callbacks => true
|
||||||
# embeds_many :bulletin_files, :cascade_callbacks => true
|
# embeds_many :bulletin_files, :cascade_callbacks => true
|
||||||
|
|
|
@ -126,8 +126,8 @@
|
||||||
<div id="post-body">
|
<div id="post-body">
|
||||||
<div id="post-body-content" class="clear">
|
<div id="post-body-content" class="clear">
|
||||||
|
|
||||||
<%= f.label :unit_list_for_anc%>
|
<%#= f.label :unit_list_for_anc%>
|
||||||
<%= f.select :unit_list_for_anc_id,@unit_list_for_anc.collect{|t| [ t.title[I18n.locale], t.id ]}, {}, :class => "input-medium" %>
|
<%#= f.select :unit_list_for_anc_id,@unit_list_for_anc.collect{|t| [ t.title[I18n.locale], t.id ]}, {}, :class => "input-medium" %>
|
||||||
|
|
||||||
<%= f.label :category %>
|
<%= f.label :category %>
|
||||||
<%= f.select :bulletin_category_id, @bulletin_categorys.collect{|t| [ t.i18n_variable[I18n.locale], t.id ]}, {}, :class => "input-medium" %>
|
<%= f.select :bulletin_category_id, @bulletin_categorys.collect{|t| [ t.i18n_variable[I18n.locale], t.id ]}, {}, :class => "input-medium" %>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="info1">
|
<div class="info1">
|
||||||
<span class="date"><%= @bulletin.postdate %></span>
|
<span class="date"><%= @bulletin.postdate %></span>
|
||||||
|
|
|
|
||||||
<a href="" class="unit"><%= @bulletin.unit_list_for_anc.title[I18n.locale] rescue '' %></a>
|
<a href="" class="unit"><%= User.find(@bulletin.create_user_id).sub_roles.collect{|t| t.key}.join(" ") rescue '' %></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="news_image">
|
<div class="news_image">
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<h3 class="link_title"><%= t("announcement.related_links") %></h3>
|
<div class="quicklinks">
|
||||||
|
<h3 class="link_title"><%= t("announcement.related_links") %></h3>
|
||||||
|
|
||||||
<div id='web_links_links'>
|
<div id='web_links_links'>
|
||||||
<%= render 'web_links' %>
|
<%= render 'web_links' %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue