wisemapping-open-source/wise-webapp/src/main/webapp/jsp/mindmapList.jsp

443 lines
19 KiB
Plaintext
Raw Normal View History

2012-06-30 07:26:21 +02:00
<%@page pageEncoding="UTF-8" %>
<%@include file="/jsp/init.jsp" %>
<!DOCTYPE HTML>
2012-09-11 04:51:53 +02:00
<html lang="en">
<head>
<base href="${requestScope['site.baseurl']}/">
<title><spring:message code="SITE.TITLE"/> - <spring:message code="MY_WISEMAPS"/></title>
2012-06-22 03:18:04 +02:00
<!--[if lt IE 9]>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<![endif]-->
2012-04-06 22:05:42 +02:00
2012-06-25 01:03:25 +02:00
<link rel="icon" href="images/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"/>
2012-06-22 03:18:04 +02:00
<link rel="stylesheet/less" type="text/css" href="css/mindmapList.less"/>
2012-04-06 22:05:42 +02:00
2012-05-30 03:56:14 +02:00
<script type="text/javascript" language="javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" language="javascript" src="bootstrap/js/bootstrap.js"></script>
<script src="js/less.js" type="text/javascript"></script>
2012-05-30 03:56:14 +02:00
<!--jQuery DataTables-->
<script type="text/javascript" language="javascript" src="js/jquery.dataTables.min.js"></script>
<script type="text/javascript" language="javascript" src="js/mindmapList.js"></script>
2012-05-30 03:56:14 +02:00
<!-- Update timer plugging -->
<script type="text/javascript" language="javascript" src="js/jquery.timeago.js"></script>
<script type="text/javascript" language="javascript" src="js/jquery.timeago.${locale}.js"></script>
2012-05-30 03:56:14 +02:00
<script type="text/javascript" language="javascript">
2012-06-30 19:20:09 +02:00
$(function () {
$('#mindmapListTable').dataTable({
bProcessing:true,
sAjaxSource:"c/restful/maps/",
2012-06-30 19:20:09 +02:00
sAjaxDataProp:'mindmapsInfo',
fnInitComplete:function () {
$('#mindmapListTable tbody').change(updateStatusToolbar);
callbackOnTableInit();
},
aoColumns:[
{
sTitle:'<input type="checkbox" id="selectAll"/>',
sWidth:"60px",
sClass:"select",
bSortable:false,
bSearchable:false,
mDataProp:"starred",
bUseRendered:false,
fnRender:function (obj) {
return '<input type="checkbox"/><span class="' + (obj.aData.starred ? 'starredOn' : 'starredOff') + '"></span>';
}
},
{
sTitle:"<spring:message code="NAME"/>",
sWidth:"270px",
bUseRendered:false,
mDataProp:"title",
fnRender:function (obj) {
return '<a href="c/maps/' + obj.aData.id + '/edit">' + $('<span></span>').text(obj.aData.title).html() + '</a>';
2012-06-30 19:20:09 +02:00
}
},
{
2012-06-30 20:25:24 +02:00
sTitle:"<spring:message code="CREATOR"/>",
2012-06-30 19:20:09 +02:00
mDataProp:"creator"
},
{
bSearchable:false,
sTitle:"<spring:message code="LAST_UPDATE"/>",
bUseRendered:false,
sType:"date",
mDataProp:"lastModificationTime",
fnRender:function (obj) {
var time = obj.aData.lastModificationTime;
return '<abbr class="timeago" title="' + time + '">' + jQuery.timeago(time) + '</abbr>' + ' ' + '<span style="color: #777;font-size: 75%;padding-left: 5px;">' + obj.aData.lastModifierUser + '</span>';
}
}
],
bAutoWidth:false,
oLanguage:{
"sLengthMenu":"<spring:message code="SHOW_REGISTERS"/>",
2012-06-30 19:20:09 +02:00
"sSearch":"",
2012-07-02 05:37:48 +02:00
"sZeroRecords":"<spring:message code="NO_MATCHING_FOUND"/>",
"sLoadingRecords":"<spring:message code="LOADING"/>",
"sInfo":"<spring:message code="TABLE_ROWS"/>",
2012-07-02 05:37:48 +02:00
"sEmptyTable":"<spring:message code="NO_SEARCH_RESULT"/>",
"sProcessing":"<spring:message code="LOADING"/>"
2012-06-30 19:20:09 +02:00
},
bStateSave:true
});
// Customize search action ...
$('#mindmapListTable_filter').appendTo("#tableActions");
$('#mindmapListTable_filter input').addClass('input-medium search-query');
$('#mindmapListTable_filter input').attr('placeholder', 'Search');
$("#mindmapListTable_info").appendTo("#pageInfo");
// Re-arrange pagination actions ...
$("#tableFooter").appendTo("#mindmapListTable_wrapper");
$("#mindmapListTable_length").appendTo("#tableFooter");
2012-09-11 04:51:53 +02:00
$('#mindmapListTable_length select').attr("style", "width:60px;");
2012-06-30 19:20:09 +02:00
$('input:checkbox[id="selectAll"]').click(function () {
$("#mindmapListTable").dataTableExt.selectAllMaps();
});
// Hack for changing the pagination buttons ...
$('#nPageBtn').click(function () {
$('#mindmapListTable_next').click();
});
$('#pPageBtn').click(function () {
$('#mindmapListTable_previous').click();
});
});
</script>
2012-04-06 22:05:42 +02:00
</head>
<body>
2012-05-24 01:05:16 +02:00
<jsp:include page="header.jsp">
<jsp:param name="removeSignin" value="false"/>
<jsp:param name="showLogout" value="true"/>
</jsp:include>
2012-04-06 22:05:42 +02:00
2012-09-11 04:51:53 +02:00
<div class="row-fluid hide" id="messagesPanel" style="margin-top: 20px">
<div class="span2"></div>
<div class="alert alert-error alert-block fade in span8">
<strong><spring:message code="UNEXPECTED_ERROR"/></strong>
2012-06-06 05:48:46 +02:00
2012-09-11 04:51:53 +02:00
<p><spring:message code="UNEXPECTED_ERROR_SERVER_ERROR"/></p>
2012-04-06 22:05:42 +02:00
2012-09-11 04:51:53 +02:00
<div></div>
</div>
</div>
<div class="row-fluid" style="min-height: 500px">
<div class="span1"></div>
<div class="span2" id="foldersContainer">
<ul class="nav nav-list">
<li class="nav-header"><spring:message code="FILTERS"/></li>
<li data-filter="all" class="active"><a href="#"><i class="icon-inbox icon-white"></i> <spring:message
code="ALL_MAPS"/></a></li>
<li data-filter="my_maps"><a href="#"><i class="icon-user"></i> <spring:message code="MY_MAPS"/></a>
</li>
<li data-filter="shared_with_me"><a href="#"><i class="icon-share"></i> <spring:message
code="SHARED_WITH_ME"/></a></li>
<li data-filter="starred"><a href="#"><i class="icon-star"></i> <spring:message code="STARRED"/></a>
</li>
<li data-filter="public"><a href="#"><i class="icon-globe"></i> <spring:message code="PUBLIC_MAPS"/></a>
</li>
</ul>
</div>
<div class="buttonsToolbar btn-toolbar ${requestScope['google.ads.enabled']?'span7':'span8'}">
<div id="tableActions">
<div id="pageInfo"></div>
<div class="btn-group" id="pageButtons">
<button class="btn" id="pPageBtn"><strong>&lt;</strong></button>
<button class="btn" id="nPageBtn"><strong>&gt;</strong></button>
</div>
</div>
<div class="btn-group">
<button id="newBtn" class="btn btn-primary"><i class="icon-file icon-white"></i> <spring:message
code="NEW"/></button>
<button id="importBtn" class="btn btn-primary"><i class="icon-upload icon-white"></i>
<spring:message code="IMPORT"/>
</button>
</div>
<div class="btn-group act-multiple" id="deleteBtn" style="display:none">
<button class="btn btn-primary"><i class="icon-trash icon-white"></i> <spring:message
code="DELETE"/></button>
</div>
2012-09-11 04:51:53 +02:00
<div id="infoBtn" class="btn-group act-single" style="display:none">
<button class="btn btn-primary"><i class="icon-exclamation-sign icon-white"></i> <spring:message
code="INFO"/></button>
</div>
<div id="actionsBtn" class="btn-group act-single" style="display:none">
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
<i class="icon-asterisk icon-white"></i> <spring:message code="MORE"/>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li id="duplicateBtn"><a href="#" onclick="return false"><i class="icon-plus-sign"></i>
<spring:message code="DUPLICATE"/></a></li>
<li id="renameBtn"><a href="#" onclick="return false"><i class="icon-edit"></i> <spring:message
code="RENAME"/></a></li>
<li id="publishBtn"><a href="#" onclick="return false"><i class="icon-globe"></i>
<spring:message code="PUBLISH"/></a>
2012-06-30 07:26:21 +02:00
</li>
2012-09-11 04:51:53 +02:00
<li id="shareBtn"><a href="#" onclick="return false"><i class="icon-share"></i> <spring:message
code="SHARE"/></a></li>
<li id="exportBtn"><a href="#" onclick="return false"><i class="icon-download"></i>
<spring:message
code="EXPORT"/></a>
2012-06-30 07:26:21 +02:00
</li>
2012-09-11 04:51:53 +02:00
<li id="printBtn"><a href="#" onclick="return false"><i class="icon-print"></i> <spring:message
code="PRINT"/></a></li>
<li id="historyBtn"><a href="#" onclick="return false"><i class="icon-time"></i> <spring:message
code="HISTORY"/></a>
2012-06-30 07:26:21 +02:00
</li>
2012-05-24 02:54:03 +02:00
</ul>
2012-04-15 13:00:51 +02:00
</div>
2012-09-11 04:51:53 +02:00
<div id="map-table">
<table class="table" id="mindmapListTable"></table>
2012-05-24 01:05:16 +02:00
</div>
<div id="tableFooter" class="form-inline"></div>
2012-05-24 02:54:03 +02:00
</div>
2012-09-11 07:01:52 +02:00
<div class="span1" style="padding-top:25px">
2012-09-11 04:51:53 +02:00
<c:if test="${requestScope['google.ads.enabled']}">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7564778578019285";
/* WiseMapping Mindmap List */
google_ad_slot = "4071968444";
google_ad_width = 120;
2012-11-18 17:38:17 +01:00
google_ad_height = 600;
2012-09-11 04:51:53 +02:00
//-->
</script>
<div style="margin-top:5px;">
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</c:if>
</div>
2012-05-24 02:54:03 +02:00
</div>
2012-09-11 04:51:53 +02:00
<jsp:include page="footer.jsp"/>
2012-04-08 01:05:50 +02:00
2012-05-24 02:54:03 +02:00
<div id="dialogsContainer">
2012-06-30 19:20:09 +02:00
<!-- New map dialog -->
<div id="new-dialog-modal" title="<spring:message code="ADD_NEW_MAP"/>" class="modal fade">
<div class="modal-header">
<button class="close" data-dismiss="modal">x</button>
<h3><spring:message code="NEW_MAP_MSG"/></h3>
</div>
<div class="modal-body">
<div class="errorMessage"></div>
<form class="form-horizontal">
<fieldset>
<div class="control-group">
<label class="control-label" for="newTitle"><spring:message code="NAME"/>:</label>
<input class="control" name="title" id="newTitle" type="text" required="required"
placeholder="<spring:message code="MAP_NAME_HINT"/>" autofocus="autofocus" maxlength="255"/>
2012-06-30 19:20:09 +02:00
</div>
<div class="control-group">
<label class="control-label" for="newDec"><spring:message code="DESCRIPTION"/>:</label>
<input class="control" name="description" id="newDec" type="text"
placeholder="<spring:message code="MAP_DESCRIPTION_HINT"/>" maxlength="255"/>
2012-06-30 19:20:09 +02:00
</div>
</fieldset>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-primary btn-accept" data-loading-text="<spring:message
code="SAVING"/>"><spring:message
code="CREATE"/></button>
<button class="btn btn-cancel" data-dismiss="modal"><spring:message code="CANCEL"/></button>
2012-05-24 01:05:16 +02:00
</div>
2012-06-30 19:20:09 +02:00
</div>
2012-04-06 22:05:42 +02:00
2012-06-30 19:20:09 +02:00
<!-- Duplicate map dialog -->
<div id="duplicate-dialog-modal" class="modal fade">
<div class="modal-header">
<button class="close" data-dismiss="modal">x</button>
<h3 id="dupDialogTitle"></h3>
</div>
<div class="modal-body">
<div class="errorMessage"></div>
<form class="form-horizontal">
<fieldset>
<div class="control-group">
<label for="title" class="control-label"><spring:message code="NAME"/>: </label>
<input name="title" id="title" type="text" required="required"
placeholder="<spring:message code="MAP_DESCRIPTION_HINT"/>" autofocus="autofocus"
class="control" maxlength="255"/>
2012-06-30 19:20:09 +02:00
</div>
<div class="control-group">
<label for="description" class="control-label"><spring:message
code="DESCRIPTION"/>: </label>
<input name="description" id="description" type="text"
placeholder="<spring:message code="MAP_DESCRIPTION_HINT"/>" class="control" maxlength="255"/>
2012-06-30 19:20:09 +02:00
</div>
</fieldset>
</form>
2012-05-24 02:54:03 +02:00
</div>
2012-06-30 19:20:09 +02:00
<div class="modal-footer">
<button class="btn btn-primary btn-accept" data-loading-text="<spring:message code="SAVING"/>">
<spring:message code="DUPLICATE"/></button>
<button class="btn btn-cancel" data-dismiss="modal"><spring:message code="CANCEL"/></button>
</div>
</div>
2012-05-20 07:25:54 +02:00
2012-06-30 19:20:09 +02:00
<!-- Rename map dialog -->
<div id="rename-dialog-modal" class="modal fade">
<div class="modal-header">
<button class="close" data-dismiss="modal">x</button>
2012-06-30 20:25:24 +02:00
<h3 id="renameDialogTitle"><spring:message code="RENAME"/></h3>
2012-06-30 19:20:09 +02:00
</div>
<div class="modal-body">
<div class="errorMessage"></div>
<form class="form-horizontal">
<fieldset>
<div class="control-group">
<label for="renTitle" class="control-label"><spring:message code="NAME"/>: </label>
<input name="title" id="renTitle" required="required" autofocus="autofocus"
class="control" maxlength="255"/>
2012-06-30 19:20:09 +02:00
</div>
<div class="control-group">
<label for="renDescription" class="control-label"><spring:message
code="DESCRIPTION"/>:</label>
<input name="description" class="control" id="renDescription" maxlength="255"/>
2012-06-30 19:20:09 +02:00
</div>
</fieldset>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-primary btn-accept" data-loading-text="<spring:message code="SAVING"/>"><spring:message
code="RENAME"/></button>
<button class="btn btn-cancel" data-dismiss="modal"><spring:message code="CANCEL"/></button>
2012-05-24 01:05:16 +02:00
</div>
2012-06-30 19:20:09 +02:00
</div>
2012-05-20 02:36:34 +02:00
2012-06-30 19:20:09 +02:00
<!-- Delete map dialog -->
<div id="delete-dialog-modal" class="modal fade">
<div class="modal-header">
<button class="close" data-dismiss="modal">x</button>
<h3><spring:message code="DELETE_MINDMAP"/></h3>
</div>
<div class="modal-body">
<div class="alert alert-block">
<h4 class="alert-heading"><spring:message code="WARNING"/>!</h4><spring:message code="DELETE_MAPS_WARNING"/>
2012-05-24 01:05:16 +02:00
</div>
</div>
2012-06-30 19:20:09 +02:00
<div class="modal-footer">
<button class="btn btn-primary btn-accept" data-loading-text="<spring:message
code="SAVING"/> ..."><spring:message
2012-06-30 19:20:09 +02:00
code="DELETE"/></button>
<button class="btn btn-cancel" data-dismiss="modal"><spring:message code="CANCEL"/></button>
</div>
</div>
2012-05-20 17:28:10 +02:00
2012-06-30 19:20:09 +02:00
<!-- Info map dialog -->
<div id="info-dialog-modal" class="modal fade">
<div class="modal-header">
<button class="close" data-dismiss="modal">x</button>
<h3><spring:message code="INFO"/></h3>
</div>
<div class="modal-body">
2012-05-20 17:28:10 +02:00
2012-04-06 22:05:42 +02:00
</div>
2012-06-30 19:20:09 +02:00
<div class="modal-footer">
<button class="btn btn-cancel" data-dismiss="modal"><spring:message code="CLOSE"/></button>
</div>
</div>
2012-04-06 22:05:42 +02:00
2012-06-30 19:20:09 +02:00
<!-- Publish Dialog Config -->
<div id="publish-dialog-modal" class="modal fade">
<div class="modal-header">
<button class="close" data-dismiss="modal">x</button>
<h3><spring:message code="PUBLISH"/></h3>
</div>
<div class="modal-body">
2012-05-24 01:05:16 +02:00
</div>
2012-06-30 19:20:09 +02:00
<div class="modal-footer">
<button class="btn btn-primary btn-accept" data-loading-text="<spring:message code="SAVING"/>...">
<spring:message code="ACCEPT"/></button>
<button class="btn btn-cancel" data-dismiss="modal"><spring:message code="CANCEL"/></button>
</div>
</div>
2012-06-30 19:20:09 +02:00
<!-- Export Dialog Config -->
<div id="export-dialog-modal" class="modal fade">
<div class="modal-header">
<button class="close" data-dismiss="modal">x</button>
<h3><spring:message code="EXPORT"/></h3>
</div>
<div class="modal-body">
</div>
2012-06-30 19:20:09 +02:00
<div class="modal-footer">
<button class="btn btn-primary btn-accept" data-loading-text="Exporting..."><spring:message
code="EXPORT"/></button>
<button class="btn btn-cancel" data-dismiss="modal"><spring:message code="CANCEL"/></button>
</div>
</div>
2012-06-30 19:20:09 +02:00
<!-- Import Dialog Config -->
<div id="import-dialog-modal" class="modal fade">
<div class="modal-header">
<button class="close" data-dismiss="modal">x</button>
<h3><spring:message code="IMPORT"/></h3>
</div>
<div class="modal-body">
2012-06-06 05:48:46 +02:00
</div>
2012-06-30 19:20:09 +02:00
<div class="modal-footer">
<button class="btn btn-primary btn-accept" data-loading-text="<spring:message
code="IMPORTING"/>"><spring:message
code="IMPORT"/></button>
<button class="btn btn-cancel" data-dismiss="modal"><spring:message code="CANCEL"/></button>
</div>
</div>
2012-06-30 19:20:09 +02:00
<!-- Share Dialog Config -->
<div id="share-dialog-modal" class="modal fade">
<div class="modal-header">
<button class="close" data-dismiss="modal">x</button>
<h3><spring:message code="SHARE"/></h3>
</div>
<div class="modal-body">
</div>
2012-06-30 19:20:09 +02:00
<div class="modal-footer">
<button class="btn btn-primary btn-accept" data-loading-text="<spring:message code="SAVING"/>">
<spring:message code="ACCEPT"/></button>
<button class="btn btn-cancel" data-dismiss="modal"><spring:message code="CANCEL"/></button>
</div>
</div>
2012-06-30 19:20:09 +02:00
<!-- History Dialog Config -->
<div id="history-dialog-modal" class="modal fade">
<div class="modal-header">
<button class="close" data-dismiss="modal">x</button>
<h3><spring:message code="HISTORY"/></h3>
</div>
<div class="modal-body">
2012-06-17 07:51:01 +02:00
</div>
2012-06-30 19:20:09 +02:00
<div class="modal-footer">
<button class="btn btn-cancel" data-dismiss="modal"><spring:message code="CLOSE"/></button>
</div>
</div>
2012-05-27 23:15:46 +02:00
</div>
</body>
</html>