member list edit

This commit is contained in:
unknown 2013-02-20 11:12:08 +08:00
parent 8bf7d0f6f3
commit a7bc19768e
98 changed files with 819 additions and 699 deletions

View File

@ -7,7 +7,17 @@ class Admin::PluginsController < ApplicationController
@plugins = OrbitApp::Module::Registration.all @plugins = OrbitApp::Module::Registration.all
if(!params[:show_plugin_profile].nil?) if(!params[:show_plugin_profile].nil?)
@right_partial = OrbitApp::Plugin::Registration.find_by_key(params[:show_plugin_profile]).profile_partial_path rescue 'plugin_summary'
@right_partial = OrbitApp::Plugin::Registration.find_by_key(params[:show_plugin_profile]).admin_partial_path
if !@right_partial.blank?
respond_to do |format|
format.html { redirect_to( @right_partial ) }
end
else
@right_partial = "admin/users_new_interface/plugin_summary"
end
else else
@right_partial = "admin/users_new_interface/plugin_summary" @right_partial = "admin/users_new_interface/plugin_summary"
end end

View File

@ -9,6 +9,20 @@
<div class="form-horizontal"> <div class="form-horizontal">
<div class="clear"> <div class="clear">
<div class="control-group pull-left">
<label class="control-label" for="key"><%= t(:key) %></label>
<div class="controls">
<% if @attribute.new_record? %>
<%= f.text_field :key, :placeholder => t(:key) %>
<% else %>
<div><%= @attribute.key%></div>
<% end %>
</div>
</div>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>@attribute.title_translations,:class_ext=>"pull-left",:label_ext=>t(:item_name),:field_name=>"#{@attribute_type}[title_translations]"}%>
<div class="control-group pull-left"> <div class="control-group pull-left">
<label class="control-label" for="key"><%= t(:to_search) %></label> <label class="control-label" for="key"><%= t(:to_search) %></label>
<div class="controls"> <div class="controls">
@ -23,24 +37,13 @@
</div> </div>
</div> </div>
<div class="control-group pull-left">
<label class="control-label" for="key"><%= t(:key) %></label>
<div class="controls">
<% if @attribute.new_record? %>
<%= f.text_field :key, :placeholder => t(:key) %>
<% else %>
<div><%= @attribute.key%></div>
<% end %>
</div>
</div>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>@attribute.title_translations,:class_ext=>"pull-left",:label_ext=>t(:item_name),:field_name=>"#{@attribute_type}[title_translations]"}%>
</div> </div>
</div> </div>
</div> </div>
<% if @attribute._type == "Info" %> <% if @attribute._type == "Info" %>
<div class="map-block back attributes"> <div class="map-block back attributes">
<h4><span><%= @attribute.title+ t(:attributes)%></span></h4> <h4><span><%= @attribute.title+ t(:field)%></span></h4>
<div id="attribute_field_list"> <div id="attribute_field_list">
<%= render :partial=>"shared/attribute_field/attribute_field",:collection=>@attribute.attribute_fields%> <%= render :partial=>"shared/attribute_field/attribute_field",:collection=>@attribute.attribute_fields%>
</div> </div>

View File

@ -0,0 +1,18 @@
<div id="module-nav">
<div class="arrow_next pull-right"><i class="icon-chevron-right"></i></div>
<div class="arrow_prev pull-left"><i class="icon-chevron-left"></i></div>
<div class="module-nav-view">
<ul class="nav nav-pills">
<%= content_tag :li, :class=>(params[:show_plugin_profile].nil? ? "active" : nil) do %>
<%= link_to t(:all_plugin_summary)%>
<% end -%>
<% @plugins.each do |plugin| %>
<%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin.name ? "active" : nil) do %>
<%= link_to plugin.name, admin_plugins_path(:show_plugin_profile => plugin.name) %>
<% end -%>
<% end -%>
</ul>
</div>
</div>

View File

@ -4,23 +4,6 @@
<div id="isotope" class="user-data"> <div id="isotope" class="user-data">
<div id="module-nav"> <%= render :partial => 'plugin_list' %>
<div class="arrow_next pull-right"><i class="icon-chevron-right"></i></div>
<div class="arrow_prev pull-left"><i class="icon-chevron-left"></i></div>
<div class="module-nav-view">
<ul class="nav nav-pills">
<%= content_tag :li, :class=>(params[:show_plugin_profile].nil? ? "active" : nil) do %>
<%= link_to t(:all_plugin_summary)%>
<% end -%>
<% @plugins.each do |plugin| %>
<%= content_tag :li, :class=>(params[:show_plugin_profile] == plugin.name ? "active" : nil) do %>
<%= link_to plugin.name, :show_plugin_profile => plugin.name %>
<% end -%>
<% end -%>
</ul>
</div>
</div>
<%= render :partial => @right_partial %> <%= render :partial => @right_partial %>
</div> </div>

View File

@ -10,6 +10,17 @@
<%= hidden_field "#{@field_name}[attribute_fields][#{@af_counter}]","to_delete",:value=>false,:class=>"attribute_field_to_delete"%> <%= hidden_field "#{@field_name}[attribute_fields][#{@af_counter}]","to_delete",:value=>false,:class=>"attribute_field_to_delete"%>
<a class="btn btn-small pull-right btn-danger remove_attribute"><i class="icon-trash icon-large"></i> <%= t(:delete_)%></a> <a class="btn btn-small pull-right btn-danger remove_attribute"><i class="icon-trash icon-large"></i> <%= t(:delete_)%></a>
<div class="clear"> <div class="clear">
<div class="control-group pull-left">
<label class="control-label" for="key"><%= t(:key) %></label>
<div class="multipleInput">
<div class="controls">
<%= text_field "#{@field_name}[attribute_fields][#{@af_counter}]","key",:value=>attribute_field.key%>
</div>
</div>
</div>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>attribute_field.title_translations,:class_ext=>"pull-left",:label_ext=>t(:name),:field_name=>"#{@field_name}[attribute_fields][#{@af_counter}][title_translations]"}%>
<div class="control-group"> <div class="control-group">
<label class="control-label" for="key"><%= t(:to_search) %></label> <label class="control-label" for="key"><%= t(:to_search) %></label>
<div class="controls"> <div class="controls">
@ -21,15 +32,8 @@
</label> </label>
</div> </div>
</div> </div>
<div class="control-group pull-left">
<label class="control-label" for="key"><%= t(:key) %></label>
<div class="multipleInput">
<div class="controls">
<%= text_field "#{@field_name}[attribute_fields][#{@af_counter}]","key",:value=>attribute_field.key%>
</div>
</div>
</div>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>attribute_field.title_translations,:class_ext=>"pull-left",:label_ext=>t(:name),:field_name=>"#{@field_name}[attribute_fields][#{@af_counter}][title_translations]"}%>
<div class="control-group pull-left"> <div class="control-group pull-left">
<label class="control-label" for=""><%= t(:type)%></label> <label class="control-label" for=""><%= t(:type)%></label>
<div class="controls"> <div class="controls">
@ -46,7 +50,7 @@
<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(:options)%></label> <label class="control-label"><%= t(:enabled_for)%></label>
<div class="controls"> <div class="controls">
<label class="checkbox inline"> <label class="checkbox inline">
<%= check_box_tag("#{@field_name}[attribute_fields][#{@af_counter}][typeA][cross_lang]","true",attribute_field["typeA"]["cross_lang"]) %> <%= check_box_tag("#{@field_name}[attribute_fields][#{@af_counter}][typeA][cross_lang]","true",attribute_field["typeA"]["cross_lang"]) %>
@ -103,7 +107,7 @@
<% 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(:options)%></label> <label class="control-label"><%= t(:enabled_for)%></label>
<div class="controls"> <div class="controls">
<label class="checkbox inline"> <label class="checkbox inline">
<%= check_box_tag("#{@field_name}[attribute_fields][#{@af_counter}][typeD][cross_lang]","true",attribute_field["typeD"]["cross_lang"]) %> <%= check_box_tag("#{@field_name}[attribute_fields][#{@af_counter}][typeD][cross_lang]","true",attribute_field["typeD"]["cross_lang"]) %>

View File

@ -5,6 +5,18 @@
<div class="form-horizontal"> <div class="form-horizontal">
<div class="clear"> <div class="clear">
<div class="control-group pull-left">
<label class="control-label" for="key"><%= t(:key) %></label>
<div class="controls">
<% if @sub_attribute.new_record? %>
<%= f.text_field :key, :placeholder => t(:key) %>
<% else %>
<div><%= @sub_attribute.key%></div>
<% end %>
</div>
</div>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>@sub_attribute.title_translations,:class_ext=>"pull-left",:label_ext=>t(:item_name),:field_name=>"sub_role[title_translations]"}%>
<div class="control-group pull-left"> <div class="control-group pull-left">
<label class="control-label" for="key"><%= t(:to_search) %></label> <label class="control-label" for="key"><%= t(:to_search) %></label>
<div class="controls"> <div class="controls">
@ -19,17 +31,6 @@
</div> </div>
</div> </div>
<div class="control-group pull-left">
<label class="control-label" for="key"><%= t(:key) %></label>
<div class="controls">
<% if @sub_attribute.new_record? %>
<%= f.text_field :key, :placeholder => t(:key) %>
<% else %>
<div><%= @sub_attribute.key%></div>
<% end %>
</div>
</div>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>@sub_attribute.title_translations,:class_ext=>"pull-left",:label_ext=>t(:item_name),:field_name=>"sub_role[title_translations]"}%>
</div> </div>
</div> </div>
</div> </div>

View File

@ -6,7 +6,7 @@
<div class="site-map role-block"> <div class="site-map role-block">
<div class="map-block back attributes"> <div class="map-block back attributes">
<h4><span><%= @attribute.title+ t(:attributes)%></span></h4> <h4><span><%= @attribute.title + t(:role)%></span></h4>
<div id="attribute_field_list"> <div id="attribute_field_list">
<%= render :partial=>"attribute_field",:collection=>@attribute.attribute_fields%> <%= render :partial=>"attribute_field",:collection=>@attribute.attribute_fields%>
</div> </div>

View File

@ -56,5 +56,5 @@
</table> </table>
<div class="form-actions form-fixed pagination-right"> <div class="form-actions form-fixed pagination-right">
<%= link_to content_tag(:i,t(:new_sub_role),:class=>"icon-plus icon-white"),eval("admin_#{@attribute_type}_add_sub_role_path(@attribute)"),:class=>"btn btn-primary pull-right"%> <%= link_to content_tag(:i,t("new.sub_role"),:class=>"icon-plus icon-white"),eval("admin_#{@attribute_type}_add_sub_role_path(@attribute)"),:class=>"btn btn-primary pull-right"%>
</div> </div>

View File

@ -6,7 +6,7 @@
<div class="site-map role-block"> <div class="site-map role-block">
<div class="map-block back attributes"> <div class="map-block back attributes">
<h4><span><%= @attribute.title+ t(:attributes)%> - <%= @sub_attribute.title %></span></h4> <h4><span><%= @attribute.title+ t(:role)%> - <%= @sub_attribute.title %></span></h4>
<div id="attribute_field_list"> <div id="attribute_field_list">
<%= render :partial=>"attribute_field",:collection=>@sub_attribute.attribute_fields%> <%= render :partial=>"attribute_field",:collection=>@sub_attribute.attribute_fields%>
</div> </div>

View File

