member list edit
This commit is contained in:
1 parent
8bf7d0f6f3
commit
a7bc19768e
98 files changed
+819
-699
No files matched your search
+13
@@ -11,6 +11,8 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
get_plugins
|
||||
|
||||
get_categorys("BookPaperType",params[:book_paper_type_id])
|
||||
@filter = params[:filter]
|
||||
@@ -50,6 +52,8 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
|
||||
|
||||
def writing_book_setting
|
||||
|
||||
get_plugins
|
||||
|
||||
@author_types = BookAuthorType.all
|
||||
@paper_types = BookPaperType.all
|
||||
|
||||
@@ -120,6 +124,8 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
|
||||
# GET /writing_books/new.xml
|
||||
def new
|
||||
|
||||
get_plugins
|
||||
|
||||
@writing_book = WritingBook.new
|
||||
# @writing_book_files = WritingBookFile.all
|
||||
# @level_types = BookLevelType.all
|
||||
@@ -136,6 +142,9 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
|
||||
|
||||
# GET /writing_books/1/edit
|
||||
def edit
|
||||
|
||||
get_plugins
|
||||
|
||||
@writing_book = WritingBook.find(params[:id])
|
||||
|
||||
# @level_types = BookLevelType.all
|
||||
@@ -303,6 +312,10 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
|
||||
# end
|
||||
# end
|
||||
|
||||
def get_plugins
|
||||
@plugins = OrbitApp::Module::Registration.all
|
||||
end
|
||||
|
||||
def get_tags
|
||||
module_app = ModuleApp.first(:conditions => {:key => 'personal_book'})
|
||||
@tags = Tag.all(:conditions => {:module_app_id => module_app.id})
|
||||
|
||||
+3
-5
@@ -1,8 +1,6 @@
|
||||
<div id="filter" class="subnav">
|
||||
<div class="filters">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
<div class="table-label">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
<tr id="<%= dom_id writing_book %>" class="with_action">
|
||||
<td>
|
||||
<td class="span1">
|
||||
<% if (writing_book.create_user_id == current_user.id) || is_manager? %>
|
||||
<%= check_box_tag 'to_delete[]', writing_book.id, false, :class => "checkbox_in_list" %>
|
||||
<% end -%>
|
||||
</td>
|
||||
<td><%= writing_book.year %></td>
|
||||
<td>
|
||||
<td class="span1"><%= writing_book.year %></td>
|
||||
<td class="span1">
|
||||
<%= link_to writing_book.create_link, panel_personal_book_front_end_writing_book_path(writing_book) %>
|
||||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills hide">
|
||||
@@ -16,6 +16,6 @@
|
||||
</ul>
|
||||
</div>
|
||||
</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>
|
||||
|
||||
+11
@@ -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>
|
||||
|
||||
<%= form_for @writing_book, :url => panel_personal_book_back_end_writing_book_path(@writing_book), :html => {:class => 'clear'} do |f| %>
|
||||
|
||||
+13
-3
@@ -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' %>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table main-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span3"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody_writing_books" class="sort-holder">
|
||||
|
||||
+12
@@ -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 %>
|
||||
|
||||
<div id="poststuff">
|
||||
<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| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%#= link_back %>
|
||||
|
||||
+9
@@ -1,5 +1,14 @@
|
||||
<% # 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 class="item element">
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ module PersonalBook
|
||||
OrbitApp.registration "Book",:type=> 'ModuleApp' do
|
||||
|
||||
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
|
||||
|
||||
+13
@@ -9,6 +9,8 @@ class Panel::PersonalDiploma::BackEnd::DiplomasController < OrbitBackendControll
|
||||
|
||||
def index
|
||||
|
||||
get_plugins
|
||||
|
||||
@filter = params[:filter]
|
||||
new_filter = params[:new_filter]
|
||||
|
||||
@@ -39,6 +41,8 @@ class Panel::PersonalDiploma::BackEnd::DiplomasController < OrbitBackendControll
|
||||
end
|
||||
|
||||
def diploma_setting
|
||||
|
||||
get_plugins
|
||||
|
||||
get_tags
|
||||
|
||||
@@ -58,6 +62,8 @@ class Panel::PersonalDiploma::BackEnd::DiplomasController < OrbitBackendControll
|
||||
# GET /diplomas/new.xml
|
||||
def new
|
||||
|
||||
get_plugins
|
||||
|
||||
@diploma = Diploma.new
|
||||
|
||||
get_tags
|
||||
@@ -70,6 +76,9 @@ class Panel::PersonalDiploma::BackEnd::DiplomasController < OrbitBackendControll
|
||||
|
||||
# GET /diplomas/1/edit
|
||||
def edit
|
||||
|
||||
get_plugins
|
||||
|
||||
@diploma = Diploma.find(params[:id])
|
||||
|
||||
get_tags
|
||||
@@ -177,6 +186,10 @@ class Panel::PersonalDiploma::BackEnd::DiplomasController < OrbitBackendControll
|
||||
# end
|
||||
# end
|
||||
|
||||
def get_plugins
|
||||
@plugins = OrbitApp::Module::Registration.all
|
||||
end
|
||||
|
||||
def get_tags
|
||||
module_app = ModuleApp.first(:conditions => {:key => 'personal_diploma'})
|
||||
@tags = Tag.all(:conditions => {:module_app_id => module_app.id})
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
<tr id="<%= dom_id diploma %>" class="with_action">
|
||||
<td>
|
||||
<td class="span1">
|
||||
<% if (diploma.create_user_id == current_user.id) || is_manager? %>
|
||||
<%= check_box_tag 'to_delete[]', diploma.id, false, :class => "checkbox_in_list" %>
|
||||
<% end -%>
|
||||
</td>
|
||||
<td><%= diploma.start_date.strftime("%Y.%m") %> ~ <%= diploma.end_date.strftime("%Y.%m") %></td>
|
||||
<td>
|
||||
<td class="span1"><%= diploma.start_date.strftime("%Y.%m") %> ~ <%= diploma.end_date.strftime("%Y.%m") %></td>
|
||||
<td class="span1">
|
||||
<%= link_to diploma.school_name, panel_personal_diploma_front_end_diploma_path(diploma) %>
|
||||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills hide">
|
||||
@@ -16,6 +16,6 @@
|
||||
</ul>
|
||||
</div>
|
||||
</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>
|
||||
|
||||
+3
-5
@@ -1,8 +1,6 @@
|
||||
<div id="filter" class="subnav">
|
||||
<div class="filters">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
<div class="table-label">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+5
@@ -1,5 +1,10 @@
|
||||
<% # 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">
|
||||
|
||||
|
||||
+7
@@ -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>
|
||||
|
||||
<%= form_for @diploma, :url => panel_personal_diploma_back_end_diploma_path(@diploma), :html => {:class => 'clear'} do |f| %>
|
||||
|
||||
+14
-3
@@ -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' %>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table main-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span3"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody_diplomas" class="sort-holder">
|
||||
@@ -15,6 +25,7 @@
|
||||
</table>
|
||||
|
||||
<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' %>
|
||||
<div id="diploma_pagination" class="paginationFixed">
|
||||
<%= paginate @diplomas, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>
|
||||
|
||||
+8
@@ -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 %>
|
||||
|
||||
<div id="poststuff">
|
||||
<h1><%= t('diploma.new_personal_diploma') %></h1>
|
||||
<%= form_for @diploma, :url => panel_personal_diploma_back_end_diplomas_path, :html => {:class => 'clear'} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%#= link_back %>
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ module PersonalDiploma
|
||||
OrbitApp.registration "Diploma",:type=> 'ModuleApp' do
|
||||
|
||||
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
|
||||
|
||||
+13
@@ -11,6 +11,8 @@ class Panel::PersonalExperience::BackEnd::ExperiencesController < OrbitBackendCo
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
get_plugins
|
||||
|
||||
get_categorys("ExperienceCategory",params[:experience_category_ids])
|
||||
@filter = params[:filter]
|
||||
@@ -47,6 +49,8 @@ class Panel::PersonalExperience::BackEnd::ExperiencesController < OrbitBackendCo
|
||||
|
||||
def experience_setting
|
||||
|
||||
get_plugins
|
||||
|
||||
@experience_types = ExperienceCategory.all
|
||||
|
||||
get_tags
|
||||
@@ -92,6 +96,8 @@ class Panel::PersonalExperience::BackEnd::ExperiencesController < OrbitBackendCo
|
||||
# GET /experiences/new.xml
|
||||
def new
|
||||
|
||||
get_plugins
|
||||
|
||||
@experience = Experience.new
|
||||
@experience_categorys = ExperienceCategory.all
|
||||
|
||||
@@ -105,6 +111,9 @@ class Panel::PersonalExperience::BackEnd::ExperiencesController < OrbitBackendCo
|
||||
|
||||
# GET /experiences/1/edit
|
||||
def edit
|
||||
|
||||
get_plugins
|
||||
|
||||
@experience = Experience.find(params[:id])
|
||||
|
||||
@experience_types = ExperienceCategory.all
|
||||
@@ -245,6 +254,10 @@ class Panel::PersonalExperience::BackEnd::ExperiencesController < OrbitBackendCo
|
||||
# end
|
||||
# end
|
||||
|
||||
def get_plugins
|
||||
@plugins = OrbitApp::Module::Registration.all
|
||||
end
|
||||
|
||||
def get_tags
|
||||
module_app = ModuleApp.first(:conditions => {:key => 'personal_experience'})
|
||||
@tags = Tag.all(:conditions => {:module_app_id => module_app.id})
|
||||
|
||||
+6
-6
@@ -1,11 +1,11 @@
|
||||
<tr id="<%= dom_id experience %>" class="with_action">
|
||||
<td>
|
||||
<td class="span1">
|
||||
<% if (experience.create_user_id == current_user.id) || is_manager? %>
|
||||
<%= check_box_tag 'to_delete[]', experience.id, false, :class => "checkbox_in_list" %>
|
||||
<% end -%>
|
||||
</td>
|
||||
<td><%= experience.start_date.strftime("%Y.%m") %> ~ <%= experience.end_date.strftime("%Y.%m") %></td>
|
||||
<td>
|
||||
<td class="span1"><%= experience.start_date.strftime("%Y.%m") %> ~ <%= experience.end_date.strftime("%Y.%m") %></td>
|
||||
<td class="span1">
|
||||
<%= link_to experience.organizationt_title, panel_personal_experience_front_end_experience_path(experience) %>
|
||||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills hide">
|
||||
@@ -16,8 +16,8 @@
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
<td><%= experience.department %></td>
|
||||
<td><%= experience.job_title %></td>
|
||||
<td><%= User.from_id(experience.create_user_id).name rescue ''%></td>
|
||||
<td class="span1"><%= experience.department %></td>
|
||||
<td class="span1"><%= experience.job_title %></td>
|
||||
<td class="span1"><%= User.from_id(experience.create_user_id).name rescue ''%></td>
|
||||
</tr>
|
||||
|
||||
+3
-5
@@ -1,8 +1,6 @@
|
||||
<div id="filter" class="subnav">
|
||||
<div class="filters">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
<div class="table-label">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+10
@@ -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>
|
||||
|
||||
<%= form_for @experience, :url => panel_personal_experience_back_end_experience_path(@experience), :html => {:class => 'clear'} do |f| %>
|
||||
|
||||
+9
@@ -1,5 +1,14 @@
|
||||
<% # 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 class="item element">
|
||||
|
||||
+16
-3
@@ -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' %>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table main-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span3"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody_experiences" class="sort-holder">
|
||||
@@ -15,6 +27,7 @@
|
||||
</table>
|
||||
|
||||
<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' %>
|
||||
<div id="experience_pagination" class="paginationFixed">
|
||||
<%= paginate @experiences, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil} %>
|
||||
|
||||
+11
@@ -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 %>
|
||||
|
||||
<div id="poststuff">
|
||||
<h1><%= t('experience.new_personal_experience') %></h1>
|
||||
<%= form_for @experience, :url => panel_personal_experience_back_end_experiences_path, :html => {:class => 'clear'} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%#= link_back %>
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ module PersonalExperience
|
||||
OrbitApp.registration "Experience",:type=> 'ModuleApp' do
|
||||
|
||||
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
|
||||
|
||||
+13
@@ -11,6 +11,8 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
get_plugins
|
||||
|
||||
get_categorys("HonorCategory",params[:honor_category_ids])
|
||||
@filter = params[:filter]
|
||||
@@ -47,6 +49,8 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
|
||||
|
||||
def honor_setting
|
||||
|
||||
get_plugins
|
||||
|
||||
@honor_types = HonorCategory.all
|
||||
|
||||
get_tags
|
||||
@@ -92,6 +96,8 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
|
||||
# GET /honors/new.xml
|
||||
def new
|
||||
|
||||
get_plugins
|
||||
|
||||
@honor = Honor.new
|
||||
@honor_categorys = HonorCategory.all
|
||||
|
||||
@@ -105,6 +111,9 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
|
||||
|
||||
# GET /honors/1/edit
|
||||
def edit
|
||||
|
||||
get_plugins
|
||||
|
||||
@honor = Honor.find(params[:id])
|
||||
|
||||
@honor_types = HonorCategory.all
|
||||
@@ -248,6 +257,10 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
|
||||
# end
|
||||
# end
|
||||
|
||||
def get_plugins
|
||||
@plugins = OrbitApp::Module::Registration.all
|
||||
end
|
||||
|
||||
def get_tags
|
||||
module_app = ModuleApp.first(:conditions => {:key => 'personal_honor'})
|
||||
@tags = Tag.all(:conditions => {:module_app_id => module_app.id})
|
||||
|
||||
+3
-5
@@ -1,8 +1,6 @@
|
||||
<div id="filter" class="subnav">
|
||||
<div class="filters">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
<div class="table-label">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+5
-5
@@ -1,11 +1,11 @@
|
||||
<tr id="<%= dom_id honor %>" class="with_action">
|
||||
<td>
|
||||
<td class="span1">
|
||||
<% if (honor.create_user_id == current_user.id) || is_manager? %>
|
||||
<%= check_box_tag 'to_delete[]', honor.id, false, :class => "checkbox_in_list" %>
|
||||
<% end -%>
|
||||
</td>
|
||||
<td><%= honor.year %></td>
|
||||
<td>
|
||||
<td class="span1"><%= honor.year %></td>
|
||||
<td class="span1">
|
||||
<%= link_to honor.award_name, panel_personal_honor_front_end_honor_path(honor) %>
|
||||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills hide">
|
||||
@@ -16,7 +16,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
<td><%= honor.awarding_unit %></td>
|
||||
<td><%= User.from_id(honor.create_user_id).name rescue ''%></td>
|
||||
<td class="span1"><%= honor.awarding_unit %></td>
|
||||
<td class="span1"><%= User.from_id(honor.create_user_id).name rescue ''%></td>
|
||||
</tr>
|
||||
|
||||
Vendored
+10
@@ -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>
|
||||
|
||||
<%= form_for @honor, :url => panel_personal_honor_back_end_honor_path(@honor), :html => {:class => 'clear'} do |f| %>
|
||||
|
||||
+9
@@ -1,5 +1,14 @@
|
||||
<% # 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 class="item element">
|
||||
|
||||
vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/back_end/honors/index.html.erb
Vendored
+14
-3
@@ -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' %>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table main-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span3"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody_honors" class="sort-holder">
|
||||
|
||||
Vendored
+11
@@ -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 %>
|
||||
|
||||
<div id="poststuff">
|
||||
<h1><%= t('honor.new_personal_honor') %></h1>
|
||||
<%= form_for @honor, :url => panel_personal_honor_back_end_honors_path, :html => {:class => 'clear'} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%#= link_back %>
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ module PersonalHonor
|
||||
OrbitApp.registration "Honor",:type=> 'ModuleApp' do
|
||||
|
||||
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
|
||||
|
||||
+13
-2
@@ -11,7 +11,9 @@ class Panel::PersonalJournal::BackEnd::WritingJournalsController < OrbitBackendC
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
|
||||
get_plugins
|
||||
|
||||
get_categorys("JournalPaperType",params[:journal_paper_type_id])
|
||||
@filter = params[:filter]
|
||||
new_filter = params[:new_filter]
|
||||
@@ -50,7 +52,7 @@ class Panel::PersonalJournal::BackEnd::WritingJournalsController < OrbitBackendC
|
||||
|
||||
def writing_journal_setting
|
||||
|
||||
@plugins = ModuleApp.where(has_plugin: true).order_by(:title, :asc)
|
||||
get_plugins
|
||||
|
||||
@level_types = JournalLevelType.all
|
||||
@author_types = JournalAuthorType.all
|
||||
@@ -148,6 +150,8 @@ class Panel::PersonalJournal::BackEnd::WritingJournalsController < OrbitBackendC
|
||||
# GET /writing_journals/new.xml
|
||||
def new
|
||||
|
||||
get_plugins
|
||||
|
||||
@writing_journal = WritingJournal.new
|
||||
# @writing_journal_files = WritingJournalFile.all
|
||||
@level_types = JournalLevelType.all
|
||||
@@ -164,6 +168,9 @@ class Panel::PersonalJournal::BackEnd::WritingJournalsController < OrbitBackendC
|
||||
|
||||
# GET /writing_journals/1/edit
|
||||
def edit
|
||||
|
||||
get_plugins
|
||||
|
||||
@writing_journal = WritingJournal.find(params[:id])
|
||||
|
||||
@level_types = JournalLevelType.all
|
||||
@@ -355,6 +362,10 @@ class Panel::PersonalJournal::BackEnd::WritingJournalsController < OrbitBackendC
|
||||
# end
|
||||
# end
|
||||
|
||||
def get_plugins
|
||||
@plugins = OrbitApp::Module::Registration.all
|
||||
end
|
||||
|
||||
def get_tags
|
||||
module_app = ModuleApp.first(:conditions => {:key => 'personal_journal'})
|
||||
@tags = Tag.all(:conditions => {:module_app_id => module_app.id})
|
||||
|
||||
+4
-32
@@ -1,37 +1,9 @@
|
||||
<div id='filter' class="subnav">
|
||||
<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">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
<div class="table-label">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% content_for :page_specific_javascript do %>
|
||||
<%= javascript_include_tag "sort_header" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
<tr id="<%= dom_id writing_journal %>" class="with_action">
|
||||
<td>
|
||||
<td class="span1">
|
||||
<% if (writing_journal.create_user_id == current_user.id) || is_manager? %>
|
||||
<%= check_box_tag 'to_delete[]', writing_journal.id, false, :class => "checkbox_in_list" %>
|
||||
<% end -%>
|
||||
</td>
|
||||
<td><%= writing_journal.publication_date %></td>
|
||||
<td>
|
||||
<td class="span1"><%= writing_journal.publication_date %></td>
|
||||
<td class="span1">
|
||||
<%= link_to writing_journal.create_link , panel_personal_journal_front_end_writing_journal_path(writing_journal) %>
|
||||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills hide">
|
||||
@@ -16,6 +16,6 @@
|
||||
</ul>
|
||||
</div>
|
||||
</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>
|
||||
|
||||
+10
@@ -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>
|
||||
|
||||
<%= form_for @writing_journal, :url => panel_personal_journal_back_end_writing_journal_path(@writing_journal), :html => {:class => 'clear'} do |f| %>
|
||||
|
||||
+13
-3
@@ -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' %>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table main-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span3"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody_writing_journals" class="sort-holder">
|
||||
|
||||
+11
@@ -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 %>
|
||||
|
||||
<div id="poststuff">
|
||||
<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| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%#= link_back %>
|
||||
|
||||
+9
@@ -1,5 +1,14 @@
|
||||
<% # 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 class="item element">
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ module PersonalJournal
|
||||
OrbitApp.registration "Journal",:type=> 'ModuleApp' do
|
||||
|
||||
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
|
||||
|
||||
Vendored
+13
@@ -11,6 +11,8 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController
|
||||
# end
|
||||
|
||||
def index
|
||||
|
||||
get_plugins
|
||||
|
||||
# get_categorys("LabCategory",params[:lab_category_ids])
|
||||
@filter = params[:filter]
|
||||
@@ -46,6 +48,8 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController
|
||||
end
|
||||
|
||||
def lab_setting
|
||||
|
||||
get_plugins
|
||||
|
||||
get_tags
|
||||
|
||||
@@ -65,6 +69,8 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController
|
||||
# GET /labs/new.xml
|
||||
def new
|
||||
|
||||
get_plugins
|
||||
|
||||
@lab = Lab.new
|
||||
|
||||
get_tags
|
||||
@@ -77,6 +83,9 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController
|
||||
|
||||
# GET /labs/1/edit
|
||||
def edit
|
||||
|
||||
get_plugins
|
||||
|
||||
@lab = Lab.find(params[:id])
|
||||
|
||||
get_tags
|
||||
@@ -184,6 +193,10 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController
|
||||
# end
|
||||
# end
|
||||
|
||||
def get_plugins
|
||||
@plugins = OrbitApp::Module::Registration.all
|
||||
end
|
||||
|
||||
def get_tags
|
||||
module_app = ModuleApp.first(:conditions => {:key => 'personal_lab'})
|
||||
@tags = Tag.all(:conditions => {:module_app_id => module_app.id})
|
||||
|
||||
Vendored
+3
-5
@@ -1,8 +1,6 @@
|
||||
<div id="filter" class="subnav">
|
||||
<div class="filters">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
<div class="table-label">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Vendored
+5
-5
@@ -1,11 +1,11 @@
|
||||
<tr id="<%= dom_id lab %>" class="with_action">
|
||||
<td>
|
||||
<td class="span1">
|
||||
<% if (lab.create_user_id == current_user.id) || is_manager? %>
|
||||
<%= check_box_tag 'to_delete[]', lab.id, false, :class => "checkbox_in_list" %>
|
||||
<% end -%>
|
||||
</td>
|
||||
<td><%= lab.year %></td>
|
||||
<td>
|
||||
<td class="span1"><%= lab.year %></td>
|
||||
<td class="span1">
|
||||
<%= link_to lab.lab_title, panel_personal_lab_front_end_lab_path(lab) %>
|
||||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills hide">
|
||||
@@ -16,7 +16,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
<td><%= lab.location %></td>
|
||||
<td><%= User.from_id(lab.create_user_id).name rescue ''%></td>
|
||||
<td class="span1"><%= lab.location %></td>
|
||||
<td class="span1"><%= User.from_id(lab.create_user_id).name rescue ''%></td>
|
||||
</tr>
|
||||
|
||||
Vendored
+10
@@ -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>
|
||||
|
||||
<%= form_for @lab, :url => panel_personal_lab_back_end_lab_path(@lab), :html => {:class => 'clear'} do |f| %>
|
||||
|
||||
Vendored
+14
-3
@@ -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' %>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table main-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span3"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody_labs" class="sort-holder">
|
||||
|
||||
vendor/built_in_modules/personal_lab/app/views/panel/personal_lab/back_end/labs/lab_setting.html.erb
Vendored
+9
@@ -1,5 +1,14 @@
|
||||
<% # 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">
|
||||
|
||||
|
||||
Vendored
+11
@@ -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 %>
|
||||
|
||||
<div id="poststuff">
|
||||
<h1><%= t('lab.new_personal_lab') %></h1>
|
||||
<%= form_for @lab, :url => panel_personal_lab_back_end_labs_path, :html => {:class => 'clear'} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%#= link_back %>
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ module PersonalLab
|
||||
OrbitApp.registration "Lab",:type=> 'ModuleApp' do
|
||||
|
||||
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
|
||||
|
||||
-209
@@ -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 %>
|
||||
-209
@@ -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 %>
|
||||
+13
@@ -11,6 +11,8 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
get_plugins
|
||||
|
||||
get_categorys("WritingPatentCategory",params[:writing_patent_category_ids])
|
||||
@filter = params[:filter]
|
||||
@@ -47,6 +49,8 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon
|
||||
|
||||
def writing_patent_setting
|
||||
|
||||
get_plugins
|
||||
|
||||
@patent_types = WritingPatentCategory.all
|
||||
|
||||
get_tags
|
||||
@@ -92,6 +96,8 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon
|
||||
# GET /writing_patents/new.xml
|
||||
def new
|
||||
|
||||
get_plugins
|
||||
|
||||
@writing_patent = WritingPatent.new
|
||||
@writing_patent_categorys = WritingPatentCategory.all
|
||||
|
||||
@@ -105,6 +111,9 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon
|
||||
|
||||
# GET /writing_patents/1/edit
|
||||
def edit
|
||||
|
||||
get_plugins
|
||||
|
||||
@writing_patent = WritingPatent.find(params[:id])
|
||||
|
||||
@patent_types = WritingPatentCategory.all
|
||||
@@ -245,6 +254,10 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon
|
||||
# end
|
||||
# end
|
||||
|
||||
def get_plugins
|
||||
@plugins = OrbitApp::Module::Registration.all
|
||||
end
|
||||
|
||||
def get_tags
|
||||
module_app = ModuleApp.first(:conditions => {:key => 'personal_patent'})
|
||||
@tags = Tag.all(:conditions => {:module_app_id => module_app.id})
|
||||
|
||||
+3
-5
@@ -1,8 +1,6 @@
|
||||
<div id="filter" class="subnav">
|
||||
<div class="filters">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
<div class="table-label">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+8
-8
@@ -1,11 +1,11 @@
|
||||
<tr id="<%= dom_id writing_patent %>" class="with_action">
|
||||
<td>
|
||||
<td class="span1">
|
||||
<% if (writing_patent.create_user_id == current_user.id) || is_manager? %>
|
||||
<%= check_box_tag 'to_delete[]', writing_patent.id, false, :class => "checkbox_in_list" %>
|
||||
<% end -%>
|
||||
</td>
|
||||
<td><%= writing_patent.publish_date.strftime("%Y.%m") %></td>
|
||||
<td>
|
||||
<td class="span1"><%= writing_patent.publish_date.strftime("%Y.%m") %></td>
|
||||
<td class="span1">
|
||||
<%= link_to writing_patent.patent_title, panel_personal_patent_front_end_writing_patent_path(writing_patent) %>
|
||||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills hide">
|
||||
@@ -16,10 +16,10 @@
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
<td><%= writing_patent.patent_no %></td>
|
||||
<td><%= writing_patent.patent_country %></td>
|
||||
<td><%= writing_patent.authors %></td>
|
||||
<td><%= writing_patent.url %></td>
|
||||
<td><%= User.from_id(writing_patent.create_user_id).name rescue ''%></td>
|
||||
<td class="span1"><%= writing_patent.patent_no %></td>
|
||||
<td class="span1"><%= writing_patent.patent_country %></td>
|
||||
<td class="span1"><%= writing_patent.authors %></td>
|
||||
<td class="span1"><%= writing_patent.url %></td>
|
||||
<td class="span1"><%= User.from_id(writing_patent.create_user_id).name rescue ''%></td>
|
||||
</tr>
|
||||
|
||||
+10
@@ -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>
|
||||
|
||||
<%= form_for @writing_patent, :url => panel_personal_patent_back_end_writing_patent_path(@writing_patent), :html => {:class => 'clear'} do |f| %>
|
||||
|
||||
+17
-3
@@ -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' %>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table main-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span3"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody_writing_patents" class="sort-holder">
|
||||
|
||||
+11
@@ -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 %>
|
||||
|
||||
<div id="poststuff">
|
||||
<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| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%#= link_back %>
|
||||
|
||||
+9
@@ -1,5 +1,14 @@
|
||||
<% # 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 class="item element">
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ module PersonalPatent
|
||||
OrbitApp.registration "Patent",:type=> 'ModuleApp' do
|
||||
|
||||
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
|
||||
|
||||
+13
@@ -11,6 +11,8 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
get_plugins
|
||||
|
||||
get_categorys("ProjectCategory",params[:project_category_id])
|
||||
@filter = params[:filter]
|
||||
@@ -47,6 +49,8 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll
|
||||
|
||||
def project_setting
|
||||
|
||||
get_plugins
|
||||
|
||||
@project_types = ProjectCategory.all
|
||||
|
||||
get_tags
|
||||
@@ -92,6 +96,8 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll
|
||||
# GET /projects/new.xml
|
||||
def new
|
||||
|
||||
get_plugins
|
||||
|
||||
@project = Project.new
|
||||
@project_categorys = ProjectCategory.all
|
||||
|
||||
@@ -105,6 +111,9 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll
|
||||
|
||||
# GET /projects/1/edit
|
||||
def edit
|
||||
|
||||
get_plugins
|
||||
|
||||
@project = Project.find(params[:id])
|
||||
|
||||
@project_types = ProjectCategory.all
|
||||
@@ -245,6 +254,10 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll
|
||||
# end
|
||||
# end
|
||||
|
||||
def get_plugins
|
||||
@plugins = OrbitApp::Module::Registration.all
|
||||
end
|
||||
|
||||
def get_tags
|
||||
module_app = ModuleApp.first(:conditions => {:key => 'personal_patent'})
|
||||
@tags = Tag.all(:conditions => {:module_app_id => module_app.id})
|
||||
|
||||
+3
-5
@@ -1,8 +1,6 @@
|
||||
<div id="filter" class="subnav">
|
||||
<div class="filters">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
<div class="table-label">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+7
-7
@@ -1,11 +1,11 @@
|
||||
<tr id="<%= dom_id project %>" class="with_action">
|
||||
<td>
|
||||
<td class="span1">
|
||||
<% if (project.create_user_id == current_user.id) || is_manager? %>
|
||||
<%= check_box_tag 'to_delete[]', project.id, false, :class => "checkbox_in_list" %>
|
||||
<% end -%>
|
||||
</td>
|
||||
<td><%= project.period_start_date.strftime("%Y.%m") %> ~ <%= project.period_end_date.strftime("%Y.%m") %></td>
|
||||
<td>
|
||||
<td class="span1"><%= project.period_start_date.strftime("%Y.%m") %> ~ <%= project.period_end_date.strftime("%Y.%m") %></td>
|
||||
<td class="span1">
|
||||
<%= link_to project.project_title, panel_personal_project_front_end_project_path(project) %>
|
||||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills hide">
|
||||
@@ -16,9 +16,9 @@
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
<td><%= project.participator %></td>
|
||||
<td><%= project.job_title %></td>
|
||||
<td><%= project.unit %></td>
|
||||
<td><%= User.from_id(project.create_user_id).name rescue ''%></td>
|
||||
<td class="span1"><%= project.participator %></td>
|
||||
<td class="span1"><%= project.job_title %></td>
|
||||
<td class="span1"><%= project.unit %></td>
|
||||
<td class="span1"><%= User.from_id(project.create_user_id).name rescue ''%></td>
|
||||
</tr>
|
||||
|
||||
+10
@@ -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>
|
||||
|
||||
<%= form_for @project, :url => panel_personal_project_back_end_project_path(@project), :html => {:class => 'clear'} do |f| %>
|
||||
|
||||
+16
-3
@@ -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' %>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table main-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span3"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody_projects" class="sort-holder">
|
||||
|
||||
+11
@@ -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 %>
|
||||
|
||||
<div id="poststuff">
|
||||
<h1><%= t('project.new_personal_project') %></h1>
|
||||
<%= form_for @project, :url => panel_personal_project_back_end_projects_path, :html => {:class => 'clear'} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%#= link_back %>
|
||||
|
||||
+9
@@ -1,5 +1,14 @@
|
||||
<% # 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 class="item element">
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
module PersonalProject
|
||||
OrbitApp.registration "Research Project",:type=> 'ModuleApp' do
|
||||
OrbitApp.registration "Project",:type=> 'ModuleApp' do
|
||||
|
||||
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
|
||||
|
||||
+11
-1
@@ -7,7 +7,8 @@ class Panel::PersonalResearch::BackEnd::ResearchsController < OrbitBackendContro
|
||||
before_filter :force_order_for_user,:except => [:index,:show]
|
||||
|
||||
def index
|
||||
|
||||
|
||||
get_plugins
|
||||
|
||||
@filter = params[:filter]
|
||||
new_filter = params[:new_filter]
|
||||
@@ -52,6 +53,8 @@ class Panel::PersonalResearch::BackEnd::ResearchsController < OrbitBackendContro
|
||||
# GET /researchs/new.xml
|
||||
def new
|
||||
|
||||
get_plugins
|
||||
|
||||
@research = Research.new
|
||||
|
||||
get_tags
|
||||
@@ -64,6 +67,9 @@ class Panel::PersonalResearch::BackEnd::ResearchsController < OrbitBackendContro
|
||||
|
||||
# GET /researchs/1/edit
|
||||
def edit
|
||||
|
||||
get_plugins
|
||||
|
||||
@research = Research.find(params[:id])
|
||||
|
||||
get_tags
|
||||
@@ -172,6 +178,10 @@ class Panel::PersonalResearch::BackEnd::ResearchsController < OrbitBackendContro
|
||||
# end
|
||||
# end
|
||||
|
||||
def get_plugins
|
||||
@plugins = OrbitApp::Module::Registration.all
|
||||
end
|
||||
|
||||
def get_tags
|
||||
module_app = ModuleApp.first(:conditions => {:key => 'personal_research'})
|
||||
@tags = Tag.all(:conditions => {:module_app_id => module_app.id})
|
||||
|
||||
+3
-5
@@ -1,8 +1,6 @@
|
||||
<div id="filter" class="subnav">
|
||||
<div class="filters">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
<div class="table-label">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+5
-5
@@ -1,11 +1,11 @@
|
||||
<tr id="<%= dom_id research %>" class="with_action">
|
||||
<td>
|
||||
<td class="span1">
|
||||
<% if (research.create_user_id == current_user.id) || is_manager? %>
|
||||
<%= check_box_tag 'to_delete[]', research.id, false, :class => "checkbox_in_list" %>
|
||||
<% end -%>
|
||||
</td>
|
||||
<td><%= research.publish_date.strftime("%Y.%m") %></td>
|
||||
<td>
|
||||
<td class="span1"><%= research.publish_date.strftime("%Y.%m") %></td>
|
||||
<td class="span1">
|
||||
<%= link_to research.research_title , panel_personal_research_front_end_research_path(research) %>
|
||||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills hide">
|
||||
@@ -16,7 +16,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
<td><%= research.url %></td>
|
||||
<td><%= User.from_id(research.create_user_id).name rescue ''%></td>
|
||||
<td class="span1"><%= research.url %></td>
|
||||
<td class="span1"><%= User.from_id(research.create_user_id).name rescue ''%></td>
|
||||
</tr>
|
||||
|
||||
+10
@@ -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>
|
||||
|
||||
<%= form_for @research, :url => panel_personal_research_back_end_research_path(@research), :html => {:class => 'clear'} do |f| %>
|
||||
|
||||
+14
-3
@@ -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' %>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table main-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span3"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody_researchs" class="sort-holder">
|
||||
|
||||
+11
@@ -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 %>
|
||||
|
||||
<div id="poststuff">
|
||||
<h1><%= t('research.new_personal_research') %></h1>
|
||||
<%= form_for @research, :url => panel_personal_research_back_end_researchs_path, :html => {:class => 'clear'} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%#= link_back %>
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ module PersonalResearch
|
||||
OrbitApp.registration "Research",:type=> 'ModuleApp' do
|
||||
|
||||
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
|
||||
|
||||
+13
@@ -11,6 +11,8 @@ class Panel::PersonalSeminar::BackEnd::WritingSeminarsController < OrbitBackendC
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
get_plugins
|
||||
|
||||
get_categorys("SeminarPaperType",params[:seminar_paper_type_id])
|
||||
@filter = params[:filter]
|
||||
@@ -51,6 +53,8 @@ class Panel::PersonalSeminar::BackEnd::WritingSeminarsController < OrbitBackendC
|
||||
|
||||
def writing_seminar_setting
|
||||
|
||||
get_plugins
|
||||
|
||||
@author_types = SeminarAuthorType.all
|
||||
@paper_types = SeminarPaperType.all
|
||||
|
||||
@@ -121,6 +125,8 @@ class Panel::PersonalSeminar::BackEnd::WritingSeminarsController < OrbitBackendC
|
||||
# GET /writing_seminars/new.xml
|
||||
def new
|
||||
|
||||
get_plugins
|
||||
|
||||
@writing_seminar = WritingSeminar.new
|
||||
# @writing_seminar_files = WritingSeminarFile.all
|
||||
# @paper_types = SeminarLevelType.all
|
||||
@@ -137,6 +143,9 @@ class Panel::PersonalSeminar::BackEnd::WritingSeminarsController < OrbitBackendC
|
||||
|
||||
# GET /writing_seminars/1/edit
|
||||
def edit
|
||||
|
||||
get_plugins
|
||||
|
||||
@writing_seminar = WritingSeminar.find(params[:id])
|
||||
|
||||
# @paper_types = SeminarLevelType.all
|
||||
@@ -303,6 +312,10 @@ class Panel::PersonalSeminar::BackEnd::WritingSeminarsController < OrbitBackendC
|
||||
# end
|
||||
# end
|
||||
|
||||
def get_plugins
|
||||
@plugins = OrbitApp::Module::Registration.all
|
||||
end
|
||||
|
||||
def get_tags
|
||||
module_app = ModuleApp.first(:conditions => {:key => 'personal_seminar'})
|
||||
@tags = Tag.all(:conditions => {:module_app_id => module_app.id})
|
||||
|
||||
+3
-5
@@ -1,8 +1,6 @@
|
||||
<div id="filter" class="subnav">
|
||||
<div class="filters">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
<div class="table-label">
|
||||
<div id="sort_headers" class="table-label">
|
||||
<%= render 'sort_headers' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
<tr id="<%= dom_id writing_seminar %>" class="with_action">
|
||||
<td>
|
||||
<td class="span1">
|
||||
<% if (writing_seminar.create_user_id == current_user.id) || is_manager? %>
|
||||
<%= check_box_tag 'to_delete[]', writing_seminar.id, false, :class => "checkbox_in_list" %>
|
||||
<% end -%>
|
||||
</td>
|
||||
<td><%= writing_seminar.year %></td>
|
||||
<td>
|
||||
<td class="span1"><%= writing_seminar.year %></td>
|
||||
<td class="span1">
|
||||
<%= link_to writing_seminar.create_link, panel_personal_seminar_front_end_writing_seminar_path(writing_seminar) %>
|
||||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills hide">
|
||||
@@ -16,6 +16,6 @@
|
||||
</ul>
|
||||
</div>
|
||||
</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>
|
||||
|
||||
+10
@@ -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>
|
||||
|
||||
<%= form_for @writing_seminar, :url => panel_personal_seminar_back_end_writing_seminar_path(@writing_seminar), :html => {:class => 'clear'} do |f| %>
|
||||
|
||||
+13
-3
@@ -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' %>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="table main-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span3"></th>
|
||||
<th class="span2"></th>
|
||||
<th class="span1"></th>
|
||||
<th class="span1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody_writing_seminars" class="sort-holder">
|
||||
|
||||
+11
@@ -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 %>
|
||||
|
||||
<div id="poststuff">
|
||||
<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| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%#= link_back %>
|
||||
|
||||
+9
@@ -1,5 +1,14 @@
|
||||
<% # 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 class="item element">
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ module PersonalSeminar
|
||||
OrbitApp.registration "Seminar",:type=> 'ModuleApp' do
|
||||
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user