new ui personal front_end page(member app) & users_new_interface show sub_roles fix
This commit is contained in:
parent
c474fa063f
commit
4078d426a6
|
@ -12,4 +12,7 @@
|
|||
<dd><%= nl2br(show_attribute_value(@user.get_attribute_value(rf).get_value_by_locale(I18n.locale))) rescue '' %></dd>
|
||||
<% end -%>
|
||||
</dl>
|
||||
<%= render :partial => 'show_sub_role',:collection=> @user.get_sub_roles_by_role(show_roles)%>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
<tr><td class="span1"><%= show_sub_role.title %></td></tr>
|
||||
<% show_sub_role.attribute_fields.each do |item|%>
|
||||
<tr>
|
||||
<td class="span1"><%= item.title %></td>
|
||||
<td><%= nl2br(show_attribute_value(@user.get_attribute_value(item).get_value_by_locale(I18n.locale))) rescue '' %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
|
||||
<div class="sub_roles">
|
||||
<h4><span><%= show_sub_role.title %><%= t(:sub_role_info)%></span></h4>
|
||||
<dl>
|
||||
<% show_sub_role.attribute_fields.where(:disabled=>false).asc(:_id).each do |item| %>
|
||||
<dt><%= item.title %></dt>
|
||||
<dd><%= nl2br(show_attribute_value(@user.get_attribute_value(item).get_value_by_locale(I18n.locale))) rescue '' %></dd>
|
||||
<% end -%>
|
||||
</dl>
|
||||
</div>
|
|
@ -417,6 +417,7 @@ en:
|
|||
sub_manager: SubManager
|
||||
sub_role: Sub Role
|
||||
sub_role_field: Sub Role Field
|
||||
sub_role_info: " Sub Role Info."
|
||||
subtitle: Subtitle
|
||||
submit: Submit
|
||||
submit_approval: Submit approval
|
||||
|
|
|
@ -418,6 +418,7 @@ zh_tw:
|
|||
sub_manager: 次管理員
|
||||
sub_role: 子身份
|
||||
sub_role_field: 子身份欄位
|
||||
sub_role_info: 子身份資料
|
||||
subtitle: 副標題
|
||||
submit: 送出
|
||||
submit_approval: 送出已核准
|
||||
|
|
|
@ -47,10 +47,12 @@ module OrbitApp
|
|||
@base_path = args[0][:base_path]
|
||||
@name = partial[0][:i18n].nil? ? name : lambda{ I18n.t(partial[0][:i18n]) }
|
||||
@partial_path = ''
|
||||
@front_partial_path = ''
|
||||
@admin_partial_path = ''
|
||||
|
||||
unless partial.nil?
|
||||
@partial_path = partial[0][:path]
|
||||
@front_partial_path = partial[0][:front_path]
|
||||
@admin_partial_path = partial[0][:admin_path]
|
||||
end
|
||||
|
||||
|
@ -61,6 +63,10 @@ module OrbitApp
|
|||
return @partial_path
|
||||
end
|
||||
|
||||
def front_partial_path
|
||||
return @front_partial_path
|
||||
end
|
||||
|
||||
def admin_partial_path
|
||||
return @admin_partial_path
|
||||
end
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
function moduletab() {
|
||||
$('.module-nav li').each(function(i) {
|
||||
if(i == 0) {
|
||||
$(this).addClass('active');
|
||||
$('.module-pane').eq(i).addClass('active')
|
||||
};
|
||||
var id = $(this).find('a').attr('href');
|
||||
$(this).find('a').on('click', function(event) {
|
||||
event.preventDefault();
|
||||
$(this).closest('li').addClass('active').siblings().removeClass('active').closest('.member-module').find(id).addClass('active').siblings().removeClass('active')
|
||||
});
|
||||
});
|
||||
};
|
||||
$(function() {
|
||||
moduletab();
|
||||
});
|
125
vendor/built_in_modules/member/app/assets/stylesheets/member/default_member.css
vendored
Normal file
125
vendor/built_in_modules/member/app/assets/stylesheets/member/default_member.css
vendored
Normal file
|
@ -0,0 +1,125 @@
|
|||
.default_member:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: block;
|
||||
visibility: hidden;
|
||||
}
|
||||
.default_member .member-pic {
|
||||
float: left;
|
||||
width: 30%;
|
||||
}
|
||||
.default_member .member-pic img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.default_member .member-data {
|
||||
float: right;
|
||||
width: 68%;
|
||||
}
|
||||
.default_member .member-data table {
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
}
|
||||
.default_member .member-data table td {
|
||||
padding: 5px;
|
||||
background-color: #ccc;
|
||||
border: 1px solid #fff;
|
||||
}
|
||||
.default_member .member-data table td + td {
|
||||
background-color: #ededed;
|
||||
}
|
||||
.default_member .member-module {
|
||||
clear: both;
|
||||
padding-top: 30px;
|
||||
}
|
||||
.default_member .member-module .module-nav ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
.default_member .member-module .module-nav ul:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: block;
|
||||
height: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
.default_member .member-module .module-nav ul li {
|
||||
float: left;
|
||||
display: inline-block;
|
||||
margin-right: 3px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.default_member .member-module .module-nav ul li a {
|
||||
padding: 5px 8px;
|
||||
line-height: 30px;
|
||||
height: 30px;
|
||||
border-radius: 3px;
|
||||
text-decoration: none;
|
||||
background-color: #DDD;
|
||||
}
|
||||
.default_member .member-module .module-nav ul li.active a {
|
||||
background-color: #0088CE;
|
||||
color: #FFF;
|
||||
}
|
||||
.default_member .member-module .module-content {
|
||||
position: relative;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.default_member .member-module .module-content .module-pane {
|
||||
display: none;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.default_member .member-module .module-content .module-pane table {
|
||||
width: 100%;
|
||||
}
|
||||
.default_member .member-module .module-content .module-pane.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[class*="grid"] + [class*="grid"] {
|
||||
margin-left: 2.12766%;
|
||||
}
|
||||
.grid12 {
|
||||
width: 100%;
|
||||
}
|
||||
.grid11 {
|
||||
width: 91.4894%;
|
||||
}
|
||||
.grid10 {
|
||||
width: 82.9787%;
|
||||
}
|
||||
.grid9 {
|
||||
width: 74.4681%;
|
||||
}
|
||||
.grid8 {
|
||||
width: 65.9574%;
|
||||
}
|
||||
.grid7 {
|
||||
width: 57.4468%;
|
||||
}
|
||||
.grid6 {
|
||||
width: 48.9362%;
|
||||
}
|
||||
.grid5 {
|
||||
width: 40.4255%;
|
||||
}
|
||||
.grid4 {
|
||||
width: 31.9149%;
|
||||
}
|
||||
.grid3 {
|
||||
width: 23.4043%;
|
||||
}
|
||||
.grid2 {
|
||||
width: 14.8936%;
|
||||
}
|
||||
.grid1 {
|
||||
width: 6.38298%;
|
||||
}
|
|
@ -8,6 +8,36 @@
|
|||
.o-members-category:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.o-members-nav {
|
||||
margin: 0 0 10px;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.o-members-nav:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: block;
|
||||
height: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
.o-members-nav li {
|
||||
float: left;
|
||||
}
|
||||
.o-members-nav li + li {
|
||||
margin-left: 8px;
|
||||
}
|
||||
.o-members-nav li a {
|
||||
display: inline-block;
|
||||
line-height: 23px;
|
||||
padding: 5px 8px;
|
||||
height: 23px;
|
||||
background-color: #ccc;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.o-members-nav li.active a {
|
||||
color: #FFF;
|
||||
background-color: #0088CE;
|
||||
}
|
||||
.o-members-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
|
|
|
@ -28,23 +28,35 @@ class Panel::Member::FrontEnd::MemberListsController < OrbitWidgetController
|
|||
|
||||
@member_subroles = SubRole.where(:role_id => @role_id, :disabled => false)
|
||||
|
||||
@member_list_categorys = RoleCategory.where(:role_id => @role_id,disable: false).asc("key")
|
||||
|
||||
if !params[:category_id].blank?
|
||||
@member_status = RoleStatus.can_display.any_in(:_id => params[:category_id]).asc("key")
|
||||
|
||||
@member_lists = User.where(:role_ids => @role_id)
|
||||
|
||||
else
|
||||
@member_status = RoleStatus.can_display.where(:role_id => @role_id).asc("key")
|
||||
|
||||
@member_lists = User.where(:role_ids => @role_id)
|
||||
|
||||
end
|
||||
|
||||
if !params[:mcid].blank?
|
||||
@member_lists = User.where(:role_ids => @role_id, :role_category_ids => params[:mcid])
|
||||
else
|
||||
@member_lists = User.where(:role_ids => @role_id)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
def show
|
||||
@member_list = User.find(params[:id])
|
||||
# get_categorys
|
||||
@member = User.find(params[:id])
|
||||
|
||||
@plugins = OrbitApp::Plugin::Registration.all
|
||||
|
||||
@profile_data = []
|
||||
|
||||
attribute_values = @member.attribute_values.asc("_id")
|
||||
attribute_values.each{|att_val|
|
||||
@profile_data.push({:name => att_val.attribute_field.title,:value =>att_val.get_value_by_locale(I18n.locale.to_s)}) if att_val.attribute_field.attribute.key=="profile" rescue false
|
||||
}
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
<%
|
||||
@status = @member.role_statuses.where(:role_id=>show_roles.id)
|
||||
|
||||
if !@status.blank?
|
||||
%>
|
||||
<tr>
|
||||
<td><%= t('status')%></td>
|
||||
<td><%= show_attribute_value(@member.role_statuses.where(:role_id=>show_roles.id).map{|t|t.title.to_s}.join(',')) rescue '' %></td>
|
||||
</tr>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<%
|
||||
@category = @member.role_categorys.where(:role_id=>show_roles.id)
|
||||
|
||||
if !@category.blank?
|
||||
%>
|
||||
<tr>
|
||||
<td><%= t('category')%></td>
|
||||
<td><%= show_attribute_value(@member.role_categorys.where(:role_id=>show_roles.id).map{|t|t.title.to_s}.join(',')) rescue '' %></td>
|
||||
</tr>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<% show_roles.attribute_fields.where(:disabled=>false).asc(:_id).each do |rf| %>
|
||||
|
||||
<%
|
||||
if !@member.get_attribute_value(rf).blank?
|
||||
if !@member.get_attribute_value(rf)['val'].blank?
|
||||
@rodata = @member.get_attribute_value(rf)['val']
|
||||
elsif !@member.get_attribute_value(rf)[I18n.locale].blank?
|
||||
@rodata = @member.get_attribute_value(rf)[I18n.locale]
|
||||
else
|
||||
@rodata = nil
|
||||
end
|
||||
end
|
||||
|
||||
if !@rodata.blank? and !@member.get_attribute_value(rf).get_value_by_locale(I18n.locale).blank?
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td><%= rf.title %></td>
|
||||
<td><%= nl2br(show_attribute_value(@member.get_attribute_value(rf).get_value_by_locale(I18n.locale))) rescue '' %></td>
|
||||
</tr>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<%= render :partial => 'show_sub_role',:collection=> @member.get_sub_roles_by_role(show_roles)%>
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
|
||||
<% show_sub_role.attribute_fields.where(:disabled=>false).asc(:_id).each do |item| %>
|
||||
|
||||
|
||||
<%
|
||||
|
||||
if !@member.get_attribute_value(item).blank?
|
||||
if !@member.get_attribute_value(item)['val'].blank?
|
||||
@rodata = @member.get_attribute_value(item)['val']
|
||||
elsif !@member.get_attribute_value(item)[I18n.locale].blank?
|
||||
@rodata = @member.get_attribute_value(item)[I18n.locale]
|
||||
else
|
||||
@rodata = nil
|
||||
end
|
||||
end
|
||||
|
||||
if !@rodata.blank? and !@member.get_attribute_value(item).get_value_by_locale(I18n.locale).blank?
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td><%= item.title %></td>
|
||||
<td><%= nl2br(show_attribute_value(@member.get_attribute_value(item).get_value_by_locale(I18n.locale))) rescue '' %></td>
|
||||
</tr>
|
||||
|
||||
<% end -%>
|
||||
|
||||
<% end -%>
|
|
@ -1,11 +1,20 @@
|
|||
<% # encoding: utf-8 %>
|
||||
|
||||
<% if @item.frontend_style == 'Single' %>
|
||||
|
||||
<section>
|
||||
|
||||
<div class="side"></div>
|
||||
<div class="main">
|
||||
|
||||
<% if !@member_list_categorys.blank? %>
|
||||
<ul class="o-members-nav">
|
||||
<% @member_list_categorys.each do |mc| %>
|
||||
<li class="<%= (params[:mcid] == mc.id.to_s) ? 'active' : '' %>"><a href="?&mcid=<%= mc.id %>"><%= mc.title %></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<% if @item.frontend_style == 'Single' %>
|
||||
|
||||
<div class="o-members">
|
||||
|
||||
<% @member_status.each do |ms| %>
|
||||
|
@ -19,7 +28,7 @@
|
|||
<div class="o-members-pic"><%= show_avatar(member) %></div>
|
||||
<ul class="o-members-info">
|
||||
<li><b class="o-members-label"><%= t("users.name")%></b><%= link_to member.name, panel_member_front_end_member_list_path(member.id), {:class => "o-members-link"} %></li>
|
||||
<li><b class="o-members-label">Title</b><%= show_attribute_value(member.role_categorys.map{|t|t.title.to_s}.join(',')) rescue '' %></li>
|
||||
<li><b class="o-members-label"><%= @member_lists.get_member_list_attribute_field_name("teacher","job_title") %></b><%= show_attribute_value(@member_lists.get_member_list_attribute_value(member.id,"teacher","job_title").get_value_by_locale(I18n.locale)) %></li>
|
||||
<li><b class="o-members-label"><%= t("users.email")%></b><%= member.email %></li>
|
||||
<li><b class="o-members-label"><%= t("users.office_tel")%></b><%= member.office_tel %></li>
|
||||
</ul>
|
||||
|
@ -32,10 +41,8 @@
|
|||
<% end %>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<% elsif @item.frontend_style == 'Two' %>
|
||||
<% elsif @item.frontend_style == 'Two' or @item.frontend_style.blank? %>
|
||||
|
||||
<section>
|
||||
|
||||
|
@ -54,7 +61,7 @@
|
|||
<div class="o-members-pic"><%= show_avatar(member) %></div>
|
||||
<ul class="o-members-info">
|
||||
<li><b class="o-members-label"><%= t("users.name")%></b><%= link_to member.name, panel_member_front_end_member_list_path(member.id), {:class => "o-members-link"} %></li>
|
||||
<li><b class="o-members-label">Title</b><%= show_attribute_value(member.role_categorys.map{|t|t.title.to_s}.join(',')) rescue '' %></li>
|
||||
<li><b class="o-members-label"><%= @member_lists.get_member_list_attribute_field_name("teacher","job_title") %></b><%= show_attribute_value(@member_lists.get_member_list_attribute_value(member.id,"teacher","job_title").get_value_by_locale(I18n.locale)) %></li>
|
||||
<li><b class="o-members-label"><%= t("users.email")%></b> <%= member.email %></li>
|
||||
<li><b class="o-members-label"><%= t("users.office_tel")%></b><%= member.office_tel %></li>
|
||||
</ul>
|
||||
|
@ -67,10 +74,10 @@
|
|||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<% end %>
|
||||
|
||||
|
||||
<%= stylesheet_link_tag "member/members" %>
|
||||
|
|
|
@ -0,0 +1,83 @@
|
|||
<div class="default_member">
|
||||
<div class="member-data">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><%= t('users.name')%></td>
|
||||
<td><%= @member.name%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><%= t('users.email')%></td>
|
||||
<td><a href="mailto:<%= @member.email %>"><%= @member.email %></a></td>
|
||||
</tr>
|
||||
<% if !@member.sid.blank? %>
|
||||
<tr>
|
||||
<td><%= t('users.sid')%></td>
|
||||
<td><%= @member.sid%></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% if !@member.office_tel.blank? %>
|
||||
<tr>
|
||||
<td><%= t('users.office_tel')%></td>
|
||||
<td><%= @member.office_tel%></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<tr>
|
||||
<td><%= t('users.sex')%></td>
|
||||
<td><%= t("users.#{@member.sex}") %></td>
|
||||
</tr>
|
||||
|
||||
<% @profile_data.each do |item| %>
|
||||
<% if !item[:value].blank? %>
|
||||
<tr>
|
||||
<td><%= item[:name] %></td>
|
||||
<td><%= show_attribute_value(item[:value]) %></td>
|
||||
</tr>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
<%= render :partial=> "show_roles",:collection=>@member.roles.asc(:created_at) %>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="member-pic">
|
||||
<%= show_avatar(@member) %>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="member-module">
|
||||
<div class="module-nav">
|
||||
<ul>
|
||||
<% @plugins.each do |plugin| %>
|
||||
<li><a href="#<%= plugin.name %>"><%= plugin.name %></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="module-content">
|
||||
<%
|
||||
|
||||
@plugins.each do |plugin|
|
||||
|
||||
@plugin_partial = !plugin.front_partial_path.blank? ? OrbitApp::Plugin::Registration.find_by_key(plugin.name).front_partial_path : nil
|
||||
%>
|
||||
|
||||
<div class="module-pane" id="<%= plugin.name %>">
|
||||
<%= render :partial => @plugin_partial if !@plugin_partial.blank? %>
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<%= stylesheet_link_tag "member/default_member" %>
|
||||
|
||||
<%= javascript_include_tag "member/moduletab" %>
|
||||
|
42
vendor/built_in_modules/personal_book/app/views/panel/personal_book/front_end/_profile.html.erb
vendored
Normal file
42
vendor/built_in_modules/personal_book/app/views/panel/personal_book/front_end/_profile.html.erb
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
<%
|
||||
if @member
|
||||
@writing_books = WritingBook.where(:create_user_id => @member.id).desc(:year)
|
||||
else
|
||||
@writing_books = WritingBook.all.desc(:year)
|
||||
end
|
||||
|
||||
%>
|
||||
|
||||
<% if !@writing_books.blank? %>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="grid1"><%= t('personal_book.year') %></th>
|
||||
<th class="grid8"><%= t('personal_book.book_title') %></th>
|
||||
<th class="grid3"><%= t('personal_book.authors') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<% @writing_books.each do |writing_book| %>
|
||||
|
||||
<tr>
|
||||
<td><%= writing_book.year %></td>
|
||||
<td>
|
||||
<%= link_to writing_book.create_link, panel_personal_book_front_end_writing_book_path(writing_book) %>
|
||||
</td>
|
||||
<td><%= writing_book.authors %></td>
|
||||
</tr>
|
||||
|
||||
<% end %>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<% else %>
|
||||
|
||||
<%= t('nothing')%>
|
||||
|
||||
<% end %>
|
|
@ -28,8 +28,8 @@
|
|||
<table class="table table-condensed table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"><%= t('writing_book.year') %></th>
|
||||
<th><%= t('writing_book.title') %></th>
|
||||
<th class="span1"><%= t('personal_book.year') %></th>
|
||||
<th><%= t('personal_book.book_title') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
@ -2,7 +2,7 @@ module PersonalBook
|
|||
OrbitApp.registration "PersonalBook",:type=> 'ModuleApp' do
|
||||
module_label 'module_name.personal_book'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_book/plugin/profile",:admin_path=>"/panel/personal_book/back_end/writing_books",:i18n=>'module_name.personal_book'
|
||||
personal_plugin :enable => true,:path=>"panel/personal_book/plugin/profile",:front_path=>"panel/personal_book/front_end/profile",:admin_path=>"/panel/personal_book/back_end/writing_books",:i18n=>'module_name.personal_book'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
<%
|
||||
if @member
|
||||
@writing_conferences = WritingConference.where(:create_user_id => @member.id).desc(:year)
|
||||
else
|
||||
@writing_conferences = WritingConference.all.desc(:year)
|
||||
end
|
||||
|
||||
%>
|
||||
|
||||
<% if !@writing_conferences.blank? %>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="grid1"><%= t('personal_conference.year') %></th>
|
||||
<th class="grid8"><%= t('module_name.personal_conference') %></th>
|
||||
<th class="grid3"><%= t('personal_conference.authors') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<% @writing_conferences.each do |writing_conference| %>
|
||||
|
||||
<tr>
|
||||
<td><%= writing_conference.year %></td>
|
||||
<td>
|
||||
<%= link_to writing_conference.create_link, panel_personal_conference_front_end_writing_conference_path(writing_conference) %>
|
||||
</td>
|
||||
<td><%= writing_conference.authors %></td>
|
||||
</tr>
|
||||
|
||||
<% end %>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<% else %>
|
||||
|
||||
<%= t('nothing')%>
|
||||
|
||||
<% end %>
|
|
@ -29,8 +29,8 @@
|
|||
<table class="table table-condensed table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"><%= t('writing_conference.year') %></th>
|
||||
<th><%= t('writing_conference.title') %></th>
|
||||
<th class="span1"><%= t('personal_conference.year') %></th>
|
||||
<th><%= t('module_name.personal_conference') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
@ -2,7 +2,7 @@ module PersonalConference
|
|||
OrbitApp.registration "PersonalConference",:type=> 'ModuleApp' do
|
||||
module_label 'module_name.personal_conference'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_conference/plugin/profile",:admin_path=>"/panel/personal_conference/back_end/writing_conferences",:i18n=>'module_name.personal_conference'
|
||||
personal_plugin :enable => true,:path=>"panel/personal_conference/plugin/profile",:front_path=>"panel/personal_conference/front_end/profile",:admin_path=>"/panel/personal_conference/back_end/writing_conferences",:i18n=>'module_name.personal_conference'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
<%
|
||||
if @member
|
||||
@diplomas = Diploma.where(:create_user_id => @member.id).desc(:start_date)
|
||||
else
|
||||
@diplomas = Diploma.all.desc(:start_date)
|
||||
end
|
||||
%>
|
||||
|
||||
<% if !@diplomas.blank? %>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="grid3"><%= t('date_') %></th>
|
||||
<th class="grid9"><%= t('personal_diploma.school_name') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<% @diplomas.each do |diploma| %>
|
||||
|
||||
<tr>
|
||||
<td><%= diploma.start_date.strftime("%Y.%m") %> ~ <%= diploma.end_date.strftime("%Y.%m") %></td>
|
||||
<td>
|
||||
<%= link_to diploma.school_name, panel_personal_diploma_front_end_diploma_path(diploma) %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<% end %>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% else %>
|
||||
|
||||
<%= t('nothing')%>
|
||||
|
||||
<% end %>
|
|
@ -28,8 +28,8 @@
|
|||
<table class="table table-condensed table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span2"><%= t('diploma.date') %></th>
|
||||
<th><%= t('diploma.school_name') %></th>
|
||||
<th class="span2"><%= t('date_') %></th>
|
||||
<th><%= t('personal_diploma.school_name') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
@ -2,7 +2,7 @@ module PersonalDiploma
|
|||
OrbitApp.registration "PersonalDiploma",:type=> 'ModuleApp' do
|
||||
module_label 'module_name.personal_diploma'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_diploma/plugin/profile",:admin_path=>"/panel/personal_diploma/back_end/diplomas",:i18n=>'module_name.personal_diploma'
|
||||
personal_plugin :enable => true,:path=>"panel/personal_diploma/plugin/profile",:front_path=>"panel/personal_diploma/front_end/profile",:admin_path=>"/panel/personal_diploma/back_end/diplomas",:i18n=>'module_name.personal_diploma'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
<%
|
||||
if @member
|
||||
@experiences = Experience.where(:create_user_id => @member.id).desc(:start_date)
|
||||
else
|
||||
@experiences = Experience.all.desc(:start_date)
|
||||
end
|
||||
%>
|
||||
|
||||
<% if !@experiences.blank? %>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="grid3"><%= t('date_') %></th>
|
||||
<th class="grid9"><%= t('personal_experience.organizationt_title') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<% @experiences.each do |experience| %>
|
||||
|
||||
<tr>
|
||||
<td><%= experience.start_date.strftime("%Y.%m") %> ~ <%= experience.end_date.strftime("%Y.%m") %></td>
|
||||
<td>
|
||||
<%= link_to experience.organizationt_title, panel_personal_experience_front_end_experience_path(experience) %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<% end %>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% else %>
|
||||
|
||||
<%= t('nothing')%>
|
||||
|
||||
<% end %>
|
|
@ -29,8 +29,8 @@
|
|||
<table class="table table-condensed table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span2"><%= t('experience.date') %></th>
|
||||
<th><%= t('experience.organizationt_title') %></th>
|
||||
<th class="span2"><%= t('date_') %></th>
|
||||
<th><%= t('personal_experience.organizationt_title') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
@ -2,7 +2,7 @@ module PersonalExperience
|
|||
OrbitApp.registration "PersonalExperience",:type=> 'ModuleApp' do
|
||||
module_label 'module_name.personal_experience'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_experience/plugin/profile",:admin_path=>"/panel/personal_experience/back_end/experiences",:i18n=>'module_name.personal_experience'
|
||||
personal_plugin :enable => true,:path=>"panel/personal_experience/plugin/profile",:front_path=>"panel/personal_experience/front_end/profile",:admin_path=>"/panel/personal_experience/back_end/experiences",:i18n=>'module_name.personal_experience'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
<%
|
||||
if @member
|
||||
@honors = Honor.where(:create_user_id => @member.id).desc(:year)
|
||||
else
|
||||
@honors = Honor.all.desc(:year)
|
||||
end
|
||||
%>
|
||||
|
||||
<% if !@honors.blank? %>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="grid1"><%= t('personal_honor.year') %></th>
|
||||
<th class="grid10"><%= t('personal_honor.award_name') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<% @honors.each do |honor| %>
|
||||
|
||||
<tr>
|
||||
<td><%= honor.year %></td>
|
||||
<td>
|
||||
<%= link_to honor.award_name, panel_personal_honor_front_end_honor_path(honor) %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<% end %>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% else %>
|
||||
|
||||
<%= t('nothing')%>
|
||||
|
||||
<% end %>
|
|
@ -29,8 +29,8 @@
|
|||
<table class="table table-condensed table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"><%= t('honor.year') %></th>
|
||||
<th><%= t('honor.award_name') %></th>
|
||||
<th class="span1"><%= t('personal_honor.year') %></th>
|
||||
<th><%= t('personal_honor.award_name') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
@ -2,7 +2,7 @@ module PersonalHonor
|
|||
OrbitApp.registration "PersonalHonor",:type=> 'ModuleApp' do
|
||||
module_label 'module_name.personal_honor'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_honor/plugin/profile",:admin_path=>"/panel/personal_honor/back_end/honors",:i18n=>'module_name.personal_honor'
|
||||
personal_plugin :enable => true,:path=>"panel/personal_honor/plugin/profile",:front_path=>"panel/personal_honor/front_end/profile",:admin_path=>"/panel/personal_honor/back_end/honors",:i18n=>'module_name.personal_honor'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
<%
|
||||
if @member
|
||||
@writing_journals = WritingJournal.where(:create_user_id => @member.id).desc(:year)
|
||||
else
|
||||
@writing_journals = WritingJournal.all.desc(:year)
|
||||
end
|
||||
|
||||
%>
|
||||
|
||||
<% if !@writing_journals.blank? %>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="grid1"><%= t('personal_journal.year') %></th>
|
||||
<th class="grid8"><%= t('module_name.personal_journal') %></th>
|
||||
<th class="grid3"><%= t('personal_journal.authors') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<% @writing_journals.each do |writing_journal| %>
|
||||
|
||||
<tr>
|
||||
<td><%= writing_journal.year %></td>
|
||||
<td>
|
||||
<%= link_to writing_journal.create_link, panel_personal_journal_front_end_writing_journal_path(writing_journal) %>
|
||||
</td>
|
||||
<td><%= writing_journal.authors %></td>
|
||||
</tr>
|
||||
|
||||
<% end %>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% else %>
|
||||
|
||||
<%= t('nothing')%>
|
||||
|
||||
<% end %>
|
|
@ -27,10 +27,10 @@
|
|||
<table class="table table-condensed table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"><%= t('writing_journal.year') %></th>
|
||||
<th><%= t('writing_journal.title') %></th>
|
||||
<th class="span1"><%= t('personal_journal.year') %></th>
|
||||
<th><%= t('module_name.personal_journal') %></th>
|
||||
<% if not @user%>
|
||||
<th><%= t('writing_journal.authors') %></th>
|
||||
<th><%= t('personal_journal.authors') %></th>
|
||||
<% end %>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
|
@ -2,7 +2,7 @@ module PersonalJournal
|
|||
OrbitApp.registration "PersonalJournal",:type=> 'ModuleApp' do
|
||||
module_label 'module_name.personal_journal'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_journal/plugin/profile",:admin_path=>"/panel/personal_journal/back_end/writing_journals",:i18n=>'module_name.personal_journal'
|
||||
personal_plugin :enable => true,:path=>"panel/personal_journal/plugin/profile",:front_path=>"panel/personal_journal/front_end/profile",:admin_path=>"/panel/personal_journal/back_end/writing_journals",:i18n=>'module_name.personal_journal'
|
||||
|
||||
|
||||
|
||||
|
|
40
vendor/built_in_modules/personal_lab/app/views/panel/personal_lab/front_end/_profile.html.erb
vendored
Normal file
40
vendor/built_in_modules/personal_lab/app/views/panel/personal_lab/front_end/_profile.html.erb
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
<%
|
||||
if @member
|
||||
@labs = Lab.where(:create_user_id => @member.id).desc(:year)
|
||||
else
|
||||
@labs = Lab.all.desc(:year)
|
||||
end
|
||||
%>
|
||||
|
||||
<% if !@labs.blank? %>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="grid1"><%= t('personal_lab.year') %></th>
|
||||
<th class="grid7"><%= t('personal_lab.lab_title') %></th>
|
||||
<th class="grid4"><%= t('personal_lab.location') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<% @labs.each do |lab| %>
|
||||
|
||||
<tr>
|
||||
<td><%= lab.year %></td>
|
||||
<td>
|
||||
<%= link_to lab.lab_title, panel_personal_lab_front_end_lab_path(lab) %>
|
||||
</td>
|
||||
<td><%= lab.location %></td>
|
||||
</tr>
|
||||
|
||||
<% end %>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% else %>
|
||||
|
||||
<%= t('nothing')%>
|
||||
|
||||
<% end %>
|
|
@ -29,9 +29,9 @@
|
|||
<table class="table table-condensed table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span1"><%= t('lab.year') %></th>
|
||||
<th><%= t('lab.lab_title') %></th>
|
||||
<th><%= t('lab.location') %></th>
|
||||
<th class="span1"><%= t('personal_lab.year') %></th>
|
||||
<th><%= t('personal_lab.lab_title') %></th>
|
||||
<th><%= t('personal_lab.location') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
@ -2,7 +2,7 @@ module PersonalLab
|
|||
OrbitApp.registration "PersonalLab",:type=> 'ModuleApp' do
|
||||
module_label 'module_name.personal_lab'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_lab/plugin/profile",:admin_path=>"/panel/personal_lab/back_end/labs",:i18n=>'module_name.personal_lab'
|
||||
personal_plugin :enable => true,:path=>"panel/personal_lab/plugin/profile",:front_path=>"panel/personal_lab/front_end/profile",:admin_path=>"/panel/personal_lab/back_end/labs",:i18n=>'module_name.personal_lab'
|
||||
|
||||
|
||||
end
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
<%
|
||||
if @member
|
||||
@writing_patents = WritingPatent.where(:create_user_id => @member.id).desc(:publish_date)
|
||||
else
|
||||
@writing_patents = WritingPatent.all.desc(:publish_date)
|
||||
end
|
||||
%>
|
||||
|
||||
<% if !@writing_patents.blank? %>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="grid2"><%= t('personal_patent.publication_date') %></th>
|
||||
<th class="grid10"><%= t('personal_patent.patent_title') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<% @writing_patents.each do |writing_patent| %>
|
||||
|
||||
<tr>
|
||||
<td><%= writing_patent.publish_date.strftime("%Y.%m") %></td>
|
||||
<td>
|
||||
<%= link_to writing_patent.patent_title, panel_personal_patent_front_end_writing_patent_path(writing_patent) %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<% end %>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% else %>
|
||||
|
||||
<%= t('nothing')%>
|
||||
|
||||
<% end %>
|
|
@ -30,8 +30,8 @@
|
|||
<table class="table table-condensed table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span2"><%= t('writing_patent.publish_date') %></th>
|
||||
<th><%= t('writing_patent.title') %></th>
|
||||
<th class="span2"><%= t('personal_patent.publication_date') %></th>
|
||||
<th><%= t('personal_patent.patent_title') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
@ -2,7 +2,7 @@ module PersonalPatent
|
|||
OrbitApp.registration "PersonalPatent",:type=> 'ModuleApp' do
|
||||
module_label 'module_name.personal_patent'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_patent/plugin/profile",:admin_path=>"/panel/personal_patent/back_end/writing_patents",:i18n=>'module_name.personal_patent'
|
||||
personal_plugin :enable => true,:path=>"panel/personal_patent/plugin/profile",:front_path=>"panel/personal_patent/front_end/profile",:admin_path=>"/panel/personal_patent/back_end/writing_patents",:i18n=>'module_name.personal_patent'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
<%
|
||||
if @member
|
||||
@projects = Project.where(:create_user_id => @member.id).desc(:period_start_date)
|
||||
else
|
||||
@projects = Project.all.page(params[:page]).per(10)
|
||||
end
|
||||
%>
|
||||
|
||||
<% if !@projects.blank? %>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="grid3"><%= t('personal_project.period') %></th>
|
||||
<th class="grid9"><%= t('personal_project.project_title') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<% @projects.each do |project| %>
|
||||
|
||||
<tr>
|
||||
<td><%= project.period_start_date.strftime("%Y.%m") %> ~ <%= project.period_end_date.strftime("%Y.%m") %></td>
|
||||
<td>
|
||||
<%= link_to project.project_title, panel_personal_project_front_end_project_path(project) %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<% end %>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% else %>
|
||||
|
||||
<%= t('nothing')%>
|
||||
|
||||
<% end %>
|
|
@ -29,8 +29,8 @@
|
|||
<table class="table table-condensed table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span2"><%= t('project.period') %></th>
|
||||
<th><%= t('project.project_title') %></th>
|
||||
<th class="span2"><%= t('personal_project.period') %></th>
|
||||
<th><%= t('personal_project.project_title') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
@ -6,6 +6,7 @@ en:
|
|||
job_title : "Job Title"
|
||||
participator : "Participartor"
|
||||
project_category : "Project Category"
|
||||
period : "Period"
|
||||
end_date : "End Date"
|
||||
start_date : "Start Date"
|
||||
extracted_chapters : "Extracted Chapters"
|
||||
|
|
|
@ -7,6 +7,7 @@ zh_tw:
|
|||
participator : "參與人"
|
||||
extracted_chapters : "Extracted Chapters"
|
||||
project_category : "計畫類別"
|
||||
period : "計畫期間"
|
||||
end_date : "結束日期"
|
||||
start_date : "開始日期"
|
||||
unit : "補助/委託或合作機構"
|
||||
|
|
|
@ -2,7 +2,7 @@ module PersonalProject
|
|||
OrbitApp.registration "PersonalProject",:type=> 'ModuleApp' do
|
||||
module_label 'module_name.personal_project'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_project/plugin/profile",:admin_path=>"/panel/personal_project/back_end/projects",:i18n=>'module_name.personal_project'
|
||||
personal_plugin :enable => true,:path=>"panel/personal_project/plugin/profile",:front_path=>"panel/personal_project/front_end/profile",:admin_path=>"/panel/personal_project/back_end/projects",:i18n=>'module_name.personal_project'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
<%
|
||||
if @member
|
||||
@researchs = Research.where(:create_user_id => @member.id).desc(:publish_date)
|
||||
else
|
||||
@researchs = Research.all.desc(:publish_date)
|
||||
end
|
||||
%>
|
||||
|
||||
<% if !@researchs.blank? %>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="grid2"><%= t('personal_research.publication_date') %></th>
|
||||
<th class="grid10"><%= t('personal_research.research_title') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<% @researchs.each do |research| %>
|
||||
|
||||
<tr>
|
||||
<td><%= research.publish_date.strftime("%Y.%m") %></td>
|
||||
<td>
|
||||
<%= link_to research.research_title, panel_personal_research_front_end_research_path(research) %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<% end %>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% else %>
|
||||
|
||||
<%= t('nothing')%>
|
||||
|
||||
<% end %>
|
|
@ -28,8 +28,8 @@
|
|||
<table class="table table-condensed table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span2"><%= t('research.publish_date') %></th>
|
||||
<th><%= t('research.title') %></th>
|
||||
<th class="span2"><%= t('personal_research.publication_date') %></th>
|
||||
<th><%= t('personal_research.research_title') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
@ -2,7 +2,7 @@ module PersonalResearch
|
|||
OrbitApp.registration "PersonalResearch",:type=> 'ModuleApp' do
|
||||
module_label 'module_name.personal_research'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/personal_research/plugin/profile",:admin_path=>"/panel/personal_research/back_end/researchs",:i18n=>'module_name.personal_research'
|
||||
personal_plugin :enable => true,:path=>"panel/personal_research/plugin/profile",:front_path=>"panel/personal_research/front_end/profile",:admin_path=>"/panel/personal_research/back_end/researchs",:i18n=>'module_name.personal_research'
|
||||
|
||||
|
||||
|
||||
|
|
Reference in New Issue