@ -3,16 +3,24 @@
<%= 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(: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(: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(: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') if (is_admin? rescue nil) %> <%= 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') if (is_admin? rescue nil) %>
<%= content_tag :li, link_to((t(:roles) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_roles_path ), :class => active_for_action('users_new_interfacexx', 'index') if (is_admin? rescue nil) %> <%= content_tag :li, link_to((t(:member_authorization) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, '#'), :class => active_for_action('users_new_interfacexx', 'index') if (is_admin? rescue nil) %>
<%= content_tag :li, link_to((t(:info) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, edit_admin_info_path(Info.first.id.to_s)), :class => active_for_action('users_new_interfacexx', 'index') if (is_admin? rescue nil) %> <%= content_tag :li, link_to((t(:member_registration) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, '#'), :class => active_for_action('users_new_interfacexx', 'index') if (is_admin? rescue nil) %>
<%= content_tag :li, link_to((t(:authorigation) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, '#'), :class => active_for_action('users_new_interfacexx', 'index') if (is_admin? rescue nil) %> <%= content_tag :li, link_to((t(:member_role) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe,admin_roles_path ), :class => active_for_action('users_new_interfacexx', 'index') if (is_admin? rescue nil) %>
<%= content_tag :li, link_to((t(:registrant) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, '#'), :class => active_for_action('users_new_interfacexx', 'index') if (is_admin? rescue nil) %> <%= content_tag :li, link_to((t(:member_info) + content_tag(:i, nil, :class => 'icon-chevron-right')).html_safe, edit_admin_info_path(Info.first.id.to_s)), :class => active_for_action('users_new_interfacexx', 'index') if (is_admin? rescue nil) %>
<% 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(:analysis)), admin_plugins_path %> <%= link_to content_tag(:i, nil, :class => 'icons-graduation')+ content_tag(:span, t(:academic_info)), 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(: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(:list_) + 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 -%>
<%= content_tag :li, :class => active_for_controllers('plugins') do -%>
<%= link_to content_tag(:i, nil, :class => 'icons-pie')+ content_tag(:span, t(:analysis)), '#' %>
<% end -%>
<%= content_tag :li, :class => active_for_controllers('plugins') do -%>
<%= link_to content_tag(:i, nil, :class => 'icons-layout')+ content_tag(:span, t(:groups)), '#' %>
<% end -%>

View File

@ -2,10 +2,11 @@
<td class="span1"><% if is_admin? %><input type="checkbox"><% end%></td> <td class="span1"><% if is_admin? %><input type="checkbox"><% end%></td>
<td class="span3"> <td class="span3">
<div class="label-group"> <div class="label-group">
<div class="label-td"><!-- <div class="label-td">
<span class="label label-teacher"># TODO:Teacher</span> <% user_for_listing.roles.each do |rf| %>
<span class="label label-student"># TODO:Student</span> <% @roledata = Role.find(rf.id) %>
<span class="label label-staff"># TODO:Staff</span> --> <span class="label label-<%= @roledata.key %>"><%= @roledata.title %></span>
<% end %>
</div> </div>
</div> </div>
</td> </td>

View File

@ -22,6 +22,7 @@
<%= form_for @user, :url => admin_users_new_interface_path(@user), :html => { :multipart => true } do |f| %> <%= form_for @user, :url => admin_users_new_interface_path(@user), :html => { :multipart => true } do |f| %>
<%= f.error_messages %> <%= f.error_messages %>
<%= render :partial => 'user_basic', :locals => {:f => f}%>
<%= render :partial => 'form', :locals => { :f => f } %> <%= render :partial => 'form', :locals => { :f => f } %>
<div class="button_bar"> <div class="button_bar">
<%= link_back %> <%= link_back %>

View File

@ -10,6 +10,17 @@
<%= hidden_field "info[attribute_fields][#{@af_counter}]","to_delete",:value=>false,:class=>"attribute_field_to_delete"%> <%= hidden_field "info[attribute_fields][#{@af_counter}]","to_delete",:value=>false,:class=>"attribute_field_to_delete"%>
<a class="btn btn-small pull-right btn-danger remove_attribute"><i class="icon-trash icon-large"></i> <%= t(:delete_)%></a> <a class="btn btn-small pull-right btn-danger remove_attribute"><i class="icon-trash icon-large"></i> <%= t(:delete_)%></a>
<div class="clear"> <div class="clear">
<div class="control-group pull-left">
<label class="control-label" for="key"><%= t(:key) %></label>
<div class="multipleInput">
<div class="controls">
<%= text_field "info[attribute_fields][#{@af_counter}]","key",:value=>attribute_field.key%>
</div>
</div>
</div>
<%= 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][#{@af_counter}][title_translations]"}%>
<div class="control-group"> <div class="control-group">
<label class="control-label" for="key"><%= t(:to_search) %></label> <label class="control-label" for="key"><%= t(:to_search) %></label>
<div class="controls"> <div class="controls">
@ -21,15 +32,7 @@
</label> </label>
</div> </div>
</div> </div>
<div class="control-group pull-left">
<label class="control-label" for="key"><%= t(:key) %></label>
<div class="multipleInput">
<div class="controls">
<%= text_field "info[attribute_fields][#{@af_counter}]","key",:value=>attribute_field.key%>
</div>
</div>
</div>
<%= 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][#{@af_counter}][title_translations]"}%>
<div class="control-group pull-left"> <div class="control-group pull-left">
<label class="control-label" for=""><%= t(:type)%></label> <label class="control-label" for=""><%= t(:type)%></label>
<div class="controls"> <div class="controls">
@ -46,7 +49,7 @@
<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(:options)%></label> <label class="control-label"><%= t(:enabled_for)%></label>
<div class="controls"> <div class="controls">
<label class="checkbox inline"> <label class="checkbox inline">
<%= check_box_tag("info[attribute_fields][#{@af_counter}][typeA][cross_lang]","true",attribute_field["typeA"]["cross_lang"]) %> <%= check_box_tag("info[attribute_fields][#{@af_counter}][typeA][cross_lang]","true",attribute_field["typeA"]["cross_lang"]) %>
@ -103,7 +106,7 @@
<% 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(:options)%></label> <label class="control-label"><%= t(:enabled_for)%></label>
<div class="controls"> <div class="controls">
<label class="checkbox inline"> <label class="checkbox inline">
<%= check_box_tag("info[attribute_fields][#{@af_counter}][typeD][cross_lang]","true",attribute_field["typeD"]["cross_lang"]) %> <%= check_box_tag("info[attribute_fields][#{@af_counter}][typeD][cross_lang]","true",attribute_field["typeD"]["cross_lang"]) %>

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(:list_)%></label> <label class="control-label" ><%= t(:options)%></label>
<div class="multipleInput"> <div class="multipleInput">
<%if values.blank? %> <%if values.blank? %>
<div class="controls"> <div class="controls">

View File

@ -11,6 +11,7 @@ en:
object: Access Denied for you don't have permission for this object object: Access Denied for you don't have permission for this object
not_admin: Access Denied for you are not Admin not_admin: Access Denied for you are not Admin
account_settings: Account settings account_settings: Account settings
academic_info: Academic Info.
action: Action action: Action
ad: ad:
chinese_1: 在套圖中出現次數 1次請輸入1 chinese_1: 在套圖中出現次數 1次請輸入1
@ -40,8 +41,8 @@ en:
add_attribute_field: Add attribute field add_attribute_field: Add attribute field
add_image: Add image add_image: Add image
add_item: Add item add_item: Add item
add_member: Add member add_member: Create New Member
add_more: Add more add_more: Exteudable Field
address_modal: address_modal:
default_title: Address default_title: Address
street_address: Street address street_address: Street address
@ -55,7 +56,7 @@ en:
all: All all: All
all_content: All Content all_content: All Content
all_file: All File all_file: All File
all_member: All Member all_member: Member List
all_plugin_summary: All plugin summary all_plugin_summary: All plugin summary
all_plugins: All plugins all_plugins: All plugins
always_display_title: Always displayed in the title bar always_display_title: Always displayed in the title bar
@ -126,20 +127,20 @@ en:
paper: Paper was successfully created. paper: Paper was successfully created.
user: User was successfully created. user: User was successfully created.
create_: Create create_: Create
cross_lang: 跨語言輸入 cross_lang: Enable Monolingual
data: Data data: Data
date: date:
calendar: 紀年法 calendar: Calendar Era
range: 本欄為時間區段 range: Enable Time Period
format: 格式 format: 格式
tw_calendar: 民國 tw_calendar: R.O.C Year.
minguo_calendar: minguo_calendar:
after: 民國 after: 民國
before: 民前 before: 民前
first_year: 民國元年 first_year: 民國元年
year: year: Year
month: month: Month
west_calendar: 西元 west_calendar: A.C.
date_: Date date_: Date
dashboard: dashboard:
bulletin: Announcement bulletin: Announcement
@ -175,6 +176,7 @@ en:
end_date: End date end_date: End date
errors: errors:
at_least_one: must at least have one value at_least_one: must at least have one value
field: Fields
file: file:
size: File size size: File size
type: File type type: File type
@ -186,6 +188,7 @@ en:
frequency: Frequency frequency: Frequency
frontend_data_count: Frontend data count frontend_data_count: Frontend data count
gallery: Gallery gallery: Gallery
groups: Groups
help: Help help: Help
hidden: Hidden hidden: Hidden
hide: Hide hide: Hide
@ -196,13 +199,13 @@ en:
image: Image image: Image
images: Images images: Images
info: Information info: Information
initial: 起始值 initial: Default Value
intro: Introduction intro: Introduction
is_published: Is published is_published: Is published
item: Item item: Item
item_name: Item name item_name: Name
javascripts: Javascripts javascripts: Javascripts
key: Key key: Index Keys
last_modified: Last modified last_modified: Last modified
layout: Layout layout: Layout
link: Link link: Link
@ -245,6 +248,10 @@ en:
markup_value: Markup value markup_value: Markup value
me: Me me: Me
member: Member member: Member
member_authorization: Authorizations
member_info: Profile Form
member_registration: Registration Approval
member_role: Member Roles
menu_enabled_for: Menu enabled for menu_enabled_for: Menu enabled for
module: Module module: Module
module_authorization: Module Authorization module_authorization: Module Authorization
@ -263,7 +270,8 @@ en:
page: New page page: New page
user: New user user: New user
info: New user information info: New user information
role: New user role role: New role
sub_role: New sub role
new_: New new_: New
news: News news: News
no_: "No" no_: "No"
@ -289,7 +297,7 @@ en:
password_current: Current password password_current: Current password
pending: Pending pending: Pending
picture: Picture picture: Picture
placeholder: Placeholder placeholder: Field Hint
plugins: Plugins plugins: Plugins
postdate: Postdate postdate: Postdate
posted_by: Posted by posted_by: Posted by
@ -308,6 +316,7 @@ en:
rejected_reason_empty: "Approval rejected, no referencable information" rejected_reason_empty: "Approval rejected, no referencable information"
related_links: Related Links related_links: Related Links
role: Role role: Role
role_field: Role Field
Roles: Roles Roles: Roles
ruling_site: Ruling Site ruling_site: Ruling Site
search: search:
@ -353,6 +362,8 @@ en:
status: Status status: Status
structure: Structure structure: Structure
sub_manager: SubManager sub_manager: SubManager
sub_role: Sub Role
sub_role_field: Sub Role Field
subtitle: Subtitle subtitle: Subtitle
submit: Submit submit: Submit
submit_approval: Submit approval submit_approval: Submit approval
@ -374,10 +385,11 @@ en:
theme: Theme theme: Theme
themes: Themes themes: Themes
title: Title title: Title
to_search: Set as Search Key
top: Top top: Top
total_visitors: Total Visitors total_visitors: Total Visitors
traffic: Traffic traffic: Traffic
type: Type type: Field Type
unit_name: Unit name unit_name: Unit name
unzip_success: "App unzip procress is finished, please restart the server to apply effect" 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

View File

@ -11,6 +11,7 @@ zh_tw:
object: 拒絕存取,因你沒有權限 object: 拒絕存取,因你沒有權限
not_admin: 拒絕存取,因你不是此應用程式管理員 not_admin: 拒絕存取,因你不是此應用程式管理員
account_settings: 帳號設定 account_settings: 帳號設定
academic_info: 學術資訊
action: 操作 action: 操作
ad: ad:
chinese_1: 在套圖中出現次數 1次請輸入1 chinese_1: 在套圖中出現次數 1次請輸入1
@ -37,11 +38,11 @@ zh_tw:
widget_info_for_ad_image_size: "此區塊圖片尺寸使用: %{best_size}" widget_info_for_ad_image_size: "此區塊圖片尺寸使用: %{best_size}"
ad_banner: 廣告輪播 ad_banner: 廣告輪播
add: 新增 add: 新增
add_attribute_field: Add attribute field add_attribute_field: 新增欄位
add_image: Add image add_image: Add image
add_item: 新增項目 add_item: 新增項目
add_member: Add member add_member: 新增成員
add_more: Add more add_more: 可擴充欄位
address_modal: address_modal:
default_title: 地址 default_title: 地址
street_address: 街道地址 street_address: 街道地址
@ -55,7 +56,7 @@ zh_tw:
all: All all: All
all_content: 所有內容 all_content: 所有內容
all_file: 所有檔案 all_file: 所有檔案
all_member: 所有會員 all_member: 成員列表
all_plugin_summary: All plugin summary all_plugin_summary: All plugin summary
all_plugins: All plugins all_plugins: All plugins
always_display_title: 永遠顯示標題 always_display_title: 永遠顯示標題
@ -126,11 +127,11 @@ zh_tw:
page: 頁面已成功建立 page: 頁面已成功建立
user: 使用者已成功建立 user: 使用者已成功建立
create_: 建立 create_: 建立
cross_lang: 跨語言輸入 cross_lang: 啟用單語系
data: 資料 data: 資料
date: date:
calendar: 紀年法 calendar: 紀年法
range: 本欄為時間區段 range: 時間區段設定
format: 格式 format: 格式
tw_calendar: 民國 tw_calendar: 民國
minguo_calendar: minguo_calendar:
@ -194,6 +195,7 @@ zh_tw:
end_date: 結束日期 end_date: 結束日期
errors: errors:
at_least_one: 至少擁有一個值 at_least_one: 至少擁有一個值
field: 欄位
file: file:
size: 檔案大小 size: 檔案大小
type: 檔案類型 type: 檔案類型
@ -205,6 +207,7 @@ zh_tw:
frequency: 頻率 frequency: 頻率
frontend_data_count: Frontend data count frontend_data_count: Frontend data count
gallery: Gallery gallery: Gallery
groups: 群組
help: 幫助 help: 幫助
hidden: 隱藏的 hidden: 隱藏的
hide: 隱藏 hide: 隱藏
@ -214,12 +217,12 @@ zh_tw:
hot: 熱門 hot: 熱門
image: 圖片 image: 圖片
images: Images images: Images
info: 信息 info: 基本資料
initial: 起始 initial: 預設
intro: 簡介 intro: 簡介
is_published: 已發佈 is_published: 已發佈
item: 項目 item: 項目
item_name: Item name item_name: 名稱
javascripts: Javascripts javascripts: Javascripts
key: 索引 key: 索引
last_modified: 最後修改者 last_modified: 最後修改者
@ -263,7 +266,11 @@ zh_tw:
markup_options: Markup options markup_options: Markup options
markup_value: Markup value markup_value: Markup value
me: Me me: Me
member: 會員 member: 成員
member_authorization: 成員權限
member_info: 基本資料表
member_registration: 註冊審核
member_role: 身份欄位
menu_enabled_for: 選單啟用 menu_enabled_for: 選單啟用
module: Module module: Module
module_authorization: 模組授權 module_authorization: 模組授權
@ -282,7 +289,8 @@ zh_tw:
page: 新增頁面 page: 新增頁面
user: 新增使用者 user: 新增使用者
info: 新增使用者資訊 info: 新增使用者資訊
role: 新增使用者角色 role: 新增身份
sub_role: 新增子身份
new_: New new_: New
news: 新聞 news: 新聞
no_: "不是" no_: "不是"
@ -308,7 +316,7 @@ zh_tw:
password_current: 目前的密碼 password_current: 目前的密碼
pending: 待審核 pending: 待審核
picture: 圖片 picture: 圖片
placeholder: Placeholder placeholder: 欄位提示文字
plugins: Plugins plugins: Plugins
postdate: 張貼日期 postdate: 張貼日期
posted_by: 張貼人 posted_by: 張貼人
@ -327,6 +335,7 @@ zh_tw:
rejected_reason_empty: "拒絕核准, 沒有參考資訊" rejected_reason_empty: "拒絕核准, 沒有參考資訊"
related_links: 相關連結 related_links: 相關連結
role: 身份 role: 身份
role_field: 身份欄位
roles: 身份 roles: 身份
ruling_site: 銳綸網站 ruling_site: 銳綸網站
search: search:
@ -372,6 +381,8 @@ zh_tw:
status: 狀態 status: 狀態
structure: 結構 structure: 結構
sub_manager: 次管理員 sub_manager: 次管理員
sub_role: 子身份
sub_role_field: 子身份欄位
subtitle: 副標題 subtitle: 副標題
submit: 送出 submit: 送出
submit_approval: 送出已核准 submit_approval: 送出已核准
@ -393,10 +404,11 @@ zh_tw:
theme: 主題 theme: 主題
themes: 主題 themes: 主題
title: 標題 title: 標題
to_search: 加入搜尋條件
top: 置頂 top: 置頂
total_visitors: 總計造訪人次 total_visitors: 總計造訪人次
traffic: 流量 traffic: 流量
type: 類型 type: 欄位類型
unit_name: 單位名稱 unit_name: 單位名稱
unzip_success: "App unzip procress is finished, please restart the server to apply effect" unzip_success: "App unzip procress is finished, please restart the server to apply effect"
up_to_date: 最新版本 up_to_date: 最新版本

View File

@ -40,9 +40,11 @@ module OrbitApp
@base_path = args[0][:base_path] @base_path = args[0][:base_path]
@name = name @name = name
@partial_path = '' @partial_path = ''
@admin_partial_path = ''
unless partial.nil? unless partial.nil?
@partial_path = partial[:path] @partial_path = partial[:path]
@admin_partial_path = partial[:admin_path]
end end
block.arity < 1 ? instance_eval(&block) : block.call(self) if block_given? block.arity < 1 ? instance_eval(&block) : block.call(self) if block_given?
@ -52,6 +54,10 @@ module OrbitApp
return @partial_path return @partial_path
end end
def admin_partial_path
return @admin_partial_path
end
end end
end end
end end

View File

@ -12,6 +12,8 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
def index def index
get_plugins
get_categorys("BookPaperType",params[:book_paper_type_id]) get_categorys("BookPaperType",params[:book_paper_type_id])
@filter = params[:filter] @filter = params[:filter]
new_filter = params[:new_filter] new_filter = params[:new_filter]
@ -50,6 +52,8 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
def writing_book_setting def writing_book_setting
get_plugins
@author_types = BookAuthorType.all @author_types = BookAuthorType.all
@paper_types = BookPaperType.all @paper_types = BookPaperType.all
@ -120,6 +124,8 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
# GET /writing_books/new.xml # GET /writing_books/new.xml
def new def new
get_plugins
@writing_book = WritingBook.new @writing_book = WritingBook.new
# @writing_book_files = WritingBookFile.all # @writing_book_files = WritingBookFile.all
# @level_types = BookLevelType.all # @level_types = BookLevelType.all
@ -136,6 +142,9 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
# GET /writing_books/1/edit # GET /writing_books/1/edit
def edit def edit
get_plugins
@writing_book = WritingBook.find(params[:id]) @writing_book = WritingBook.find(params[:id])
# @level_types = BookLevelType.all # @level_types = BookLevelType.all
@ -303,6 +312,10 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
# end # end
# end # end
def get_plugins
@plugins = OrbitApp::Module::Registration.all
end
def get_tags def get_tags
module_app = ModuleApp.first(:conditions => {:key => 'personal_book'}) module_app = ModuleApp.first(:conditions => {:key => 'personal_book'})
@tags = Tag.all(:conditions => {:module_app_id => module_app.id}) @tags = Tag.all(:conditions => {:module_app_id => module_app.id})

View File

@ -1,10 +1,8 @@
<div id="filter" class="subnav"> <div class="table-label">
<div class="filters">
<div id="sort_headers" class="table-label"> <div id="sort_headers" class="table-label">
<%= render 'sort_headers' %> <%= render 'sort_headers' %>
</div> </div>
</div> </div>
</div>
<% content_for :page_specific_javascript do %> <% content_for :page_specific_javascript do %>
<%= javascript_include_tag "sort_header" %> <%= javascript_include_tag "sort_header" %>

View File

@ -1,11 +1,11 @@
<tr id="<%= dom_id writing_book %>" class="with_action"> <tr id="<%= dom_id writing_book %>" class="with_action">
<td> <td class="span1">
<% if (writing_book.create_user_id == current_user.id) || is_manager? %> <% if (writing_book.create_user_id == current_user.id) || is_manager? %>
<%= check_box_tag 'to_delete[]', writing_book.id, false, :class => "checkbox_in_list" %> <%= check_box_tag 'to_delete[]', writing_book.id, false, :class => "checkbox_in_list" %>
<% end -%> <% end -%>
</td> </td>
<td><%= writing_book.year %></td> <td class="span1"><%= writing_book.year %></td>
<td> <td class="span1">
<%= link_to writing_book.create_link, panel_personal_book_front_end_writing_book_path(writing_book) %> <%= link_to writing_book.create_link, panel_personal_book_front_end_writing_book_path(writing_book) %>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
@ -16,6 +16,6 @@
</ul> </ul>
</div> </div>
</td> </td>
<td><%= User.from_id(writing_book.create_user_id).name rescue ''%></td> <td class="span1"><%= User.from_id(writing_book.create_user_id).name rescue ''%></td>
</tr> </tr>

View File

@ -1,3 +1,14 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<h1><%= t('personal_book.editing_personal_book') %></h1> <h1><%= t('personal_book.editing_personal_book') %></h1>
<%= form_for @writing_book, :url => panel_personal_book_back_end_writing_book_path(@writing_book), :html => {:class => 'clear'} do |f| %> <%= form_for @writing_book, :url => panel_personal_book_back_end_writing_book_path(@writing_book), :html => {:class => 'clear'} do |f| %>

View File

@ -1,12 +1,22 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
<%= render 'filter' %> <%= render 'filter' %>
</div>
<table class="table main-list"> <table class="table main-list">
<thead> <thead>
<tr> <tr>
<th class="span1"></th> <th class="span1"></th>
<th class="span1"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span3"></th> <th class="span1"></th>
<th class="span2"></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbody_writing_books" class="sort-holder"> <tbody id="tbody_writing_books" class="sort-holder">

View File

@ -1,10 +1,22 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<%= flash_messages %> <%= flash_messages %>
<div id="poststuff"> <div id="poststuff">
<h1><%= t('writing_book.new_personal_book') %></h1> <h1><%= t('writing_book.new_personal_book') %></h1>
<%= form_for @writing_book, :url => panel_personal_book_back_end_writing_books_path, :html => {:class => 'clear'} do |f| %> <%= form_for @writing_book, :url => panel_personal_book_back_end_writing_books_path, :html => {:class => 'clear'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>
<% end %> <% end %>
</div> </div>
<%#= link_back %> <%#= link_back %>

View File

@ -1,5 +1,14 @@
<% # encoding: utf-8 %> <% # encoding: utf-8 %>
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<div id="isotope"> <div id="isotope">
<div class="item element"> <div class="item element">

View File

@ -2,7 +2,7 @@ module PersonalBook
OrbitApp.registration "Book",:type=> 'ModuleApp' do OrbitApp.registration "Book",:type=> 'ModuleApp' do
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true,:path=>"panel/personal_book/plugin/profile",:i18n=>'admin.personal_book' personal_plugin :enable => true,:path=>"panel/personal_book/plugin/profile",:admin_path=>"/panel/personal_book/back_end/writing_books",:i18n=>'admin.personal_book'
end end

View File

@ -9,6 +9,8 @@ class Panel::PersonalDiploma::BackEnd::DiplomasController < OrbitBackendControll
def index def index
get_plugins
@filter = params[:filter] @filter = params[:filter]
new_filter = params[:new_filter] new_filter = params[:new_filter]
@ -40,6 +42,8 @@ class Panel::PersonalDiploma::BackEnd::DiplomasController < OrbitBackendControll
def diploma_setting def diploma_setting
get_plugins
get_tags get_tags
end end
@ -58,6 +62,8 @@ class Panel::PersonalDiploma::BackEnd::DiplomasController < OrbitBackendControll
# GET /diplomas/new.xml # GET /diplomas/new.xml
def new def new
get_plugins
@diploma = Diploma.new @diploma = Diploma.new
get_tags get_tags
@ -70,6 +76,9 @@ class Panel::PersonalDiploma::BackEnd::DiplomasController < OrbitBackendControll
# GET /diplomas/1/edit # GET /diplomas/1/edit
def edit def edit
get_plugins
@diploma = Diploma.find(params[:id]) @diploma = Diploma.find(params[:id])
get_tags get_tags
@ -177,6 +186,10 @@ class Panel::PersonalDiploma::BackEnd::DiplomasController < OrbitBackendControll
# end # end
# end # end
def get_plugins
@plugins = OrbitApp::Module::Registration.all
end
def get_tags def get_tags
module_app = ModuleApp.first(:conditions => {:key => 'personal_diploma'}) module_app = ModuleApp.first(:conditions => {:key => 'personal_diploma'})
@tags = Tag.all(:conditions => {:module_app_id => module_app.id}) @tags = Tag.all(:conditions => {:module_app_id => module_app.id})

View File

@ -1,11 +1,11 @@
<tr id="<%= dom_id diploma %>" class="with_action"> <tr id="<%= dom_id diploma %>" class="with_action">
<td> <td class="span1">
<% if (diploma.create_user_id == current_user.id) || is_manager? %> <% if (diploma.create_user_id == current_user.id) || is_manager? %>
<%= check_box_tag 'to_delete[]', diploma.id, false, :class => "checkbox_in_list" %> <%= check_box_tag 'to_delete[]', diploma.id, false, :class => "checkbox_in_list" %>
<% end -%> <% end -%>
</td> </td>
<td><%= diploma.start_date.strftime("%Y.%m") %> ~ <%= diploma.end_date.strftime("%Y.%m") %></td> <td class="span1"><%= diploma.start_date.strftime("%Y.%m") %> ~ <%= diploma.end_date.strftime("%Y.%m") %></td>
<td> <td class="span1">
<%= link_to diploma.school_name, panel_personal_diploma_front_end_diploma_path(diploma) %> <%= link_to diploma.school_name, panel_personal_diploma_front_end_diploma_path(diploma) %>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
@ -16,6 +16,6 @@
</ul> </ul>
</div> </div>
</td> </td>
<td><%= User.from_id(diploma.create_user_id).name rescue ''%></td> <td class="span1"><%= User.from_id(diploma.create_user_id).name rescue ''%></td>
</tr> </tr>

View File

@ -1,10 +1,8 @@
<div id="filter" class="subnav"> <div class="table-label">
<div class="filters">
<div id="sort_headers" class="table-label"> <div id="sort_headers" class="table-label">
<%= render 'sort_headers' %> <%= render 'sort_headers' %>
</div> </div>
</div> </div>
</div>
<% content_for :page_specific_javascript do %> <% content_for :page_specific_javascript do %>
<%= javascript_include_tag "sort_header" %> <%= javascript_include_tag "sort_header" %>

View File

@ -1,5 +1,10 @@
<% # encoding: utf-8 %> <% # encoding: utf-8 %>
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<%= render :partial => 'admin/plugins/plugin_list' %>
<div id="isotope"> <div id="isotope">

View File

@ -1,3 +1,10 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<%= render :partial => 'admin/plugins/plugin_list' %>
<h1><%= t('personal_diploma.editing_personal_diploma') %></h1> <h1><%= t('personal_diploma.editing_personal_diploma') %></h1>
<%= form_for @diploma, :url => panel_personal_diploma_back_end_diploma_path(@diploma), :html => {:class => 'clear'} do |f| %> <%= form_for @diploma, :url => panel_personal_diploma_back_end_diploma_path(@diploma), :html => {:class => 'clear'} do |f| %>

View File

@ -1,12 +1,22 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
<%= render 'filter' %> <%= render 'filter' %>
</div>
<table class="table main-list"> <table class="table main-list">
<thead> <thead>
<tr> <tr>
<th class="span1"></th> <th class="span1"></th>
<th class="span1"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span3"></th> <th class="span1"></th>
<th class="span2"></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbody_diplomas" class="sort-holder"> <tbody id="tbody_diplomas" class="sort-holder">
@ -15,6 +25,7 @@
</table> </table>
<div class="form-actions form-fixed pagination-right"> <div class="form-actions form-fixed pagination-right">
<%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t('setting'), panel_personal_diploma_back_end_diploma_setting_path, :class => 'btn btn-primary pull-right' %>
<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('announcement.add_new'), new_panel_personal_diploma_back_end_diploma_path, :class => 'btn btn-primary pull-right' %> <%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('announcement.add_new'), new_panel_personal_diploma_back_end_diploma_path, :class => 'btn btn-primary pull-right' %>
<div id="diploma_pagination" class="paginationFixed"> <div id="diploma_pagination" class="paginationFixed">
<%= paginate @diplomas, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %> <%= paginate @diplomas, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>

View File

@ -1,10 +1,18 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<%= render :partial => 'admin/plugins/plugin_list' %>
<%= flash_messages %> <%= flash_messages %>
<div id="poststuff"> <div id="poststuff">
<h1><%= t('diploma.new_personal_diploma') %></h1> <h1><%= t('diploma.new_personal_diploma') %></h1>
<%= form_for @diploma, :url => panel_personal_diploma_back_end_diplomas_path, :html => {:class => 'clear'} do |f| %> <%= form_for @diploma, :url => panel_personal_diploma_back_end_diplomas_path, :html => {:class => 'clear'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>
<% end %> <% end %>
</div> </div>
<%#= link_back %> <%#= link_back %>

View File

@ -2,7 +2,7 @@ module PersonalDiploma
OrbitApp.registration "Diploma",:type=> 'ModuleApp' do OrbitApp.registration "Diploma",:type=> 'ModuleApp' do
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true,:path=>"panel/personal_diploma/plugin/profile",:i18n=>'admin.personal_diploma' personal_plugin :enable => true,:path=>"panel/personal_diploma/plugin/profile",:admin_path=>"/panel/personal_diploma/back_end/diplomas",:i18n=>'admin.personal_diploma'
end end

View File

@ -12,6 +12,8 @@ class Panel::PersonalExperience::BackEnd::ExperiencesController < OrbitBackendCo
def index def index
get_plugins
get_categorys("ExperienceCategory",params[:experience_category_ids]) get_categorys("ExperienceCategory",params[:experience_category_ids])
@filter = params[:filter] @filter = params[:filter]
new_filter = params[:new_filter] new_filter = params[:new_filter]
@ -47,6 +49,8 @@ class Panel::PersonalExperience::BackEnd::ExperiencesController < OrbitBackendCo
def experience_setting def experience_setting
get_plugins
@experience_types = ExperienceCategory.all @experience_types = ExperienceCategory.all
get_tags get_tags
@ -92,6 +96,8 @@ class Panel::PersonalExperience::BackEnd::ExperiencesController < OrbitBackendCo
# GET /experiences/new.xml # GET /experiences/new.xml
def new def new
get_plugins
@experience = Experience.new @experience = Experience.new
@experience_categorys = ExperienceCategory.all @experience_categorys = ExperienceCategory.all
@ -105,6 +111,9 @@ class Panel::PersonalExperience::BackEnd::ExperiencesController < OrbitBackendCo
# GET /experiences/1/edit # GET /experiences/1/edit
def edit def edit
get_plugins
@experience = Experience.find(params[:id]) @experience = Experience.find(params[:id])
@experience_types = ExperienceCategory.all @experience_types = ExperienceCategory.all
@ -245,6 +254,10 @@ class Panel::PersonalExperience::BackEnd::ExperiencesController < OrbitBackendCo
# end # end
# end # end
def get_plugins
@plugins = OrbitApp::Module::Registration.all
end
def get_tags def get_tags
module_app = ModuleApp.first(:conditions => {:key => 'personal_experience'}) module_app = ModuleApp.first(:conditions => {:key => 'personal_experience'})
@tags = Tag.all(:conditions => {:module_app_id => module_app.id}) @tags = Tag.all(:conditions => {:module_app_id => module_app.id})

View File

@ -1,11 +1,11 @@
<tr id="<%= dom_id experience %>" class="with_action"> <tr id="<%= dom_id experience %>" class="with_action">
<td> <td class="span1">
<% if (experience.create_user_id == current_user.id) || is_manager? %> <% if (experience.create_user_id == current_user.id) || is_manager? %>
<%= check_box_tag 'to_delete[]', experience.id, false, :class => "checkbox_in_list" %> <%= check_box_tag 'to_delete[]', experience.id, false, :class => "checkbox_in_list" %>
<% end -%> <% end -%>
</td> </td>
<td><%= experience.start_date.strftime("%Y.%m") %> ~ <%= experience.end_date.strftime("%Y.%m") %></td> <td class="span1"><%= experience.start_date.strftime("%Y.%m") %> ~ <%= experience.end_date.strftime("%Y.%m") %></td>
<td> <td class="span1">
<%= link_to experience.organizationt_title, panel_personal_experience_front_end_experience_path(experience) %> <%= link_to experience.organizationt_title, panel_personal_experience_front_end_experience_path(experience) %>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
@ -16,8 +16,8 @@
</ul> </ul>
</div> </div>
</td> </td>
<td><%= experience.department %></td> <td class="span1"><%= experience.department %></td>
<td><%= experience.job_title %></td> <td class="span1"><%= experience.job_title %></td>
<td><%= User.from_id(experience.create_user_id).name rescue ''%></td> <td class="span1"><%= User.from_id(experience.create_user_id).name rescue ''%></td>
</tr> </tr>

View File

@ -1,10 +1,8 @@
<div id="filter" class="subnav"> <div class="table-label">
<div class="filters">
<div id="sort_headers" class="table-label"> <div id="sort_headers" class="table-label">
<%= render 'sort_headers' %> <%= render 'sort_headers' %>
</div> </div>
</div> </div>
</div>
<% content_for :page_specific_javascript do %> <% content_for :page_specific_javascript do %>
<%= javascript_include_tag "sort_header" %> <%= javascript_include_tag "sort_header" %>

View File

@ -1,3 +1,13 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<h1><%= t('personal_experience.editing_personal_experience') %></h1> <h1><%= t('personal_experience.editing_personal_experience') %></h1>
<%= form_for @experience, :url => panel_personal_experience_back_end_experience_path(@experience), :html => {:class => 'clear'} do |f| %> <%= form_for @experience, :url => panel_personal_experience_back_end_experience_path(@experience), :html => {:class => 'clear'} do |f| %>

View File

@ -1,5 +1,14 @@
<% # encoding: utf-8 %> <% # encoding: utf-8 %>
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<div id="isotope"> <div id="isotope">
<div class="item element"> <div class="item element">

View File

@ -1,12 +1,24 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
<%= render 'filter' %> <%= render 'filter' %>
</div>
<table class="table main-list"> <table class="table main-list">
<thead> <thead>
<tr> <tr>
<th class="span1"></th> <th class="span1"></th>
<th class="span1"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span3"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span1"></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbody_experiences" class="sort-holder"> <tbody id="tbody_experiences" class="sort-holder">
@ -15,6 +27,7 @@
</table> </table>
<div class="form-actions form-fixed pagination-right"> <div class="form-actions form-fixed pagination-right">
<%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t('setting'), panel_personal_experience_back_end_experience_setting_path, :class => 'btn btn-primary pull-right' %>
<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('announcement.add_new'), new_panel_personal_experience_back_end_experience_path, :class => 'btn btn-primary pull-right' %> <%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('announcement.add_new'), new_panel_personal_experience_back_end_experience_path, :class => 'btn btn-primary pull-right' %>
<div id="experience_pagination" class="paginationFixed"> <div id="experience_pagination" class="paginationFixed">
<%= paginate @experiences, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %> <%= paginate @experiences, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>

View File

@ -1,10 +1,21 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<%= flash_messages %> <%= flash_messages %>
<div id="poststuff"> <div id="poststuff">
<h1><%= t('experience.new_personal_experience') %></h1> <h1><%= t('experience.new_personal_experience') %></h1>
<%= form_for @experience, :url => panel_personal_experience_back_end_experiences_path, :html => {:class => 'clear'} do |f| %> <%= form_for @experience, :url => panel_personal_experience_back_end_experiences_path, :html => {:class => 'clear'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>
<% end %> <% end %>
</div> </div>
<%#= link_back %> <%#= link_back %>

View File

@ -2,7 +2,7 @@ module PersonalExperience
OrbitApp.registration "Experience",:type=> 'ModuleApp' do OrbitApp.registration "Experience",:type=> 'ModuleApp' do
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true,:path=>"panel/personal_experience/plugin/profile",:i18n=>'admin.personal_experience' personal_plugin :enable => true,:path=>"panel/personal_experience/plugin/profile",:admin_path=>"/panel/personal_experience/back_end/experiences",:i18n=>'admin.personal_experience'
end end

View File

@ -12,6 +12,8 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
def index def index
get_plugins
get_categorys("HonorCategory",params[:honor_category_ids]) get_categorys("HonorCategory",params[:honor_category_ids])
@filter = params[:filter] @filter = params[:filter]
new_filter = params[:new_filter] new_filter = params[:new_filter]
@ -47,6 +49,8 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
def honor_setting def honor_setting
get_plugins
@honor_types = HonorCategory.all @honor_types = HonorCategory.all
get_tags get_tags
@ -92,6 +96,8 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
# GET /honors/new.xml # GET /honors/new.xml
def new def new
get_plugins
@honor = Honor.new @honor = Honor.new
@honor_categorys = HonorCategory.all @honor_categorys = HonorCategory.all
@ -105,6 +111,9 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
# GET /honors/1/edit # GET /honors/1/edit
def edit def edit
get_plugins
@honor = Honor.find(params[:id]) @honor = Honor.find(params[:id])
@honor_types = HonorCategory.all @honor_types = HonorCategory.all
@ -248,6 +257,10 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
# end # end
# end # end
def get_plugins
@plugins = OrbitApp::Module::Registration.all
end
def get_tags def get_tags
module_app = ModuleApp.first(:conditions => {:key => 'personal_honor'}) module_app = ModuleApp.first(:conditions => {:key => 'personal_honor'})
@tags = Tag.all(:conditions => {:module_app_id => module_app.id}) @tags = Tag.all(:conditions => {:module_app_id => module_app.id})

View File

@ -1,10 +1,8 @@
<div id="filter" class="subnav"> <div class="table-label">
<div class="filters">
<div id="sort_headers" class="table-label"> <div id="sort_headers" class="table-label">
<%= render 'sort_headers' %> <%= render 'sort_headers' %>
</div> </div>
</div> </div>
</div>
<% content_for :page_specific_javascript do %> <% content_for :page_specific_javascript do %>
<%= javascript_include_tag "sort_header" %> <%= javascript_include_tag "sort_header" %>

View File

@ -1,11 +1,11 @@
<tr id="<%= dom_id honor %>" class="with_action"> <tr id="<%= dom_id honor %>" class="with_action">
<td> <td class="span1">
<% if (honor.create_user_id == current_user.id) || is_manager? %> <% if (honor.create_user_id == current_user.id) || is_manager? %>
<%= check_box_tag 'to_delete[]', honor.id, false, :class => "checkbox_in_list" %> <%= check_box_tag 'to_delete[]', honor.id, false, :class => "checkbox_in_list" %>
<% end -%> <% end -%>
</td> </td>
<td><%= honor.year %></td> <td class="span1"><%= honor.year %></td>
<td> <td class="span1">
<%= link_to honor.award_name, panel_personal_honor_front_end_honor_path(honor) %> <%= link_to honor.award_name, panel_personal_honor_front_end_honor_path(honor) %>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
@ -16,7 +16,7 @@
</ul> </ul>
</div> </div>
</td> </td>
<td><%= honor.awarding_unit %></td> <td class="span1"><%= honor.awarding_unit %></td>
<td><%= User.from_id(honor.create_user_id).name rescue ''%></td> <td class="span1"><%= User.from_id(honor.create_user_id).name rescue ''%></td>
</tr> </tr>

View File

@ -1,3 +1,13 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<h1><%= t('personal_honor.editing_personal_honor') %></h1> <h1><%= t('personal_honor.editing_personal_honor') %></h1>
<%= form_for @honor, :url => panel_personal_honor_back_end_honor_path(@honor), :html => {:class => 'clear'} do |f| %> <%= form_for @honor, :url => panel_personal_honor_back_end_honor_path(@honor), :html => {:class => 'clear'} do |f| %>

View File

@ -1,5 +1,14 @@
<% # encoding: utf-8 %> <% # encoding: utf-8 %>
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<div id="isotope"> <div id="isotope">
<div class="item element"> <div class="item element">

View File

@ -1,12 +1,23 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
<%= render 'filter' %> <%= render 'filter' %>
</div>
<table class="table main-list"> <table class="table main-list">
<thead> <thead>
<tr> <tr>
<th class="span1"></th> <th class="span1"></th>
<th class="span1"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span3"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbody_honors" class="sort-holder"> <tbody id="tbody_honors" class="sort-holder">

View File

@ -1,10 +1,21 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<%= flash_messages %> <%= flash_messages %>
<div id="poststuff"> <div id="poststuff">
<h1><%= t('honor.new_personal_honor') %></h1> <h1><%= t('honor.new_personal_honor') %></h1>
<%= form_for @honor, :url => panel_personal_honor_back_end_honors_path, :html => {:class => 'clear'} do |f| %> <%= form_for @honor, :url => panel_personal_honor_back_end_honors_path, :html => {:class => 'clear'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>
<% end %> <% end %>
</div> </div>
<%#= link_back %> <%#= link_back %>

View File

@ -2,7 +2,7 @@ module PersonalHonor
OrbitApp.registration "Honor",:type=> 'ModuleApp' do OrbitApp.registration "Honor",:type=> 'ModuleApp' do
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true,:path=>"panel/personal_honor/plugin/profile",:i18n=>'admin.personal_honor' personal_plugin :enable => true,:path=>"panel/personal_honor/plugin/profile",:admin_path=>"/panel/personal_honor/back_end/honors",:i18n=>'admin.personal_honor'
end end

View File

@ -12,6 +12,8 @@ class Panel::PersonalJournal::BackEnd::WritingJournalsController < OrbitBackendC
def index def index
get_plugins
get_categorys("JournalPaperType",params[:journal_paper_type_id]) get_categorys("JournalPaperType",params[:journal_paper_type_id])
@filter = params[:filter] @filter = params[:filter]
new_filter = params[:new_filter] new_filter = params[:new_filter]
@ -50,7 +52,7 @@ class Panel::PersonalJournal::BackEnd::WritingJournalsController < OrbitBackendC
def writing_journal_setting def writing_journal_setting
@plugins = ModuleApp.where(has_plugin: true).order_by(:title, :asc) get_plugins
@level_types = JournalLevelType.all @level_types = JournalLevelType.all
@author_types = JournalAuthorType.all @author_types = JournalAuthorType.all
@ -148,6 +150,8 @@ class Panel::PersonalJournal::BackEnd::WritingJournalsController < OrbitBackendC
# GET /writing_journals/new.xml # GET /writing_journals/new.xml
def new def new
get_plugins
@writing_journal = WritingJournal.new @writing_journal = WritingJournal.new
# @writing_journal_files = WritingJournalFile.all # @writing_journal_files = WritingJournalFile.all
@level_types = JournalLevelType.all @level_types = JournalLevelType.all
@ -164,6 +168,9 @@ class Panel::PersonalJournal::BackEnd::WritingJournalsController < OrbitBackendC
# GET /writing_journals/1/edit # GET /writing_journals/1/edit
def edit def edit
get_plugins
@writing_journal = WritingJournal.find(params[:id]) @writing_journal = WritingJournal.find(params[:id])
@level_types = JournalLevelType.all @level_types = JournalLevelType.all
@ -355,6 +362,10 @@ class Panel::PersonalJournal::BackEnd::WritingJournalsController < OrbitBackendC
# end # end
# end # end
def get_plugins
@plugins = OrbitApp::Module::Registration.all
end
def get_tags def get_tags
module_app = ModuleApp.first(:conditions => {:key => 'personal_journal'}) module_app = ModuleApp.first(:conditions => {:key => 'personal_journal'})
@tags = Tag.all(:conditions => {:module_app_id => module_app.id}) @tags = Tag.all(:conditions => {:module_app_id => module_app.id})

View File

@ -1,36 +1,8 @@
<div id='filter' class="subnav"> <div class="table-label">
<ul class="nav nav-pills filter">
<li class="accordion-group">
<div class="accordion-heading">
<a href="#collapse-status" data-toggle="collapse" data-parent=".filters" class="accordion-toggle"><%= t("personal_journal.status") %> <b class="web-symbol"></b></a>
</div>
</li>
<li class="accordion-group">
<div class="accordion-heading">
<a href="#collapse-category" data-toggle="collapse" data-parent=".filters" class="accordion-toggle"><%= t("personal_journal.categories") %> <b class="web-symbol"></b></a>
</div>
</li>
<li class="accordion-group">
<div class="accordion-heading">
<a href="#collapse-tags" data-toggle="collapse" data-parent=".filters" class="accordion-toggle"><%= t("personal_journal.tags") %> <b class="web-symbol"></b></a>
</div>
</li>
</ul>
<div class="filters">
<div class="accordion-body collapse" id="collapse-status">
<%#= render 'filter_status' %>
</div>
<div class="accordion-body collapse" id="collapse-category">
<%= render 'filter_categories' %>
</div>
<div class="accordion-body collapse" id="collapse-tags">
<%= render 'filter_tags' %>
</div>
<div id="sort_headers" class="table-label"> <div id="sort_headers" class="table-label">
<%= render 'sort_headers' %> <%= render 'sort_headers' %>
</div> </div>
</div> </div>
</div>
<% content_for :page_specific_javascript do %> <% content_for :page_specific_javascript do %>
<%= javascript_include_tag "sort_header" %> <%= javascript_include_tag "sort_header" %>

View File

@ -1,11 +1,11 @@
<tr id="<%= dom_id writing_journal %>" class="with_action"> <tr id="<%= dom_id writing_journal %>" class="with_action">
<td> <td class="span1">
<% if (writing_journal.create_user_id == current_user.id) || is_manager? %> <% if (writing_journal.create_user_id == current_user.id) || is_manager? %>
<%= check_box_tag 'to_delete[]', writing_journal.id, false, :class => "checkbox_in_list" %> <%= check_box_tag 'to_delete[]', writing_journal.id, false, :class => "checkbox_in_list" %>
<% end -%> <% end -%>
</td> </td>
<td><%= writing_journal.publication_date %></td> <td class="span1"><%= writing_journal.publication_date %></td>
<td> <td class="span1">
<%= link_to writing_journal.create_link , panel_personal_journal_front_end_writing_journal_path(writing_journal) %> <%= link_to writing_journal.create_link , panel_personal_journal_front_end_writing_journal_path(writing_journal) %>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
@ -16,6 +16,6 @@
</ul> </ul>
</div> </div>
</td> </td>
<td><%= User.from_id(writing_journal.create_user_id).name rescue ''%></td> <td class="span1"><%= User.from_id(writing_journal.create_user_id).name rescue ''%></td>
</tr> </tr>

View File

@ -1,3 +1,13 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<h1><%= t('personal_journal.editing_personal_journal') %></h1> <h1><%= t('personal_journal.editing_personal_journal') %></h1>
<%= form_for @writing_journal, :url => panel_personal_journal_back_end_writing_journal_path(@writing_journal), :html => {:class => 'clear'} do |f| %> <%= form_for @writing_journal, :url => panel_personal_journal_back_end_writing_journal_path(@writing_journal), :html => {:class => 'clear'} do |f| %>

View File

@ -1,12 +1,22 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
<%= render 'filter' %> <%= render 'filter' %>
</div>
<table class="table main-list"> <table class="table main-list">
<thead> <thead>
<tr> <tr>
<th class="span1"></th> <th class="span1"></th>
<th class="span1"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span3"></th> <th class="span1"></th>
<th class="span2"></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbody_writing_journals" class="sort-holder"> <tbody id="tbody_writing_journals" class="sort-holder">

View File

@ -1,10 +1,21 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<%= flash_messages %> <%= flash_messages %>
<div id="poststuff"> <div id="poststuff">
<h1><%= t('writing_journal.new_personal_journal') %></h1> <h1><%= t('writing_journal.new_personal_journal') %></h1>
<%= form_for @writing_journal, :url => panel_personal_journal_back_end_writing_journals_path, :html => {:class => 'clear'} do |f| %> <%= form_for @writing_journal, :url => panel_personal_journal_back_end_writing_journals_path, :html => {:class => 'clear'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>
<% end %> <% end %>
</div> </div>
<%#= link_back %> <%#= link_back %>

View File

@ -1,5 +1,14 @@
<% # encoding: utf-8 %> <% # encoding: utf-8 %>
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<div id="isotope"> <div id="isotope">
<div class="item element"> <div class="item element">

View File

@ -2,7 +2,7 @@ module PersonalJournal
OrbitApp.registration "Journal",:type=> 'ModuleApp' do OrbitApp.registration "Journal",:type=> 'ModuleApp' do
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true,:path=>"panel/personal_journal/plugin/profile",:i18n=>'admin.personal_journal' personal_plugin :enable => true,:path=>"panel/personal_journal/plugin/profile",:admin_path=>"/panel/personal_journal/back_end/writing_journals",:i18n=>'admin.personal_journal'
end end

View File

@ -12,6 +12,8 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController
def index def index
get_plugins
# get_categorys("LabCategory",params[:lab_category_ids]) # get_categorys("LabCategory",params[:lab_category_ids])
@filter = params[:filter] @filter = params[:filter]
new_filter = params[:new_filter] new_filter = params[:new_filter]
@ -47,6 +49,8 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController
def lab_setting def lab_setting
get_plugins
get_tags get_tags
end end
@ -65,6 +69,8 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController
# GET /labs/new.xml # GET /labs/new.xml
def new def new
get_plugins
@lab = Lab.new @lab = Lab.new
get_tags get_tags
@ -77,6 +83,9 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController
# GET /labs/1/edit # GET /labs/1/edit
def edit def edit
get_plugins
@lab = Lab.find(params[:id]) @lab = Lab.find(params[:id])
get_tags get_tags
@ -184,6 +193,10 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController
# end # end
# end # end
def get_plugins
@plugins = OrbitApp::Module::Registration.all
end
def get_tags def get_tags
module_app = ModuleApp.first(:conditions => {:key => 'personal_lab'}) module_app = ModuleApp.first(:conditions => {:key => 'personal_lab'})
@tags = Tag.all(:conditions => {:module_app_id => module_app.id}) @tags = Tag.all(:conditions => {:module_app_id => module_app.id})

View File

@ -1,10 +1,8 @@
<div id="filter" class="subnav"> <div class="table-label">
<div class="filters">
<div id="sort_headers" class="table-label"> <div id="sort_headers" class="table-label">
<%= render 'sort_headers' %> <%= render 'sort_headers' %>
</div> </div>
</div> </div>
</div>
<% content_for :page_specific_javascript do %> <% content_for :page_specific_javascript do %>
<%= javascript_include_tag "sort_header" %> <%= javascript_include_tag "sort_header" %>

View File

@ -1,11 +1,11 @@
<tr id="<%= dom_id lab %>" class="with_action"> <tr id="<%= dom_id lab %>" class="with_action">
<td> <td class="span1">
<% if (lab.create_user_id == current_user.id) || is_manager? %> <% if (lab.create_user_id == current_user.id) || is_manager? %>
<%= check_box_tag 'to_delete[]', lab.id, false, :class => "checkbox_in_list" %> <%= check_box_tag 'to_delete[]', lab.id, false, :class => "checkbox_in_list" %>
<% end -%> <% end -%>
</td> </td>
<td><%= lab.year %></td> <td class="span1"><%= lab.year %></td>
<td> <td class="span1">
<%= link_to lab.lab_title, panel_personal_lab_front_end_lab_path(lab) %> <%= link_to lab.lab_title, panel_personal_lab_front_end_lab_path(lab) %>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
@ -16,7 +16,7 @@
</ul> </ul>
</div> </div>
</td> </td>
<td><%= lab.location %></td> <td class="span1"><%= lab.location %></td>
<td><%= User.from_id(lab.create_user_id).name rescue ''%></td> <td class="span1"><%= User.from_id(lab.create_user_id).name rescue ''%></td>
</tr> </tr>

View File

@ -1,3 +1,13 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<h1><%= t('personal_lab.editing_personal_lab') %></h1> <h1><%= t('personal_lab.editing_personal_lab') %></h1>
<%= form_for @lab, :url => panel_personal_lab_back_end_lab_path(@lab), :html => {:class => 'clear'} do |f| %> <%= form_for @lab, :url => panel_personal_lab_back_end_lab_path(@lab), :html => {:class => 'clear'} do |f| %>

View File

@ -1,12 +1,23 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
<%= render 'filter' %> <%= render 'filter' %>
</div>
<table class="table main-list"> <table class="table main-list">
<thead> <thead>
<tr> <tr>
<th class="span1"></th> <th class="span1"></th>
<th class="span1"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span3"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbody_labs" class="sort-holder"> <tbody id="tbody_labs" class="sort-holder">

View File

@ -1,5 +1,14 @@
<% # encoding: utf-8 %> <% # encoding: utf-8 %>
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<div id="isotope"> <div id="isotope">

View File

@ -1,10 +1,21 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<%= flash_messages %> <%= flash_messages %>
<div id="poststuff"> <div id="poststuff">
<h1><%= t('lab.new_personal_lab') %></h1> <h1><%= t('lab.new_personal_lab') %></h1>
<%= form_for @lab, :url => panel_personal_lab_back_end_labs_path, :html => {:class => 'clear'} do |f| %> <%= form_for @lab, :url => panel_personal_lab_back_end_labs_path, :html => {:class => 'clear'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>
<% end %> <% end %>
</div> </div>
<%#= link_back %> <%#= link_back %>

View File

@ -2,7 +2,7 @@ module PersonalLab
OrbitApp.registration "Lab",:type=> 'ModuleApp' do OrbitApp.registration "Lab",:type=> 'ModuleApp' do
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true,:path=>"panel/personal_lab/plugin/profile",:i18n=>'admin.personal_lab' personal_plugin :enable => true,:path=>"panel/personal_lab/plugin/profile",:admin_path=>"/panel/personal_lab/back_end/labs",:i18n=>'admin.personal_lab'
end end

View File

@ -1,209 +0,0 @@
<% # encoding: utf-8 %>
<%= f.error_messages %>
<!--Widget start-->
<div id="sub-wiget">
<div id="widget-tags" class="widget-box widget-size-300">
<div class="widget-action clear tip" title="Setting">
<a class="action"><i class="icon-cog icon-white"></i></a>
</div>
<h3 class="widget-title"><i class="icons-tag"></i>Tags</h3>
<div class="widget-content clear form-horizontal">
<% @tags.each do |tag| %>
<%= content_tag :label,:class => "checkbox inline" do -%>
<%= check_box_tag 'writing_patent[tag_ids][]', tag.id, @writing_patent.tag_ids.include?(tag.id)%>
<%= tag[I18n.locale] %>
<%= hidden_field_tag 'writing_patent[tag_ids][]', '' %>
<% end %>
<% end %>
</div>
</div>
</div>
<!--Wiget End-->
<!--Post Start-->
<div id="post-body">
<div id="post-body-content" class="clear">
<div class="title">
<%= f.label :year ,t("personal_patent.year")%>
<%= select_year((@writing_patent.year ? @writing_patent.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'writing_patent[year]'} ) %>
</div>
<div class="title">
<%= f.label :writing_patent_category ,t("personal_patent.writing_patent_category")%>
<%= f.select :writing_patent_category_id, @writing_patent_categorys.collect {|t| [ t.title, t.id ]} %>
</div>
<div class="title">
<%= f.label :period_start_date ,t("personal_patent.period_start_date")%>
<%= f.date_select :period_start_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1890, :order => [:year, :month], :discard_day => true }, {:class => 'span1'} %>
</div>
<div class="title">
<%= f.label :period_end_date ,t("personal_patent.period_end_date")%>
<%= f.date_select :period_end_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1890, :order => [:year, :month], :discard_day => true }, {:class => 'span1'} %>
</div>
<ul class="nav nav-tabs">
<% @site_valid_locales.each_with_index do |locale, i| %>
<li <%= ( i == 0 ) ? "class=active" : '' %>><a data-toggle="tab" href=".<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
<% end %>
</ul>
<div class="tab-content">
<% @site_valid_locales.each_with_index do |locale, i| %>
<div class="<%= locale %> fade tab-pane <%= ( i == 0 ) ? "in active" : '' %>">
<div class="title">
<%= f.label :writing_patent_title ,t("personal_patent.writing_patent_title")%>
<%= f.fields_for :writing_patent_title_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_patent.writing_patent_title_translations[locale] rescue nil) %>
<% end %>
</div>
<div class="title">
<%= f.label :job_title ,t("personal_patent.job_title")%>
<%= f.fields_for :job_title_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_patent.job_title_translations[locale] rescue nil) %>
<% end %>
</div>
<div class="title">
<%= f.label :participator ,t("personal_patent.participator")%>
<%= f.fields_for :participator_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_patent.participator_translations[locale] rescue nil) %>
<% end %>
</div>
<div class="title">
<%= f.label :unit ,t("personal_patent.unit")%>
<%= f.fields_for :unit_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_patent.unit_translations[locale] rescue nil) %>
<% end %>
</div>
</div>
<% end %>
</div>
<div class="title">
<%= f.label :url, t("personal_patent.url") %>
<%= f.text_field :url %>
</div>
<div class="title">
<%= f.label :keywords, t("personal_patent.keywords") %>
<%= f.text_field :keywords %>
</div>
<div class="title">
<%= f.label :abstract, t("personal_patent.abstract") %>
<%= f.text_field :abstract %>
</div>
<div id="title">
<%= f.label :language, t("personal_patent.language") %>
<%= f.radio_button :language, "Chinese" %> <%= t("personal_patent.Chinese") %>
<%= f.radio_button :language, "English" %> <%= t("personal_patent.English") %>
</div>
<div class="title">
<%= f.label :note, t("personal_patent.note") %>
<%= f.text_area :note, :size => "60x3" %>
</div>
</div>
<div>
<div id='plugin_files' class="plugin_files_block">
<table class="table table-condensed">
<thead>
<tr>
<th>File</th>
<th>File Name</th>
<th class="span1"></th>
</tr>
</thead>
<tfoot>
<tr>
<td style="text-align:center" colspan="3">
<div id='add_plugin_file' class="info_input plugin_files_block">
<%= hidden_field_tag 'plugin_file_field_count', @writing_patent.writing_patent_files.count %>
<a class="add"><span class="btn btn-primary btn-small"><i class="icon-plus icon-white"></i> ADD/新增</span></a>
</div>
</td>
</tr>
</tfoot>
<tbody>
<% @writing_patent.writing_patent_files.each_with_index do |writing_patent_file, i| %>
<%= f.fields_for :writing_patent_files, writing_patent_file do |f| %>
<%= render :partial => 'form_file', :object => writing_patent_file, :locals => {:f => f, :i => i} %>
<% end %>
<% end %>
</tbody>
</table>
</div>
</div>
</div>
<!--Post End-->
<div class="form-actions">
<%= f.submit t('submit'), :class=>'btn btn-primary' %>
<%= link_to t('cancel'), get_go_back, :class=>"btn" %>
</div>
<% content_for :page_specific_javascript do %>
<%= javascript_include_tag "archive_plugin_form" %>
<script>
$('#add_plugin_file a.add').live('click', function(){
var new_id = $(this).prev().attr('value');
var old_id = new RegExp("new_add_plugin_files", "g");
$(this).prev().attr('value', parseInt(new_id) + 1);
$(this).parents('table').append(("<%= escape_javascript(add_attribute 'form_file', f, :writing_patent_files) %>").replace(old_id, new_id));
});
$('.add_plugin_files_block a.delete').live('click', function(){
$(this).parents('.list_item').remove();
});
$('.action a.remove_existing_record').live('click', function(){
$(this).next('.should_destroy').attr('value', 1);
$("tr#add_plugin_file_" + $(this).prev().attr('value')).hide();
});
</script>
<% end %>

View File

@ -1,209 +0,0 @@
<% # encoding: utf-8 %>
<%= f.error_messages %>
<!--Widget start-->
<div id="sub-wiget">
<div id="widget-tags" class="widget-box widget-size-300">
<div class="widget-action clear tip" title="Setting">
<a class="action"><i class="icon-cog icon-white"></i></a>
</div>
<h3 class="widget-title"><i class="icons-tag"></i>Tags</h3>
<div class="widget-content clear form-horizontal">
<% @tags.each do |tag| %>
<%= content_tag :label,:class => "checkbox inline" do -%>
<%= check_box_tag 'writing_patent[tag_ids][]', tag.id, @writing_patent.tag_ids.include?(tag.id)%>
<%= tag[I18n.locale] %>
<%= hidden_field_tag 'writing_patent[tag_ids][]', '' %>
<% end %>
<% end %>
</div>
</div>
</div>
<!--Wiget End-->
<!--Post Start-->
<div id="post-body">
<div id="post-body-content" class="clear">
<div class="title">
<%= f.label :year ,t("personal_patent.year")%>
<%= select_year((@writing_patent.year ? @writing_patent.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'writing_patent[year]'} ) %>
</div>
<div class="title">
<%= f.label :writing_patent_category ,t("personal_patent.writing_patent_category")%>
<%= f.select :writing_patent_category_id, @writing_patent_categorys.collect {|t| [ t.title, t.id ]} %>
</div>
<div class="title">
<%= f.label :period_start_date ,t("personal_patent.period_start_date")%>
<%= f.date_select :period_start_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1890, :order => [:year, :month], :discard_day => true }, {:class => 'span1'} %>
</div>
<div class="title">
<%= f.label :period_end_date ,t("personal_patent.period_end_date")%>
<%= f.date_select :period_end_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1890, :order => [:year, :month], :discard_day => true }, {:class => 'span1'} %>
</div>
<ul class="nav nav-tabs">
<% @site_valid_locales.each_with_index do |locale, i| %>
<li <%= ( i == 0 ) ? "class=active" : '' %>><a data-toggle="tab" href=".<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
<% end %>
</ul>
<div class="tab-content">
<% @site_valid_locales.each_with_index do |locale, i| %>
<div class="<%= locale %> fade tab-pane <%= ( i == 0 ) ? "in active" : '' %>">
<div class="title">
<%= f.label :writing_patent_title ,t("personal_patent.writing_patent_title")%>
<%= f.fields_for :writing_patent_title_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_patent.writing_patent_title_translations[locale] rescue nil) %>
<% end %>
</div>
<div class="title">
<%= f.label :job_title ,t("personal_patent.job_title")%>
<%= f.fields_for :job_title_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_patent.job_title_translations[locale] rescue nil) %>
<% end %>
</div>
<div class="title">
<%= f.label :participator ,t("personal_patent.participator")%>
<%= f.fields_for :participator_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_patent.participator_translations[locale] rescue nil) %>
<% end %>
</div>
<div class="title">
<%= f.label :unit ,t("personal_patent.unit")%>
<%= f.fields_for :unit_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_patent.unit_translations[locale] rescue nil) %>
<% end %>
</div>
</div>
<% end %>
</div>
<div class="title">
<%= f.label :url, t("personal_patent.url") %>
<%= f.text_field :url %>
</div>
<div class="title">
<%= f.label :keywords, t("personal_patent.keywords") %>
<%= f.text_field :keywords %>
</div>
<div class="title">
<%= f.label :abstract, t("personal_patent.abstract") %>
<%= f.text_field :abstract %>
</div>
<div id="title">
<%= f.label :language, t("personal_patent.language") %>
<%= f.radio_button :language, "Chinese" %> <%= t("personal_patent.Chinese") %>
<%= f.radio_button :language, "English" %> <%= t("personal_patent.English") %>
</div>
<div class="title">
<%= f.label :note, t("personal_patent.note") %>
<%= f.text_area :note, :size => "60x3" %>
</div>
</div>
<div>
<div id='plugin_files' class="plugin_files_block">
<table class="table table-condensed">
<thead>
<tr>
<th>File</th>
<th>File Name</th>
<th class="span1"></th>
</tr>
</thead>
<tfoot>
<tr>
<td style="text-align:center" colspan="3">
<div id='add_plugin_file' class="info_input plugin_files_block">
<%= hidden_field_tag 'plugin_file_field_count', @writing_patent.writing_patent_files.count %>
<a class="add"><span class="btn btn-primary btn-small"><i class="icon-plus icon-white"></i> ADD/新增</span></a>
</div>
</td>
</tr>
</tfoot>
<tbody>
<% @writing_patent.writing_patent_files.each_with_index do |writing_patent_file, i| %>
<%= f.fields_for :writing_patent_files, writing_patent_file do |f| %>
<%= render :partial => 'form_file', :object => writing_patent_file, :locals => {:f => f, :i => i} %>
<% end %>
<% end %>
</tbody>
</table>
</div>
</div>
</div>
<!--Post End-->
<div class="form-actions">
<%= f.submit t('submit'), :class=>'btn btn-primary' %>
<%= link_to t('cancel'), get_go_back, :class=>"btn" %>
</div>
<% content_for :page_specific_javascript do %>
<%= javascript_include_tag "archive_plugin_form" %>
<script>
$('#add_plugin_file a.add').live('click', function(){
var new_id = $(this).prev().attr('value');
var old_id = new RegExp("new_add_plugin_files", "g");
$(this).prev().attr('value', parseInt(new_id) + 1);
$(this).parents('table').append(("<%= escape_javascript(add_attribute 'form_file', f, :writing_patent_files) %>").replace(old_id, new_id));
});
$('.add_plugin_files_block a.delete').live('click', function(){
$(this).parents('.list_item').remove();
});
$('.action a.remove_existing_record').live('click', function(){
$(this).next('.should_destroy').attr('value', 1);
$("tr#add_plugin_file_" + $(this).prev().attr('value')).hide();
});
</script>
<% end %>

View File

@ -12,6 +12,8 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon
def index def index
get_plugins
get_categorys("WritingPatentCategory",params[:writing_patent_category_ids]) get_categorys("WritingPatentCategory",params[:writing_patent_category_ids])
@filter = params[:filter] @filter = params[:filter]
new_filter = params[:new_filter] new_filter = params[:new_filter]
@ -47,6 +49,8 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon
def writing_patent_setting def writing_patent_setting
get_plugins
@patent_types = WritingPatentCategory.all @patent_types = WritingPatentCategory.all
get_tags get_tags
@ -92,6 +96,8 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon
# GET /writing_patents/new.xml # GET /writing_patents/new.xml
def new def new
get_plugins
@writing_patent = WritingPatent.new @writing_patent = WritingPatent.new
@writing_patent_categorys = WritingPatentCategory.all @writing_patent_categorys = WritingPatentCategory.all
@ -105,6 +111,9 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon
# GET /writing_patents/1/edit # GET /writing_patents/1/edit
def edit def edit
get_plugins
@writing_patent = WritingPatent.find(params[:id]) @writing_patent = WritingPatent.find(params[:id])
@patent_types = WritingPatentCategory.all @patent_types = WritingPatentCategory.all
@ -245,6 +254,10 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon
# end # end
# end # end
def get_plugins
@plugins = OrbitApp::Module::Registration.all
end
def get_tags def get_tags
module_app = ModuleApp.first(:conditions => {:key => 'personal_patent'}) module_app = ModuleApp.first(:conditions => {:key => 'personal_patent'})
@tags = Tag.all(:conditions => {:module_app_id => module_app.id}) @tags = Tag.all(:conditions => {:module_app_id => module_app.id})

View File

@ -1,10 +1,8 @@
<div id="filter" class="subnav"> <div class="table-label">
<div class="filters">
<div id="sort_headers" class="table-label"> <div id="sort_headers" class="table-label">
<%= render 'sort_headers' %> <%= render 'sort_headers' %>
</div> </div>
</div> </div>
</div>
<% content_for :page_specific_javascript do %> <% content_for :page_specific_javascript do %>
<%= javascript_include_tag "sort_header" %> <%= javascript_include_tag "sort_header" %>

View File

@ -1,11 +1,11 @@
<tr id="<%= dom_id writing_patent %>" class="with_action"> <tr id="<%= dom_id writing_patent %>" class="with_action">
<td> <td class="span1">
<% if (writing_patent.create_user_id == current_user.id) || is_manager? %> <% if (writing_patent.create_user_id == current_user.id) || is_manager? %>
<%= check_box_tag 'to_delete[]', writing_patent.id, false, :class => "checkbox_in_list" %> <%= check_box_tag 'to_delete[]', writing_patent.id, false, :class => "checkbox_in_list" %>
<% end -%> <% end -%>
</td> </td>
<td><%= writing_patent.publish_date.strftime("%Y.%m") %></td> <td class="span1"><%= writing_patent.publish_date.strftime("%Y.%m") %></td>
<td> <td class="span1">
<%= link_to writing_patent.patent_title, panel_personal_patent_front_end_writing_patent_path(writing_patent) %> <%= link_to writing_patent.patent_title, panel_personal_patent_front_end_writing_patent_path(writing_patent) %>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
@ -16,10 +16,10 @@
</ul> </ul>
</div> </div>
</td> </td>
<td><%= writing_patent.patent_no %></td> <td class="span1"><%= writing_patent.patent_no %></td>
<td><%= writing_patent.patent_country %></td> <td class="span1"><%= writing_patent.patent_country %></td>
<td><%= writing_patent.authors %></td> <td class="span1"><%= writing_patent.authors %></td>
<td><%= writing_patent.url %></td> <td class="span1"><%= writing_patent.url %></td>
<td><%= User.from_id(writing_patent.create_user_id).name rescue ''%></td> <td class="span1"><%= User.from_id(writing_patent.create_user_id).name rescue ''%></td>
</tr> </tr>

View File

@ -1,3 +1,13 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<h1><%= t('personal_patent.editing_personal_patent') %></h1> <h1><%= t('personal_patent.editing_personal_patent') %></h1>
<%= form_for @writing_patent, :url => panel_personal_patent_back_end_writing_patent_path(@writing_patent), :html => {:class => 'clear'} do |f| %> <%= form_for @writing_patent, :url => panel_personal_patent_back_end_writing_patent_path(@writing_patent), :html => {:class => 'clear'} do |f| %>

View File

@ -1,12 +1,26 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
<%= render 'filter' %> <%= render 'filter' %>
</div>
<table class="table main-list"> <table class="table main-list">
<thead> <thead>
<tr> <tr>
<th class="span1"></th> <th class="span1"></th>
<th class="span1"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span3"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span1"></th>
<th class="span1"></th>
<th class="span1"></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbody_writing_patents" class="sort-holder"> <tbody id="tbody_writing_patents" class="sort-holder">

View File

@ -1,10 +1,21 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<%= flash_messages %> <%= flash_messages %>
<div id="poststuff"> <div id="poststuff">
<h1><%= t('writing_patent.new_personal_patent') %></h1> <h1><%= t('writing_patent.new_personal_patent') %></h1>
<%= form_for @writing_patent, :url => panel_personal_patent_back_end_writing_patents_path, :html => {:class => 'clear'} do |f| %> <%= form_for @writing_patent, :url => panel_personal_patent_back_end_writing_patents_path, :html => {:class => 'clear'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>
<% end %> <% end %>
</div> </div>
<%#= link_back %> <%#= link_back %>

View File

@ -1,5 +1,14 @@
<% # encoding: utf-8 %> <% # encoding: utf-8 %>
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<div id="isotope"> <div id="isotope">
<div class="item element"> <div class="item element">

View File

@ -2,7 +2,7 @@ module PersonalPatent
OrbitApp.registration "Patent",:type=> 'ModuleApp' do OrbitApp.registration "Patent",:type=> 'ModuleApp' do
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true,:path=>"panel/personal_patent/plugin/profile",:i18n=>'admin.personal_patent' personal_plugin :enable => true,:path=>"panel/personal_patent/plugin/profile",:admin_path=>"/panel/personal_patent/back_end/writing_patents",:i18n=>'admin.personal_patent'
end end

View File

@ -12,6 +12,8 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll
def index def index
get_plugins
get_categorys("ProjectCategory",params[:project_category_id]) get_categorys("ProjectCategory",params[:project_category_id])
@filter = params[:filter] @filter = params[:filter]
new_filter = params[:new_filter] new_filter = params[:new_filter]
@ -47,6 +49,8 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll
def project_setting def project_setting
get_plugins
@project_types = ProjectCategory.all @project_types = ProjectCategory.all
get_tags get_tags
@ -92,6 +96,8 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll
# GET /projects/new.xml # GET /projects/new.xml
def new def new
get_plugins
@project = Project.new @project = Project.new
@project_categorys = ProjectCategory.all @project_categorys = ProjectCategory.all
@ -105,6 +111,9 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll
# GET /projects/1/edit # GET /projects/1/edit
def edit def edit
get_plugins
@project = Project.find(params[:id]) @project = Project.find(params[:id])
@project_types = ProjectCategory.all @project_types = ProjectCategory.all
@ -245,6 +254,10 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll
# end # end
# end # end
def get_plugins
@plugins = OrbitApp::Module::Registration.all
end
def get_tags def get_tags
module_app = ModuleApp.first(:conditions => {:key => 'personal_patent'}) module_app = ModuleApp.first(:conditions => {:key => 'personal_patent'})
@tags = Tag.all(:conditions => {:module_app_id => module_app.id}) @tags = Tag.all(:conditions => {:module_app_id => module_app.id})

View File

@ -1,10 +1,8 @@
<div id="filter" class="subnav"> <div class="table-label">
<div class="filters">
<div id="sort_headers" class="table-label"> <div id="sort_headers" class="table-label">
<%= render 'sort_headers' %> <%= render 'sort_headers' %>
</div> </div>
</div> </div>
</div>
<% content_for :page_specific_javascript do %> <% content_for :page_specific_javascript do %>
<%= javascript_include_tag "sort_header" %> <%= javascript_include_tag "sort_header" %>

View File

@ -1,11 +1,11 @@
<tr id="<%= dom_id project %>" class="with_action"> <tr id="<%= dom_id project %>" class="with_action">
<td> <td class="span1">
<% if (project.create_user_id == current_user.id) || is_manager? %> <% if (project.create_user_id == current_user.id) || is_manager? %>
<%= check_box_tag 'to_delete[]', project.id, false, :class => "checkbox_in_list" %> <%= check_box_tag 'to_delete[]', project.id, false, :class => "checkbox_in_list" %>
<% end -%> <% end -%>
</td> </td>
<td><%= project.period_start_date.strftime("%Y.%m") %> ~ <%= project.period_end_date.strftime("%Y.%m") %></td> <td class="span1"><%= project.period_start_date.strftime("%Y.%m") %> ~ <%= project.period_end_date.strftime("%Y.%m") %></td>
<td> <td class="span1">
<%= link_to project.project_title, panel_personal_project_front_end_project_path(project) %> <%= link_to project.project_title, panel_personal_project_front_end_project_path(project) %>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
@ -16,9 +16,9 @@
</ul> </ul>
</div> </div>
</td> </td>
<td><%= project.participator %></td> <td class="span1"><%= project.participator %></td>
<td><%= project.job_title %></td> <td class="span1"><%= project.job_title %></td>
<td><%= project.unit %></td> <td class="span1"><%= project.unit %></td>
<td><%= User.from_id(project.create_user_id).name rescue ''%></td> <td class="span1"><%= User.from_id(project.create_user_id).name rescue ''%></td>
</tr> </tr>

View File

@ -1,3 +1,13 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<h1><%= t('personal_project.editing_personal_project') %></h1> <h1><%= t('personal_project.editing_personal_project') %></h1>
<%= form_for @project, :url => panel_personal_project_back_end_project_path(@project), :html => {:class => 'clear'} do |f| %> <%= form_for @project, :url => panel_personal_project_back_end_project_path(@project), :html => {:class => 'clear'} do |f| %>

View File

@ -1,12 +1,25 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
<%= render 'filter' %> <%= render 'filter' %>
</div>
<table class="table main-list"> <table class="table main-list">
<thead> <thead>
<tr> <tr>
<th class="span1"></th> <th class="span1"></th>
<th class="span1"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span3"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span1"></th>
<th class="span1"></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbody_projects" class="sort-holder"> <tbody id="tbody_projects" class="sort-holder">

View File

@ -1,10 +1,21 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<%= flash_messages %> <%= flash_messages %>
<div id="poststuff"> <div id="poststuff">
<h1><%= t('project.new_personal_project') %></h1> <h1><%= t('project.new_personal_project') %></h1>
<%= form_for @project, :url => panel_personal_project_back_end_projects_path, :html => {:class => 'clear'} do |f| %> <%= form_for @project, :url => panel_personal_project_back_end_projects_path, :html => {:class => 'clear'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>
<% end %> <% end %>
</div> </div>
<%#= link_back %> <%#= link_back %>

View File

@ -1,5 +1,14 @@
<% # encoding: utf-8 %> <% # encoding: utf-8 %>
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<div id="isotope"> <div id="isotope">
<div class="item element"> <div class="item element">

View File

@ -1,8 +1,8 @@
module PersonalProject module PersonalProject
OrbitApp.registration "Research Project",:type=> 'ModuleApp' do OrbitApp.registration "Project",:type=> 'ModuleApp' do
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true,:path=>"panel/personal_project/plugin/profile",:i18n=>'admin.personal_project' personal_plugin :enable => true,:path=>"panel/personal_project/plugin/profile",:admin_path=>"/panel/personal_project/back_end/projects",:i18n=>'admin.personal_project'
end end

View File

@ -8,6 +8,7 @@ class Panel::PersonalResearch::BackEnd::ResearchsController < OrbitBackendContro
def index def index
get_plugins
@filter = params[:filter] @filter = params[:filter]
new_filter = params[:new_filter] new_filter = params[:new_filter]
@ -52,6 +53,8 @@ class Panel::PersonalResearch::BackEnd::ResearchsController < OrbitBackendContro
# GET /researchs/new.xml # GET /researchs/new.xml
def new def new
get_plugins
@research = Research.new @research = Research.new
get_tags get_tags
@ -64,6 +67,9 @@ class Panel::PersonalResearch::BackEnd::ResearchsController < OrbitBackendContro
# GET /researchs/1/edit # GET /researchs/1/edit
def edit def edit
get_plugins
@research = Research.find(params[:id]) @research = Research.find(params[:id])
get_tags get_tags
@ -172,6 +178,10 @@ class Panel::PersonalResearch::BackEnd::ResearchsController < OrbitBackendContro
# end # end
# end # end
def get_plugins
@plugins = OrbitApp::Module::Registration.all
end
def get_tags def get_tags
module_app = ModuleApp.first(:conditions => {:key => 'personal_research'}) module_app = ModuleApp.first(:conditions => {:key => 'personal_research'})
@tags = Tag.all(:conditions => {:module_app_id => module_app.id}) @tags = Tag.all(:conditions => {:module_app_id => module_app.id})

View File

@ -1,10 +1,8 @@
<div id="filter" class="subnav"> <div class="table-label">
<div class="filters">
<div id="sort_headers" class="table-label"> <div id="sort_headers" class="table-label">
<%= render 'sort_headers' %> <%= render 'sort_headers' %>
</div> </div>
</div> </div>
</div>
<% content_for :page_specific_javascript do %> <% content_for :page_specific_javascript do %>
<%= javascript_include_tag "sort_header" %> <%= javascript_include_tag "sort_header" %>

View File

@ -1,11 +1,11 @@
<tr id="<%= dom_id research %>" class="with_action"> <tr id="<%= dom_id research %>" class="with_action">
<td> <td class="span1">
<% if (research.create_user_id == current_user.id) || is_manager? %> <% if (research.create_user_id == current_user.id) || is_manager? %>
<%= check_box_tag 'to_delete[]', research.id, false, :class => "checkbox_in_list" %> <%= check_box_tag 'to_delete[]', research.id, false, :class => "checkbox_in_list" %>
<% end -%> <% end -%>
</td> </td>
<td><%= research.publish_date.strftime("%Y.%m") %></td> <td class="span1"><%= research.publish_date.strftime("%Y.%m") %></td>
<td> <td class="span1">
<%= link_to research.research_title , panel_personal_research_front_end_research_path(research) %> <%= link_to research.research_title , panel_personal_research_front_end_research_path(research) %>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
@ -16,7 +16,7 @@
</ul> </ul>
</div> </div>
</td> </td>
<td><%= research.url %></td> <td class="span1"><%= research.url %></td>
<td><%= User.from_id(research.create_user_id).name rescue ''%></td> <td class="span1"><%= User.from_id(research.create_user_id).name rescue ''%></td>
</tr> </tr>

View File

@ -1,3 +1,13 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<h1><%= t('personal_research.editing_personal_research') %></h1> <h1><%= t('personal_research.editing_personal_research') %></h1>
<%= form_for @research, :url => panel_personal_research_back_end_research_path(@research), :html => {:class => 'clear'} do |f| %> <%= form_for @research, :url => panel_personal_research_back_end_research_path(@research), :html => {:class => 'clear'} do |f| %>

View File

@ -1,12 +1,23 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
<%= render 'filter' %> <%= render 'filter' %>
</div>
<table class="table main-list"> <table class="table main-list">
<thead> <thead>
<tr> <tr>
<th class="span1"></th> <th class="span1"></th>
<th class="span1"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span3"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbody_researchs" class="sort-holder"> <tbody id="tbody_researchs" class="sort-holder">

View File

@ -1,10 +1,21 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<%= flash_messages %> <%= flash_messages %>
<div id="poststuff"> <div id="poststuff">
<h1><%= t('research.new_personal_research') %></h1> <h1><%= t('research.new_personal_research') %></h1>
<%= form_for @research, :url => panel_personal_research_back_end_researchs_path, :html => {:class => 'clear'} do |f| %> <%= form_for @research, :url => panel_personal_research_back_end_researchs_path, :html => {:class => 'clear'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>
<% end %> <% end %>
</div> </div>
<%#= link_back %> <%#= link_back %>

View File

@ -2,7 +2,7 @@ module PersonalResearch
OrbitApp.registration "Research",:type=> 'ModuleApp' do OrbitApp.registration "Research",:type=> 'ModuleApp' do
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true,:path=>"panel/personal_research/plugin/profile",:i18n=>'admin.personal_research' personal_plugin :enable => true,:path=>"panel/personal_research/plugin/profile",:admin_path=>"/panel/personal_research/back_end/researchs",:i18n=>'admin.personal_research'
end end

View File

@ -12,6 +12,8 @@ class Panel::PersonalSeminar::BackEnd::WritingSeminarsController < OrbitBackendC
def index def index
get_plugins
get_categorys("SeminarPaperType",params[:seminar_paper_type_id]) get_categorys("SeminarPaperType",params[:seminar_paper_type_id])
@filter = params[:filter] @filter = params[:filter]
new_filter = params[:new_filter] new_filter = params[:new_filter]
@ -51,6 +53,8 @@ class Panel::PersonalSeminar::BackEnd::WritingSeminarsController < OrbitBackendC
def writing_seminar_setting def writing_seminar_setting
get_plugins
@author_types = SeminarAuthorType.all @author_types = SeminarAuthorType.all
@paper_types = SeminarPaperType.all @paper_types = SeminarPaperType.all
@ -121,6 +125,8 @@ class Panel::PersonalSeminar::BackEnd::WritingSeminarsController < OrbitBackendC
# GET /writing_seminars/new.xml # GET /writing_seminars/new.xml
def new def new
get_plugins
@writing_seminar = WritingSeminar.new @writing_seminar = WritingSeminar.new
# @writing_seminar_files = WritingSeminarFile.all # @writing_seminar_files = WritingSeminarFile.all
# @paper_types = SeminarLevelType.all # @paper_types = SeminarLevelType.all
@ -137,6 +143,9 @@ class Panel::PersonalSeminar::BackEnd::WritingSeminarsController < OrbitBackendC
# GET /writing_seminars/1/edit # GET /writing_seminars/1/edit
def edit def edit
get_plugins
@writing_seminar = WritingSeminar.find(params[:id]) @writing_seminar = WritingSeminar.find(params[:id])
# @paper_types = SeminarLevelType.all # @paper_types = SeminarLevelType.all
@ -303,6 +312,10 @@ class Panel::PersonalSeminar::BackEnd::WritingSeminarsController < OrbitBackendC
# end # end
# end # end
def get_plugins
@plugins = OrbitApp::Module::Registration.all
end
def get_tags def get_tags
module_app = ModuleApp.first(:conditions => {:key => 'personal_seminar'}) module_app = ModuleApp.first(:conditions => {:key => 'personal_seminar'})
@tags = Tag.all(:conditions => {:module_app_id => module_app.id}) @tags = Tag.all(:conditions => {:module_app_id => module_app.id})

View File

@ -1,10 +1,8 @@
<div id="filter" class="subnav"> <div class="table-label">
<div class="filters">
<div id="sort_headers" class="table-label"> <div id="sort_headers" class="table-label">
<%= render 'sort_headers' %> <%= render 'sort_headers' %>
</div> </div>
</div> </div>
</div>
<% content_for :page_specific_javascript do %> <% content_for :page_specific_javascript do %>
<%= javascript_include_tag "sort_header" %> <%= javascript_include_tag "sort_header" %>

View File

@ -1,11 +1,11 @@
<tr id="<%= dom_id writing_seminar %>" class="with_action"> <tr id="<%= dom_id writing_seminar %>" class="with_action">
<td> <td class="span1">
<% if (writing_seminar.create_user_id == current_user.id) || is_manager? %> <% if (writing_seminar.create_user_id == current_user.id) || is_manager? %>
<%= check_box_tag 'to_delete[]', writing_seminar.id, false, :class => "checkbox_in_list" %> <%= check_box_tag 'to_delete[]', writing_seminar.id, false, :class => "checkbox_in_list" %>
<% end -%> <% end -%>
</td> </td>
<td><%= writing_seminar.year %></td> <td class="span1"><%= writing_seminar.year %></td>
<td> <td class="span1">
<%= link_to writing_seminar.create_link, panel_personal_seminar_front_end_writing_seminar_path(writing_seminar) %> <%= link_to writing_seminar.create_link, panel_personal_seminar_front_end_writing_seminar_path(writing_seminar) %>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
@ -16,6 +16,6 @@
</ul> </ul>
</div> </div>
</td> </td>
<td><%= User.from_id(writing_seminar.create_user_id).name rescue ''%></td> <td class="span1"><%= User.from_id(writing_seminar.create_user_id).name rescue ''%></td>
</tr> </tr>

View File

@ -1,3 +1,13 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<h1><%= t('personal_seminar.editing_personal_seminar') %></h1> <h1><%= t('personal_seminar.editing_personal_seminar') %></h1>
<%= form_for @writing_seminar, :url => panel_personal_seminar_back_end_writing_seminar_path(@writing_seminar), :html => {:class => 'clear'} do |f| %> <%= form_for @writing_seminar, :url => panel_personal_seminar_back_end_writing_seminar_path(@writing_seminar), :html => {:class => 'clear'} do |f| %>

View File

@ -1,12 +1,22 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
<%= render 'filter' %> <%= render 'filter' %>
</div>
<table class="table main-list"> <table class="table main-list">
<thead> <thead>
<tr> <tr>
<th class="span1"></th> <th class="span1"></th>
<th class="span1"></th> <th class="span1"></th>
<th class="span2"></th> <th class="span1"></th>
<th class="span3"></th> <th class="span1"></th>
<th class="span2"></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbody_writing_seminars" class="sort-holder"> <tbody id="tbody_writing_seminars" class="sort-holder">

View File

@ -1,10 +1,21 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<%= flash_messages %> <%= flash_messages %>
<div id="poststuff"> <div id="poststuff">
<h1><%= t('writing_seminar.new_personal_seminar') %></h1> <h1><%= t('writing_seminar.new_personal_seminar') %></h1>
<%= form_for @writing_seminar, :url => panel_personal_seminar_back_end_writing_seminars_path, :html => {:class => 'clear'} do |f| %> <%= form_for @writing_seminar, :url => panel_personal_seminar_back_end_writing_seminars_path, :html => {:class => 'clear'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %> <%= render :partial => 'form', :locals => {:f => f} %>
<% end %> <% end %>
</div> </div>
<%#= link_back %> <%#= link_back %>

View File

@ -1,5 +1,14 @@
<% # encoding: utf-8 %> <% # encoding: utf-8 %>
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(@site), :icon => 'icons-users', :side_bar_content => 'admin/users_new_interface/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/plugins/plugin_list' %>
</div>
<div id="isotope"> <div id="isotope">
<div class="item element"> <div class="item element">

View File

@ -2,7 +2,7 @@ module PersonalSeminar
OrbitApp.registration "Seminar",:type=> 'ModuleApp' do OrbitApp.registration "Seminar",:type=> 'ModuleApp' do
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true,:path=>"panel/personal_seminar/plugin/profile",:i18n=>'admin.personal_seminar' personal_plugin :enable => true,:path=>"panel/personal_seminar/plugin/profile",:admin_path=>"/panel/personal_seminar/back_end/writing_seminars",:i18n=>'admin.personal_seminar'
end end