Merge branch 'development' of https://github.com/Rulingcom/orbit into 0917_ntu_mb
Bring Development Related Changes to ntu_mb
This commit is contained in:
commit
096aec3406
|
@ -29,6 +29,9 @@
|
||||||
//column="true" this option is only for column layout... the columns will be formed on this column=true attribute and it should be a div
|
//column="true" this option is only for column layout... the columns will be formed on this column=true attribute and it should be a div
|
||||||
//item=true this attribute should be present in the li tag. li with this attribute are considered as a separate item.
|
//item=true this attribute should be present in the li tag. li with this attribute are considered as a separate item.
|
||||||
|
|
||||||
|
//enableLanguageSelect( dom ) children <a> will be binded with language, data-lang = string ex "en"|"zh_tw" will toggle all data-langunage throughout the page
|
||||||
|
//enableSharing( dom ) children <a> will be binded with share, data-mode = string ex "public"|"private" will change the mode for all the selected items. the dom with class should have data-link = url data-var = vaiable_name, default will be mode
|
||||||
|
|
||||||
|
|
||||||
$.extend($.expr[':'], {
|
$.extend($.expr[':'], {
|
||||||
'containsi': function (elem, i, match, array) {
|
'containsi': function (elem, i, match, array) {
|
||||||
|
@ -1881,6 +1884,35 @@ var orbitDesktop = function(dom){
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.enableSharing = function( dom ){
|
||||||
|
var el = $( dom ),
|
||||||
|
variable = ( el.data( 'var' ) ? el.data( "var" ) : "mode"),
|
||||||
|
_url = el.data( 'link' ) + "?" + variable + "=",
|
||||||
|
classes = [];
|
||||||
|
|
||||||
|
el.find( "a" ).each( function(){
|
||||||
|
classes.push( $( this ).attr( "item-class" ) ? $( this ).attr( "item-class" ) : $( this ).data( 'mode' ) );
|
||||||
|
})
|
||||||
|
|
||||||
|
el.find( "a" ).click( function(){
|
||||||
|
var ids = [],
|
||||||
|
mode = $( this ).data( 'mode' ),
|
||||||
|
inject_class = $( this ).attr( 'item-class' ) ? $( this ).attr( 'item-class' ) : mode;
|
||||||
|
|
||||||
|
$( ".overview li[item=true] a.icon-check" ).each( function(){
|
||||||
|
ids.push( $( this ).data( 'id' ) );
|
||||||
|
$( "li[data-id="+ $( this ).data( 'id' ) +"]").removeClass( classes.join( " " ) ).addClass( inject_class );
|
||||||
|
})
|
||||||
|
$.ajax({
|
||||||
|
url : _url + mode,
|
||||||
|
data : {"ids" : ids},
|
||||||
|
datatype : "json",
|
||||||
|
})
|
||||||
|
return false;
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
this.minimizeBarManager = function(){
|
this.minimizeBarManager = function(){
|
||||||
var minimizedApps = [],
|
var minimizedApps = [],
|
||||||
minimizeBar = $("#minimizebar");
|
minimizeBar = $("#minimizebar");
|
||||||
|
|
|
@ -81,25 +81,26 @@ $(function() {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#dialog").on('show', function (e) {
|
$("#dialog").on(clickEvent, '.delete-item', function() {
|
||||||
$(this).find('.delete-item').on(clickEvent, function() {
|
var _v = [],
|
||||||
var _v = [];
|
_t = $t.attr("rel");
|
||||||
$("tbody .list-check").each(function() {
|
|
||||||
this.checked && _v.push("ids[]="+this.value)
|
$("tbody .list-check:checked").each(function() {
|
||||||
});
|
_v.push(this.value);
|
||||||
var _t = $t.attr("rel");
|
|
||||||
if(_t.indexOf("?") > -1) {
|
|
||||||
$.ajax(_t + "&" + _v.join("&")).done(function() {
|
|
||||||
actionSuccess(_data.checkAction)
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
$.ajax(_t + "?" + _v.join("&")).done(function() {
|
|
||||||
actionSuccess(_data.checkAction)
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url : _t,
|
||||||
|
type:"get",
|
||||||
|
data : {"ids":_v},
|
||||||
|
dataType : "json",
|
||||||
|
success : function(){
|
||||||
|
actionSuccess(_data.checkAction);
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
|
||||||
$('#dialog').modal('hide');
|
$('#dialog').modal('hide');
|
||||||
$('.list-active-btn').addClass('disabled').data('actionable', false);
|
$('.list-active-btn').addClass('disabled').data('actionable', false);
|
||||||
e.preventDefault();
|
|
||||||
})
|
})
|
||||||
});
|
|
||||||
});
|
});
|
|
@ -19,6 +19,14 @@
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.form_fix {
|
||||||
|
textarea {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
input {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
// fixed width column with 12px gutter
|
// fixed width column with 12px gutter
|
||||||
// 276px width for 8 columns
|
// 276px width for 8 columns
|
||||||
// 420px width for 12 columns
|
// 420px width for 12 columns
|
||||||
|
|
|
@ -323,6 +323,29 @@ a.admtxt.admbg2:hover {
|
||||||
float: left; }
|
float: left; }
|
||||||
.docklist .d_cate:hover .dock_child {
|
.docklist .d_cate:hover .dock_child {
|
||||||
display: block; }
|
display: block; }
|
||||||
|
.disable {
|
||||||
|
opacity: .3;
|
||||||
|
}
|
||||||
|
.disable a {
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
.private {
|
||||||
|
position: relative;
|
||||||
|
padding-right: 10px;
|
||||||
|
width: 300px;
|
||||||
|
opacity: .3 !important;
|
||||||
|
}
|
||||||
|
.private:after {
|
||||||
|
content: "\e073";
|
||||||
|
display: inline-block;
|
||||||
|
font-family: 'entypo';
|
||||||
|
font-size: 1.5em;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: inherit;
|
||||||
|
top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.fn_des.admtxt {
|
.fn_des.admtxt {
|
||||||
line-height: 60px;
|
line-height: 60px;
|
||||||
|
@ -714,7 +737,8 @@ a.admtxt.admbg2:hover {
|
||||||
|
|
||||||
/* list item */
|
/* list item */
|
||||||
.list_t_item {
|
.list_t_item {
|
||||||
overflow: hidden; }
|
overflow: hidden;
|
||||||
|
height: 100px; }
|
||||||
|
|
||||||
.list_t_title {
|
.list_t_title {
|
||||||
padding-bottom: 6px;
|
padding-bottom: 6px;
|
||||||
|
@ -748,7 +772,8 @@ a.admtxt.admbg2:hover {
|
||||||
-webkit-text-size-adjust: none; }
|
-webkit-text-size-adjust: none; }
|
||||||
.list_item_function a :first-child {
|
.list_item_function a :first-child {
|
||||||
margin-left: 0; }
|
margin-left: 0; }
|
||||||
.datalist_item:hover .list_item_function {
|
.datalist_item:hover .list_item_function,
|
||||||
|
.list_t_item:hover .list_item_function {
|
||||||
bottom: 0; }
|
bottom: 0; }
|
||||||
|
|
||||||
/* App */
|
/* App */
|
||||||
|
|
|
@ -39,6 +39,13 @@
|
||||||
.main-list td {
|
.main-list td {
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
.main-list td input[type="text"] {
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-left: -.4em;
|
||||||
|
margin-right: 3px;
|
||||||
|
padding: 0 .3em;
|
||||||
|
width: 4em;
|
||||||
|
}
|
||||||
.main-list td.action {
|
.main-list td.action {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
|
@ -241,6 +241,32 @@ class Admin::UsersNewInterfaceController < OrbitMemberController
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def edit_order
|
||||||
|
@users = User.not_guest_user
|
||||||
|
end
|
||||||
|
|
||||||
|
def update_order
|
||||||
|
if params[:users].present?
|
||||||
|
params[:users].values.sort.each do |pair|
|
||||||
|
to_go = pair[0].to_i
|
||||||
|
if to_go > 0
|
||||||
|
user_at_position = User.where(position: to_go - 1).first
|
||||||
|
user = User.find(pair[1])
|
||||||
|
if user_at_position && !user_at_position == user
|
||||||
|
if user.position > user_at_position.position
|
||||||
|
user.move_above(user_at_position)
|
||||||
|
else
|
||||||
|
user.move_below(user_at_position)
|
||||||
|
end
|
||||||
|
elsif to_go > User.count
|
||||||
|
user.move_to_bottom
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
@users = User.not_guest_user
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
def get_tags
|
def get_tags
|
||||||
@sub_role_tags = SubRoleTag.all
|
@sub_role_tags = SubRoleTag.all
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
class User
|
class User
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Tree
|
||||||
|
include Mongoid::Tree::Ordering # use mongoid-tree because mongoid-ordering needs mongoid(~>3.0)
|
||||||
include Mongoid::Timestamps
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable, :validatable #, :timeoutable
|
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable, :validatable #, :timeoutable
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<div class="bottomnav clearfix">
|
<div class="bottomnav clearfix">
|
||||||
<div class="action pull-right">
|
<div class="action pull-right">
|
||||||
<% if is_admin? %>
|
<% if is_admin? %>
|
||||||
<%= link_to(new_admin_users_new_interface_path,:class=> "btn btn-primary pull-right") do%>
|
<%= link_to t(:edit_order), edit_order_admin_users_new_interface_index_path, :class => "btn btn-primary" %>
|
||||||
|
<%= link_to(new_admin_users_new_interface_path,:class=> "btn btn-primary") do %>
|
||||||
<i class="icon-plus"></i><%= t(:add) %>
|
<i class="icon-plus"></i><%= t(:add) %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<%
|
||||||
|
if user_edit_order.sex == 'male'
|
||||||
|
@user_sex = 'gender-man'
|
||||||
|
elsif user_edit_order.sex == 'female'
|
||||||
|
@user_sex = 'gender-woman'
|
||||||
|
else
|
||||||
|
@user_sex = 'gender-none'
|
||||||
|
end
|
||||||
|
%>
|
||||||
|
<tr id="<%= dom_id user_edit_order %>">
|
||||||
|
<td class="<%= @user_sex %>"></td>
|
||||||
|
<td><%= link_to user_edit_order.position + 1, '#', class: 'edit_position', 'data-user-id' => user_edit_order.id %></td>
|
||||||
|
<td><%= link_to user_edit_order.name, admin_users_new_interface_path(user_edit_order) %></td>
|
||||||
|
<td><%= user_edit_order.email %></td>
|
||||||
|
</tr>
|
|
@ -0,0 +1,65 @@
|
||||||
|
<% content_for :side_bar do %>
|
||||||
|
<%= render :partial => 'admin/users_new_interface/side_bar' %>
|
||||||
|
<% end %>
|
||||||
|
<% content_for :page_specific_css do -%>
|
||||||
|
<%= stylesheet_link_tag "lib/member" %>
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
|
<div id="list-view">
|
||||||
|
<table id="member-list" class="table main-list">
|
||||||
|
<thead>
|
||||||
|
<tr class="sort-header">
|
||||||
|
<th class="gender"></th>
|
||||||
|
<th class="span2"><a href="#"><%= t(:position) %></a></th>
|
||||||
|
<th class="span4"><a href="#"><%= t(:name) %></a></th>
|
||||||
|
<th><a href="#"><%= t(:email) %></a></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<%= render partial: "user_edit_order", collection: @users %>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="bottomnav clearfix">
|
||||||
|
<div class="action pull-right">
|
||||||
|
<%= link_to t(:update_), '#', class: "btn btn-primary pull-right" %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% content_for :page_specific_javascript do %>
|
||||||
|
<script>
|
||||||
|
$(function(){
|
||||||
|
var _userPosition = [];
|
||||||
|
$('#member-list').on(clickEvent, '.edit_position', function(e){
|
||||||
|
var $input = $('<input type="text">');
|
||||||
|
var $cross = $('<a class="btn btn-mini"><i class="icons-cross"/></a>');
|
||||||
|
$(this).after($cross);
|
||||||
|
$(this).after($input);
|
||||||
|
$(this).hide();
|
||||||
|
$input.val($(this).text()).attr('id', $(this).data('user-id'));
|
||||||
|
e.preventDefault();
|
||||||
|
$cross.click(function(event) {
|
||||||
|
$input.remove();
|
||||||
|
$(this).siblings('a').show().end().remove();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.bottomnav').on(clickEvent, '.btn', function(e) {
|
||||||
|
$('#member-list tbody input').each(function() {
|
||||||
|
_userPosition.push([$(this).val(), $(this).attr('id')])
|
||||||
|
});
|
||||||
|
e.preventDefault();
|
||||||
|
$.ajax({
|
||||||
|
url: '<%= update_order_admin_users_new_interface_index_path %>',
|
||||||
|
type: 'POST',
|
||||||
|
dataType: 'script',
|
||||||
|
data: {users: _userPosition}
|
||||||
|
}).done(function() {
|
||||||
|
_userPosition = [];
|
||||||
|
console.log(_userPosition)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<% end %>
|
|
@ -5,7 +5,6 @@
|
||||||
<%= render :partial => "js_and_css"%>
|
<%= render :partial => "js_and_css"%>
|
||||||
|
|
||||||
<% content_for :page_specific_javascript do -%>
|
<% content_for :page_specific_javascript do -%>
|
||||||
<%= javascript_include_tag "lib/jquery.lite.image.resize.js" %>
|
|
||||||
<%= javascript_include_tag "lib/member/member.js" %>
|
<%= javascript_include_tag "lib/member/member.js" %>
|
||||||
<%= javascript_include_tag "lib/footable-0.1.js" %>
|
<%= javascript_include_tag "lib/footable-0.1.js" %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
$('#list-view table tbody').html("<%= j render partial: 'user_edit_order', collection: @users %>")
|
|
@ -1,4 +1,4 @@
|
||||||
<script type='text/javascript' src='/assets/jquery.cycle.all.latest.js'></script>
|
<%= javascript_include_tag "lib/jquery.cycle.all.latest.js"%>
|
||||||
<div style='position:relative'>
|
<div style='position:relative'>
|
||||||
<ul id='banner_nav' class='clear banner_nav-<%= @ad_banner.title.dehumanize %>'></ul>
|
<ul id='banner_nav' class='clear banner_nav-<%= @ad_banner.title.dehumanize %>'></ul>
|
||||||
<div id='slideshow-<%= @ad_banner.title.dehumanize %>' class='slideshow'>
|
<div id='slideshow-<%= @ad_banner.title.dehumanize %>' class='slideshow'>
|
||||||
|
|
|
@ -16,6 +16,7 @@ en:
|
||||||
deselect_all: Deselect all
|
deselect_all: Deselect all
|
||||||
detail: Detail
|
detail: Detail
|
||||||
edit_category: Edit Categorie
|
edit_category: Edit Categorie
|
||||||
|
edit_order: Edit order
|
||||||
editing:
|
editing:
|
||||||
tag: Editing tag
|
tag: Editing tag
|
||||||
file:
|
file:
|
||||||
|
@ -37,6 +38,7 @@ en:
|
||||||
no_date: No date
|
no_date: No date
|
||||||
no_file: No file
|
no_file: No file
|
||||||
path: Path
|
path: Path
|
||||||
|
position: Position
|
||||||
previous: Previous
|
previous: Previous
|
||||||
remove: Remove
|
remove: Remove
|
||||||
remove_default: Remove default
|
remove_default: Remove default
|
||||||
|
|
|
@ -0,0 +1,73 @@
|
||||||
|
zh_tw:
|
||||||
|
add_category: 新增類別
|
||||||
|
add_link: 新增連結
|
||||||
|
add_page: 新增頁面
|
||||||
|
add_to_default: 加入預設
|
||||||
|
alternative: 註解
|
||||||
|
approval_setting: 審核設定
|
||||||
|
authorization_: 授權
|
||||||
|
change: 更換
|
||||||
|
change_file: 更換檔案
|
||||||
|
create:
|
||||||
|
error:
|
||||||
|
category: 建立類別時發生錯誤
|
||||||
|
tag: 建立標籤時發生錯誤
|
||||||
|
delete_warning: 刪除後無法還原,您確定要刪除嗎?
|
||||||
|
deselect_all: 取消全選
|
||||||
|
detail: 細節
|
||||||
|
edit_category: 編輯類別
|
||||||
|
edit_order: 編輯排序
|
||||||
|
editing:
|
||||||
|
tag: 編輯標籤
|
||||||
|
file:
|
||||||
|
name: 檔案名稱
|
||||||
|
front_page:
|
||||||
|
name_language: 網站標題
|
||||||
|
select_template: 選擇樣版
|
||||||
|
select_themes: 選擇主題
|
||||||
|
select_module: 選擇模組
|
||||||
|
language: 語言
|
||||||
|
login_orbit: 登入 Orbit
|
||||||
|
merge: 合併
|
||||||
|
new:
|
||||||
|
tag: 新增標籤
|
||||||
|
next: 下一頁
|
||||||
|
no_app: 無模組
|
||||||
|
no_category: 無可用類別
|
||||||
|
no_data: 無資料
|
||||||
|
no_date: 無日期
|
||||||
|
no_file: 無檔案
|
||||||
|
path: 路徑
|
||||||
|
position: 排序
|
||||||
|
previous: 上一頁
|
||||||
|
remove: 移除
|
||||||
|
remove_default: 移除預設
|
||||||
|
restful_actions:
|
||||||
|
create: 建立
|
||||||
|
delete: 刪除
|
||||||
|
edit: 編輯
|
||||||
|
index: Index
|
||||||
|
new: 新增
|
||||||
|
show: Show
|
||||||
|
update: 更新
|
||||||
|
search:
|
||||||
|
tags: 搜尋標籤
|
||||||
|
select_all: 全選
|
||||||
|
select_file: 選擇檔案
|
||||||
|
select_image: 選擇圖片
|
||||||
|
sort_number: 排序數
|
||||||
|
tag:
|
||||||
|
add: 新增標籤
|
||||||
|
delete: 刪除標籤
|
||||||
|
new_name: 新標籤名稱
|
||||||
|
merge_help: 自訂新標籤名稱或點選下方標籤
|
||||||
|
merger: 合併標籤
|
||||||
|
remove_default: 移除預設標籤
|
||||||
|
warning:
|
||||||
|
delete: 刪除後無法還原,您確定要刪除嗎?
|
||||||
|
remove_default: 您確定要移除此預設標籤嗎?
|
||||||
|
update:
|
||||||
|
error:
|
||||||
|
tag: 更新類別時發生錯誤
|
||||||
|
tag: 更新標籤時發生錯誤
|
||||||
|
url_alt: 註解
|
|
@ -233,6 +233,10 @@ Orbit::Application.routes.draw do
|
||||||
member do
|
member do
|
||||||
get 'temp_edit'
|
get 'temp_edit'
|
||||||
end
|
end
|
||||||
|
collection do
|
||||||
|
get 'edit_order'
|
||||||
|
post 'update_order'
|
||||||
|
end
|
||||||
match "edit_passwd" => "users_new_interface#edit_passwd" ,:as => :edit_passwd
|
match "edit_passwd" => "users_new_interface#edit_passwd" ,:as => :edit_passwd
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -91,4 +91,8 @@ namespace :new_ui do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :save_users => :environment do
|
||||||
|
User.all.each(&:save)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -29,6 +29,7 @@ orbitDesktop.prototype.initializePersonalBook = function(target,url,cache){ // t
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
o.enableSharing("div.share_mode");
|
||||||
}
|
}
|
||||||
this.initializePersonalBook.bookDelete = function(data,dom){
|
this.initializePersonalBook.bookDelete = function(data,dom){
|
||||||
var parent = dom.parent().parent().parent();
|
var parent = dom.parent().parent().parent();
|
||||||
|
|
|
@ -282,6 +282,7 @@ class Panel::PersonalBook::BackEnd::WritingBooksController < OrbitBackendControl
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"WritingBook")) }
|
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"WritingBook")) }
|
||||||
|
format.json { render json: {"success"=>true}.to_json}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,23 +2,26 @@ module Panel::PersonalBook::Desktop::PersonalBooksHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
"data-id" => publication.id.to_s,
|
||||||
marker + \
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do
|
||||||
|
marker(publication.id) + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def marker
|
def marker id
|
||||||
content_tag :div,
|
content_tag :div,
|
||||||
:class => "list_item_action" do
|
:class => "list_item_action" do
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-check-empty",
|
:class => "icon-check-empty",
|
||||||
"toggle-onclick"=>"icon-check-empty icon-check",
|
"toggle-onclick"=>"icon-check-empty icon-check",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false") + \
|
"ajax-remote"=>"false") + \
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-star-empty",
|
:class => "icon-star-empty",
|
||||||
"toggle-onclick"=>"icon-star-empty icon-star",
|
"toggle-onclick"=>"icon-star-empty icon-star",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false")
|
"ajax-remote"=>"false")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -50,25 +50,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="hh1 hp sdm">
|
<div class="hh1 hp sdm">
|
||||||
<div class="sdm_t hh1">Share</div>
|
<div class="sdm_t hh1">Share</div>
|
||||||
<div class="admbg sdm_o">
|
<div class="admbg sdm_o share_mode" data-link="<%= data_share_panel_personal_book_back_end_writing_books_path %>" data-var="disable" >
|
||||||
<ul>
|
<ul>
|
||||||
<li><a class="hp hh1 admtxt" href="">Full</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="private" data-mode="true" >Private</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="public" data-mode="false" >Public</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hh1 hp sdm">
|
|
||||||
<div class="sdm_t hh1" id='ns'>New Share</div>
|
|
||||||
<div class="admbg sdm_o">
|
|
||||||
<ul>
|
|
||||||
<li><a class="hp hh1 admtxt remote_url" href="<%= panel_personal_book_desktop_personal_books_path %>">Full</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,6 +29,7 @@ orbitDesktop.prototype.initializeConferencePapers = function(target,url,cache){
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
o.enableSharing("div.share_mode");
|
||||||
}
|
}
|
||||||
this.initializeConferencePapers.paperDelete = function(data,dom){
|
this.initializeConferencePapers.paperDelete = function(data,dom){
|
||||||
var parent = dom.parent().parent().parent();
|
var parent = dom.parent().parent().parent();
|
||||||
|
|
|
@ -277,7 +277,7 @@ class Panel::PersonalConference::BackEnd::WritingConferencesController < OrbitBa
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"WritingConference")) }
|
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"WritingConference")) }
|
||||||
|
format.json { render json: {"success"=>true}.to_json}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,23 +2,29 @@ module Panel::PersonalConference::Desktop::ConferencePagesHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
"data-id" => publication.id.to_s,
|
||||||
marker + \
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do
|
||||||
|
content_tag :div,
|
||||||
|
:class => "inner" do
|
||||||
|
marker(publication.id) + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def marker
|
def marker id
|
||||||
content_tag :div,
|
content_tag :div,
|
||||||
:class => "list_item_action" do
|
:class => "list_item_action" do
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-check-empty",
|
:class => "icon-check-empty",
|
||||||
"toggle-onclick"=>"icon-check-empty icon-check",
|
"toggle-onclick"=>"icon-check-empty icon-check",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false") + \
|
"ajax-remote"=>"false") + \
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-star-empty",
|
:class => "icon-star-empty",
|
||||||
"toggle-onclick"=>"icon-star-empty icon-star",
|
"toggle-onclick"=>"icon-star-empty icon-star",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false")
|
"ajax-remote"=>"false")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -51,13 +51,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="hh1 hp sdm">
|
<div class="hh1 hp sdm">
|
||||||
<div class="sdm_t hh1">Share</div>
|
<div class="sdm_t hh1">Share</div>
|
||||||
<div class="admbg sdm_o">
|
<div class="admbg sdm_o share_mode" data-link="<%= data_share_panel_personal_conference_back_end_writing_conferences_path %>" data-var="disable" >
|
||||||
<ul>
|
<ul>
|
||||||
<li><a class="hp hh1 admtxt" href="">Full</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="private" data-mode="true" >Private</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="public" data-mode="false" >Public</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -69,13 +66,15 @@
|
||||||
<div class="scrollbar sb_h vp"><div class="track"><div class="thumb thmc2"><div class="end"></div></div></div></div>
|
<div class="scrollbar sb_h vp"><div class="track"><div class="thumb thmc2"><div class="end"></div></div></div></div>
|
||||||
<div class="viewport"> -->
|
<div class="viewport"> -->
|
||||||
<% if @view_by.eql?"abstract" %>
|
<% if @view_by.eql?"abstract" %>
|
||||||
<div class="overview" page-name="conference_p_list" content-layout="datalist" per-column="1" base-width="300" pagination-var="page">
|
<div class="overview" page-name="conference_p_list" content-layout="simple" per-column="1" base-width="300" pagination-var="page">
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="overview" page-name="conference_p_list" content-layout="datalist" per-column="5" base-width="300" pagination-var="page">
|
<div class="overview" page-name="conference_p_list" content-layout="simple" per-column="5" base-width="300" pagination-var="page">
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<ul isotope="true">
|
||||||
<% @writing_conferences.each do |w| %>
|
<% @writing_conferences.each do |w| %>
|
||||||
<%= publication_record w, @view_by%>
|
<%= publication_record w, @view_by%>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- </div>
|
<!-- </div>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
|
@ -29,6 +29,7 @@ orbitDesktop.prototype.initializePersonalDiploma = function(target,url,cache){ /
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
o.enableSharing("div.share_mode");
|
||||||
}
|
}
|
||||||
this.initializePersonalDiploma.diplomaDelete = function(data,dom){
|
this.initializePersonalDiploma.diplomaDelete = function(data,dom){
|
||||||
var parent = dom.parent().parent().parent();
|
var parent = dom.parent().parent().parent();
|
||||||
|
|
|
@ -159,7 +159,7 @@ class Panel::PersonalDiploma::BackEnd::DiplomasController < OrbitBackendControll
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Diploma")) }
|
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Diploma")) }
|
||||||
|
format.json { render json: {"success"=>true}.to_json}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,23 +2,26 @@ module Panel::PersonalDiploma::Desktop::PersonalDiplomasHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
"data-id" => publication.id.to_s,
|
||||||
marker + \
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do
|
||||||
|
marker(publication.id) + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def marker
|
def marker id
|
||||||
content_tag :div,
|
content_tag :div,
|
||||||
:class => "list_item_action" do
|
:class => "list_item_action" do
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-check-empty",
|
:class => "icon-check-empty",
|
||||||
"toggle-onclick"=>"icon-check-empty icon-check",
|
"toggle-onclick"=>"icon-check-empty icon-check",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false") + \
|
"ajax-remote"=>"false") + \
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-star-empty",
|
:class => "icon-star-empty",
|
||||||
"toggle-onclick"=>"icon-star-empty icon-star",
|
"toggle-onclick"=>"icon-star-empty icon-star",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false")
|
"ajax-remote"=>"false")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -49,25 +49,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="hh1 hp sdm">
|
<div class="hh1 hp sdm">
|
||||||
<div class="sdm_t hh1">Share</div>
|
<div class="sdm_t hh1">Share</div>
|
||||||
<div class="admbg sdm_o">
|
<div class="admbg sdm_o share_mode" data-link="<%= data_share_panel_personal_diploma_back_end_diplomas_path %>" data-var="disable" >
|
||||||
<ul>
|
<ul>
|
||||||
<li><a class="hp hh1 admtxt" href="">Full</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="private" data-mode="true" >Private</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="public" data-mode="false" >Public</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hh1 hp sdm">
|
|
||||||
<div class="sdm_t hh1" id='ns'>New Share</div>
|
|
||||||
<div class="admbg sdm_o">
|
|
||||||
<ul>
|
|
||||||
<li><a class="hp hh1 admtxt remote_url" href="<%= panel_personal_diploma_desktop_personal_diplomas_path %>">Full</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,6 +29,7 @@ orbitDesktop.prototype.initializePersonalExperience = function(target,url,cache)
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
o.enableSharing("div.share_mode");
|
||||||
}
|
}
|
||||||
this.initializePersonalExperience.experienceDelete = function(data,dom){
|
this.initializePersonalExperience.experienceDelete = function(data,dom){
|
||||||
var parent = dom.parent().parent().parent();
|
var parent = dom.parent().parent().parent();
|
||||||
|
|
|
@ -225,7 +225,7 @@ class Panel::PersonalExperience::BackEnd::ExperiencesController < OrbitBackendCo
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Experience")) }
|
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Experience")) }
|
||||||
|
format.json { render json: {"success"=>true}.to_json}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,22 +2,25 @@ module Panel::PersonalExperience::Desktop::PersonalExperiencesHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
"data-id" => publication.id.to_s,
|
||||||
marker + \
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do
|
||||||
|
marker(publication.id) + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def marker
|
def marker id
|
||||||
content_tag :div,
|
content_tag :div,
|
||||||
:class => "list_item_action" do
|
:class => "list_item_action" do
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-check-empty",
|
:class => "icon-check-empty",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"toggle-onclick"=>"icon-check-empty icon-check",
|
"toggle-onclick"=>"icon-check-empty icon-check",
|
||||||
"ajax-remote"=>"false") + \
|
"ajax-remote"=>"false") + \
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-star-empty",
|
:class => "icon-star-empty",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"toggle-onclick"=>"icon-star-empty icon-star",
|
"toggle-onclick"=>"icon-star-empty icon-star",
|
||||||
"ajax-remote"=>"false")
|
"ajax-remote"=>"false")
|
||||||
end
|
end
|
||||||
|
|
|
@ -50,25 +50,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="hh1 hp sdm">
|
<div class="hh1 hp sdm">
|
||||||
<div class="sdm_t hh1">Share</div>
|
<div class="sdm_t hh1">Share</div>
|
||||||
<div class="admbg sdm_o">
|
<div class="admbg sdm_o share_mode" data-link="<%= data_share_panel_personal_experience_back_end_experiences_path %>" data-var="disable" >
|
||||||
<ul>
|
<ul>
|
||||||
<li><a class="hp hh1 admtxt" href="">Full</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="private" data-mode="true" >Private</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="public" data-mode="false" >Public</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hh1 hp sdm">
|
|
||||||
<div class="sdm_t hh1" id='ns'>New Share</div>
|
|
||||||
<div class="admbg sdm_o">
|
|
||||||
<ul>
|
|
||||||
<li><a class="hp hh1 admtxt remote_url" href="<%= panel_personal_experience_desktop_personal_experiences_path %>">Full</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,6 +29,7 @@ orbitDesktop.prototype.initializePersonalHonor = function(target,url,cache){ //
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
o.enableSharing("div.share_mode");
|
||||||
}
|
}
|
||||||
this.initializePersonalHonor.honorDelete = function(data,dom){
|
this.initializePersonalHonor.honorDelete = function(data,dom){
|
||||||
var parent = dom.parent().parent().parent();
|
var parent = dom.parent().parent().parent();
|
||||||
|
|
|
@ -226,7 +226,7 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Honor")) }
|
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Honor")) }
|
||||||
|
format.json { render json: {"success"=>true}.to_json}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,23 +2,26 @@ module Panel::PersonalHonor::Desktop::PersonalHonorsHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
"data-id" => publication.id.to_s,
|
||||||
marker + \
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do
|
||||||
|
marker(publication.id) + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def marker
|
def marker id
|
||||||
content_tag :div,
|
content_tag :div,
|
||||||
:class => "list_item_action" do
|
:class => "list_item_action" do
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-check-empty",
|
:class => "icon-check-empty",
|
||||||
"toggle-onclick"=>"icon-check-empty icon-check",
|
"toggle-onclick"=>"icon-check-empty icon-check",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false") + \
|
"ajax-remote"=>"false") + \
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-star-empty",
|
:class => "icon-star-empty",
|
||||||
"toggle-onclick"=>"icon-star-empty icon-star",
|
"toggle-onclick"=>"icon-star-empty icon-star",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false")
|
"ajax-remote"=>"false")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,25 +48,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="hh1 hp sdm">
|
<div class="hh1 hp sdm">
|
||||||
<div class="sdm_t hh1">Share</div>
|
<div class="sdm_t hh1">Share</div>
|
||||||
<div class="admbg sdm_o">
|
<div class="admbg sdm_o share_mode" data-link="<%= data_share_panel_personal_honor_back_end_honors_path %>" data-var="disable" >
|
||||||
<ul>
|
<ul>
|
||||||
<li><a class="hp hh1 admtxt" href="">Full</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="private" data-mode="true" >Private</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="public" data-mode="false" >Public</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hh1 hp sdm">
|
|
||||||
<div class="sdm_t hh1" id='ns'>New Share</div>
|
|
||||||
<div class="admbg sdm_o">
|
|
||||||
<ul>
|
|
||||||
<li><a class="hp hh1 admtxt remote_url" href="<%= panel_personal_honor_desktop_personal_honors_path %>">Full</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,6 +29,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
o.enableSharing("div.share_mode");
|
||||||
}
|
}
|
||||||
this.initializeJournalPapers.paperDelete = function(data,dom){
|
this.initializeJournalPapers.paperDelete = function(data,dom){
|
||||||
var parent = dom.parent().parent().parent();
|
var parent = dom.parent().parent().parent();
|
||||||
|
|
|
@ -327,7 +327,7 @@ class Panel::PersonalJournal::BackEnd::WritingJournalsController < OrbitBackendC
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"WritingJournal")) }
|
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"WritingJournal")) }
|
||||||
|
format.json { render json: {"success"=>true}.to_json}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,12 +2,17 @@ module Panel::PersonalJournal::Desktop::JournalPagesHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
"data-id" => publication.id.to_s,
|
||||||
marker + \
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do
|
||||||
|
|
||||||
|
content_tag :div,
|
||||||
|
:class => "inner" do
|
||||||
|
marker(publication.id) + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def get_height view
|
def get_height view
|
||||||
case view
|
case view
|
||||||
|
@ -25,16 +30,18 @@ module Panel::PersonalJournal::Desktop::JournalPagesHelper
|
||||||
height
|
height
|
||||||
end
|
end
|
||||||
|
|
||||||
def marker
|
def marker id
|
||||||
content_tag :div,
|
content_tag :div,
|
||||||
:class => "list_item_action" do
|
:class => "list_item_action" do
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-check-empty",
|
:class => "icon-check-empty",
|
||||||
"toggle-onclick"=>"icon-check-empty icon-check",
|
"toggle-onclick"=>"icon-check-empty icon-check",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false") + \
|
"ajax-remote"=>"false") + \
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-star-empty",
|
:class => "icon-star-empty",
|
||||||
"toggle-onclick"=>"icon-star-empty icon-star",
|
"toggle-onclick"=>"icon-star-empty icon-star",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false")
|
"ajax-remote"=>"false")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -32,10 +32,11 @@
|
||||||
<div class="viewport"> -->
|
<div class="viewport"> -->
|
||||||
<div class="overview" content-layout="simple" base-width="420">
|
<div class="overview" content-layout="simple" base-width="420">
|
||||||
<ul class="s_form" isotope="true">
|
<ul class="s_form" isotope="true">
|
||||||
|
<li class="s_grid_row" >
|
||||||
<% @site_valid_locales.each_with_index do |locale, i| %>
|
<% @site_valid_locales.each_with_index do |locale, i| %>
|
||||||
<% style = locale != I18n.locale.to_s ? 'style=display:none;' : "" %>
|
<% style = locale != I18n.locale.to_s ? 'style=display:none;' : "" %>
|
||||||
<% data = "data-language=" + locale %>
|
<% data = "data-language=" + locale %>
|
||||||
<li class="s_grid_row" <%= style %> <%= data %>>
|
<div class="form_fix" <%= style %> <%= data %>>
|
||||||
<%= f.fields_for :paper_title_translations do |f| %>
|
<%= f.fields_for :paper_title_translations do |f| %>
|
||||||
<%= f.text_area locale,
|
<%= f.text_area locale,
|
||||||
class: "s_grid_12 s_grid s_grid_h_3",
|
class: "s_grid_12 s_grid s_grid_h_3",
|
||||||
|
@ -43,8 +44,7 @@
|
||||||
placeholder: t("personal_journal.paper_title")+ "("+I18nVariable.from_locale(locale)+")",
|
placeholder: t("personal_journal.paper_title")+ "("+I18nVariable.from_locale(locale)+")",
|
||||||
value: (@writing_journal.paper_title_translations[locale.to_s] rescue nil) %>
|
value: (@writing_journal.paper_title_translations[locale.to_s] rescue nil) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
<p></p>
|
||||||
<li class="s_grid_row" <%= style %> <%= data %>>
|
|
||||||
<%= f.fields_for :journal_title_translations do |f| %>
|
<%= f.fields_for :journal_title_translations do |f| %>
|
||||||
<%= f.text_field locale,
|
<%= f.text_field locale,
|
||||||
size: "20",
|
size: "20",
|
||||||
|
@ -53,8 +53,9 @@
|
||||||
value: (@writing_journal.journal_title_translations[locale.to_s] rescue nil) %>
|
value: (@writing_journal.journal_title_translations[locale.to_s] rescue nil) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
</li>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</li>
|
||||||
<li class="s_grid_row">
|
<li class="s_grid_row">
|
||||||
<%= label_tag("", t("personal_journal.level_type"), :class => 's_grid s_grid_4') %>
|
<%= label_tag("", t("personal_journal.level_type"), :class => 's_grid s_grid_4') %>
|
||||||
<div class="s_select_g s_grid s_grid_8 s_grid_h_2">
|
<div class="s_select_g s_grid s_grid_8 s_grid_h_2">
|
||||||
|
|
|
@ -51,25 +51,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="hh1 hp sdm">
|
<div class="hh1 hp sdm">
|
||||||
<div class="sdm_t hh1">Share</div>
|
<div class="sdm_t hh1">Share</div>
|
||||||
<div class="admbg sdm_o">
|
<div class="admbg sdm_o share_mode" data-link="<%= data_share_panel_personal_journal_back_end_writing_journals_path %>" data-var="disable" >
|
||||||
<ul>
|
<ul>
|
||||||
<li><a class="hp hh1 admtxt" href="">Full</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="private" data-mode="true" >Private</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="public" data-mode="false" >Public</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hh1 hp sdm">
|
|
||||||
<div class="sdm_t hh1" id='ns'>New Share</div>
|
|
||||||
<div class="admbg sdm_o">
|
|
||||||
<ul>
|
|
||||||
<li><a class="hp hh1 admtxt remote_url" href="<%= panel_personal_journal_plugin_writing_journals_path %>">Full</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,6 +29,7 @@ orbitDesktop.prototype.initializePersonalLab = function(target,url,cache){ // th
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
o.enableSharing("div.share_mode");
|
||||||
}
|
}
|
||||||
this.initializePersonalLab.labDelete = function(data,dom){
|
this.initializePersonalLab.labDelete = function(data,dom){
|
||||||
var parent = dom.parent().parent().parent();
|
var parent = dom.parent().parent().parent();
|
||||||
|
|
|
@ -161,7 +161,7 @@ class Panel::PersonalLab::BackEnd::LabsController < OrbitBackendController
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Lab")) }
|
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Lab")) }
|
||||||
|
format.json { render json: {"success"=>true}.to_json}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,23 +2,26 @@ module Panel::PersonalLab::Desktop::PersonalLabsHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
"data-id" => publication.id.to_s,
|
||||||
marker + \
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do
|
||||||
|
marker(publication.id) + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def marker
|
def marker id
|
||||||
content_tag :div,
|
content_tag :div,
|
||||||
:class => "list_item_action" do
|
:class => "list_item_action" do
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-check-empty",
|
:class => "icon-check-empty",
|
||||||
"toggle-onclick"=>"icon-check-empty icon-check",
|
"toggle-onclick"=>"icon-check-empty icon-check",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false") + \
|
"ajax-remote"=>"false") + \
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-star-empty",
|
:class => "icon-star-empty",
|
||||||
"toggle-onclick"=>"icon-star-empty icon-star",
|
"toggle-onclick"=>"icon-star-empty icon-star",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false")
|
"ajax-remote"=>"false")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -50,25 +50,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="hh1 hp sdm">
|
<div class="hh1 hp sdm">
|
||||||
<div class="sdm_t hh1">Share</div>
|
<div class="sdm_t hh1">Share</div>
|
||||||
<div class="admbg sdm_o">
|
<div class="admbg sdm_o share_mode" data-link="<%= data_share_panel_personal_lab_back_end_labs_path %>" data-var="disable" >
|
||||||
<ul>
|
<ul>
|
||||||
<li><a class="hp hh1 admtxt" href="">Full</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="private" data-mode="true" >Private</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="public" data-mode="false" >Public</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hh1 hp sdm">
|
|
||||||
<div class="sdm_t hh1" id='ns'>New Share</div>
|
|
||||||
<div class="admbg sdm_o">
|
|
||||||
<ul>
|
|
||||||
<li><a class="hp hh1 admtxt remote_url" href="<%= panel_personal_lab_desktop_personal_labs_path %>">Full</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,6 +29,7 @@ orbitDesktop.prototype.initializePersonalPatent = function(target,url,cache){ //
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
o.enableSharing("div.share_mode");
|
||||||
}
|
}
|
||||||
this.initializePersonalPatent.patentDelete = function(data,dom){
|
this.initializePersonalPatent.patentDelete = function(data,dom){
|
||||||
var parent = dom.parent().parent().parent();
|
var parent = dom.parent().parent().parent();
|
||||||
|
|
|
@ -226,7 +226,7 @@ class Panel::PersonalPatent::BackEnd::WritingPatentsController < OrbitBackendCon
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"WritingPatent")) }
|
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"WritingPatent")) }
|
||||||
|
format.json { render json: {"success"=>true}.to_json}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,23 +2,26 @@ module Panel::PersonalPatent::Desktop::PersonalPatentsHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
"data-id" => publication.id.to_s,
|
||||||
marker + \
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do
|
||||||
|
marker(publication.id) + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def marker
|
def marker id
|
||||||
content_tag :div,
|
content_tag :div,
|
||||||
:class => "list_item_action" do
|
:class => "list_item_action" do
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-check-empty",
|
:class => "icon-check-empty",
|
||||||
"toggle-onclick"=>"icon-check-empty icon-check",
|
"toggle-onclick"=>"icon-check-empty icon-check",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false") + \
|
"ajax-remote"=>"false") + \
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-star-empty",
|
:class => "icon-star-empty",
|
||||||
"toggle-onclick"=>"icon-star-empty icon-star",
|
"toggle-onclick"=>"icon-star-empty icon-star",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false")
|
"ajax-remote"=>"false")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -49,25 +49,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="hh1 hp sdm">
|
<div class="hh1 hp sdm">
|
||||||
<div class="sdm_t hh1">Share</div>
|
<div class="sdm_t hh1">Share</div>
|
||||||
<div class="admbg sdm_o">
|
<div class="admbg sdm_o share_mode" data-link="<%= data_share_panel_personal_patent_back_end_writing_patents_path %>" data-var="disable" >
|
||||||
<ul>
|
<ul>
|
||||||
<li><a class="hp hh1 admtxt" href="">Full</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="private" data-mode="true" >Private</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="public" data-mode="false" >Public</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hh1 hp sdm">
|
|
||||||
<div class="sdm_t hh1" id='ns'>New Share</div>
|
|
||||||
<div class="admbg sdm_o">
|
|
||||||
<ul>
|
|
||||||
<li><a class="hp hh1 admtxt remote_url" href="<%= panel_personal_patent_desktop_personal_patents_path %>">Full</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,6 +29,7 @@ orbitDesktop.prototype.initializePersonalProject = function(target,url,cache){ /
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
o.enableSharing("div.share_mode");
|
||||||
}
|
}
|
||||||
this.initializePersonalProject.projectDelete = function(data,dom){
|
this.initializePersonalProject.projectDelete = function(data,dom){
|
||||||
var parent = dom.parent().parent().parent();
|
var parent = dom.parent().parent().parent();
|
||||||
|
|
|
@ -224,7 +224,7 @@ class Panel::PersonalProject::BackEnd::ProjectsController < OrbitBackendControll
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Project")) }
|
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Project")) }
|
||||||
|
format.json { render json: {"success"=>true}.to_json}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,23 +2,27 @@ module Panel::PersonalProject::Desktop::PersonalProjectsHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
"item" => "true",
|
||||||
marker + \
|
"data-id" => publication.id.to_s,
|
||||||
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do
|
||||||
|
marker(publication.id) + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def marker
|
def marker id
|
||||||
content_tag :div,
|
content_tag :div,
|
||||||
:class => "list_item_action" do
|
:class => "list_item_action" do
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-check-empty",
|
:class => "icon-check-empty",
|
||||||
"toggle-onclick"=>"icon-check-empty icon-check",
|
"toggle-onclick"=>"icon-check-empty icon-check",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false") + \
|
"ajax-remote"=>"false") + \
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-star-empty",
|
:class => "icon-star-empty",
|
||||||
"toggle-onclick"=>"icon-star-empty icon-star",
|
"toggle-onclick"=>"icon-star-empty icon-star",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false")
|
"ajax-remote"=>"false")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -50,25 +50,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="hh1 hp sdm">
|
<div class="hh1 hp sdm">
|
||||||
<div class="sdm_t hh1">Share</div>
|
<div class="sdm_t hh1">Share</div>
|
||||||
<div class="admbg sdm_o">
|
<div class="admbg sdm_o share_mode" data-link="<%= data_share_panel_personal_project_back_end_projects_path %>" data-var="disable" >
|
||||||
<ul>
|
<ul>
|
||||||
<li><a class="hp hh1 admtxt" href="">Full</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="private" data-mode="true" >Private</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="public" data-mode="false" >Public</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hh1 hp sdm">
|
|
||||||
<div class="sdm_t hh1" id='ns'>New Share</div>
|
|
||||||
<div class="admbg sdm_o">
|
|
||||||
<ul>
|
|
||||||
<li><a class="hp hh1 admtxt remote_url" href="<%= panel_personal_project_desktop_personal_projects_path %>">Full</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,6 +29,7 @@ orbitDesktop.prototype.initializePersonalResearch = function(target,url,cache){
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
o.enableSharing("div.share_mode");
|
||||||
}
|
}
|
||||||
this.initializePersonalResearch.researchDelete = function(data,dom){
|
this.initializePersonalResearch.researchDelete = function(data,dom){
|
||||||
var parent = dom.parent().parent().parent();
|
var parent = dom.parent().parent().parent();
|
||||||
|
|
|
@ -150,7 +150,7 @@ class Panel::PersonalResearch::BackEnd::ResearchsController < OrbitBackendContro
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Research")) }
|
format.html { redirect_to(admin_users_new_interface_url(:id=>params[:user_id],:show_plugin_profile=>"Research")) }
|
||||||
|
format.json { render json: {"success"=>true}.to_json}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,23 +2,27 @@ module Panel::PersonalResearch::Desktop::PersonalResearchsHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
"item" => "true",
|
||||||
marker + \
|
"data-id" => publication.id.to_s,
|
||||||
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" } #{publication.is_hidden? ? "private" : "public" }" do
|
||||||
|
marker(publication.id) + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def marker
|
def marker id
|
||||||
content_tag :div,
|
content_tag :div,
|
||||||
:class => "list_item_action" do
|
:class => "list_item_action" do
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-check-empty",
|
:class => "icon-check-empty",
|
||||||
"toggle-onclick"=>"icon-check-empty icon-check",
|
"toggle-onclick"=>"icon-check-empty icon-check",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false") + \
|
"ajax-remote"=>"false") + \
|
||||||
content_tag(:a, "",:href=>"",
|
content_tag(:a, "",:href=>"",
|
||||||
:class => "icon-star-empty",
|
:class => "icon-star-empty",
|
||||||
"toggle-onclick"=>"icon-star-empty icon-star",
|
"toggle-onclick"=>"icon-star-empty icon-star",
|
||||||
|
"data-id" => id.to_s,
|
||||||
"ajax-remote"=>"false")
|
"ajax-remote"=>"false")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -50,25 +50,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="hh1 hp sdm">
|
<div class="hh1 hp sdm">
|
||||||
<div class="sdm_t hh1">Share</div>
|
<div class="sdm_t hh1">Share</div>
|
||||||
<div class="admbg sdm_o">
|
<div class="admbg sdm_o share_mode" data-link="<%= data_share_panel_personal_research_back_end_researchs_path %>" data-var="disable" >
|
||||||
<ul>
|
<ul>
|
||||||
<li><a class="hp hh1 admtxt" href="">Full</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="private" data-mode="true" >Private</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
<li><a class="hp hh1 admtxt" href="" item-class="public" data-mode="false" >Public</a></li>
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hh1 hp sdm">
|
|
||||||
<div class="sdm_t hh1" id='ns'>New Share</div>
|
|
||||||
<div class="admbg sdm_o">
|
|
||||||
<ul>
|
|
||||||
<li><a class="hp hh1 admtxt remote_url" href="<%= panel_personal_research_desktop_personal_researchs_path %>">Full</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Abstract</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Friends</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Private</a></li>
|
|
||||||
<li><a class="hp hh1 admtxt" href="">Group</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue