Start working on a folders support.

This commit is contained in:
Paulo Gustavo Veiga 2012-05-23 21:54:03 -03:00
parent 5498c681a4
commit 9bc4504aea
7 changed files with 157 additions and 143 deletions

View File

@ -272,8 +272,6 @@ td.formLabel {
padding: 5px;
}
}
/*--- Modal Dialog Form ---*/
div.modalDialog {
padding: 15px 30px;

View File

@ -83,7 +83,11 @@ public class RestMindmap {
public String getLastModificationTime() {
final Calendar date = mindmap.getLastModificationTime();
return toISO8601(date.getTime());
String result = null;
if (date != null) {
result = toISO8601(date.getTime());
}
return result;
}
public boolean isPublic() {

View File

@ -38,6 +38,8 @@
#map-table {
width: 100% !important;
display: inline-block;
float:right;
border-top: 1px solid black
}
input#selectAll {
@ -140,7 +142,7 @@ input#selectAll {
#tableActions {
float: right;
width: 500px;
width: 350px;
white-space:nowrap;
}

View File

@ -71,7 +71,7 @@ jQuery.fn.dialogForm = function(options) {
$("#" + containerId).find('input').attr('value', '');
}
// Reset button state ...
// Clear button "Saving..." state ...
var acceptBtn = $('#' + containerId + ' .btn-accept');
acceptBtn.button('reset');
@ -107,14 +107,13 @@ jQuery.fn.dialogForm = function(options) {
var fieldErrors = errors.fieldErrors;
if (fieldErrors) {
for (var fieldName in fieldErrors) {
// Mark the field ...
// Mark the field with errors ...
var message = fieldErrors[fieldName];
var inputField = $("#" + containerId + " input[name='" + fieldName + "']");
$("#" + containerId).find(".errorMessage").text(message).addClass("alert alert-error");
inputField.parent().addClass('error');
}
}
} else {

View File

@ -249,13 +249,13 @@
</script>
</head>
<body>
<div style="min-height: 500px">
<jsp:include page="header.jsp">
<jsp:param name="removeSignin" value="false"/>
<jsp:param name="showLogout" value="true"/>
</jsp:include>
<div id="mindmapListContainer">
<div style="min-height: 500px">
<div id="messagesPanel" class="alert alert-error alert-block fade in hide" style="margin-top: 10px">
<strong><spring:message code="UNEXPECTED_ERROR"/></strong>
@ -264,23 +264,36 @@
<div></div>
</div>
<div id="mindmapListContainer">
<div style="width: 15%;float: left;margin-right: 2%;margin-top: 80px">
<ul class="nav nav-list">
<li class="nav-header">Folders</li>
<li class="active"><a href="#"><i class="icon-inbox"></i> All</a></li>
<li><a href="#"><i class="icon-share"></i> Shared With Me</a></li>
<li><a href="#"><i class="icon-globe"></i> Public Maps</a></li>
</ul>
</div>
<div style="width: 78%;float: left;">
<div id="buttonsToolbar" class="btn-toolbar">
<div class="btn-group">
<button id="newBtn" class="btn btn-info"><i class="icon-file icon-white"></i> New</button>
<button id="importBtn" class="btn btn-info"><i class="icon-upload icon-white"></i> Import</button>
<button id="newBtn" class="btn btn-primary"><i class="icon-file icon-white"></i> New</button>
<button id="importBtn" class="btn btn-primary"><i class="icon-upload icon-white"></i> Import
</button>
</div>
<div class="btn-group act-multiple" id="deleteBtn" style="display:none">
<button class="btn btn-info"><i class="icon-trash icon-white"></i> Delete</button>
<button class="btn btn-primary"><i class="icon-trash icon-white"></i> Delete</button>
</div>
<div id="infoBtn" class="btn-group act-single" style="display:none">
<button class="btn btn-info"><i class="icon-exclamation-sign icon-white"></i> Info</button>
<button class="btn btn-primary"><i class="icon-exclamation-sign icon-white"></i> Info</button>
</div>
<div id="actionsBtn" class="btn-group act-single" style="display:none">
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown">
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
<i class="icon-asterisk icon-white"></i> More
<span class="caret"></span>
</button>
@ -290,11 +303,13 @@
Duplicate</a></li>
<li id="renameBtn"><a href="#" onclick="return false"><i class="icon-edit"></i> Rename</a></li>
<li id="printBtn"><a href="#" onclick="return false"><i class="icon-print"></i> Print</a></li>
<li id="publishBtn"><a href="#" onclick="return false"><i class="icon-globe"></i>Publish</a></li>
<li id="publishBtn"><a href="#" onclick="return false"><i class="icon-globe"></i>Publish</a>
</li>
<li id="shareBtn"><a href="#" onclick="return false"><i class="icon-share"></i> Share</a></li>
<li id="tagMap"><a href="#" onclick="return false"><i class="icon-tags"></i> Tag</a></li>
</ul>
</div>
<div id="tableActions" class="btn-toolbar">
<div class="btn-group" id="pageButtons">
<button class="btn" id="pPageBtn"><strong>&lt;</strong></button>
@ -303,8 +318,17 @@
<div id="pageInfo"></div>
</div>
</div>
<div id="map-table">
<table class="table" id="mindmapListTable"></table>
<div id="tableFooter" class="form-inline"></div>
</div>
</div>
</div>
</div>
<jsp:include page="footer.jsp"/>
<div>
<div id="dialogsContainer">
<!-- New map dialog -->
<div id="new-dialog-modal" title="Add new map" class="modal fade" style="display:none">
<div class="modal-header">
@ -393,7 +417,6 @@
<button class="btn btn-cancel" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
<!-- Delete map dialog -->
<div id="delete-dialog-modal" class="modal fade" style="display: none">
@ -441,17 +464,5 @@
<button class="btn btn-cancel" data-dismiss="modal">Cancel</button>
</div>
</div>
<div id="map-table">
<table class="table table-bordered" id="mindmapListTable">
</table>
<div id="tableFooter" class="form-inline"></div>
</div>
</div>
</div>
<jsp:include page="footer.jsp"/>
</body>
</html>

View File

@ -1,10 +1,10 @@
INSERT INTO COLABORATOR(id,email,creation_date) values (1,'test@wisemapping.org',CURDATE());
INSERT INTO USER (colaborator_id,username,firstname, lastname, password, activationCode,activation_date,allowSendEmail)
values(1,'wi','Wise','test', 'ENC:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3',1237,CURDATE(),1);
values(1,'wise-test','Test','User', 'ENC:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3',1237,CURDATE(),1);
INSERT INTO COLABORATOR(id,email,creation_date) values (2,'admin@wisemapping.org',CURDATE());
INSERT INTO USER (colaborator_id,username,firstname, lastname, password, activationCode,activation_date,allowSendEmail)
values(2,'WiseMapping Admin User','Wise','test', 'admin',1237,CURDATE(),1);
values(2,'wise-admin','Admin','User', 'admin',1237,CURDATE(),1);
COMMIT;

View File

@ -1,10 +1,10 @@
INSERT INTO COLABORATOR(id,email,creation_date) values (1,'test@wisemapping.org',CURRENT_DATE());
INSERT INTO USER (colaborator_id,username,firstname, lastname, password, activationCode,activation_date,allowSendEmail)
values(1,'WiseMapping Test User','Wise','Test', 'ENC:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3',1237,CURRENT_DATE(),1);
values(1,'wise-test','Test','User', 'ENC:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3',1237,CURRENT_DATE(),1);
INSERT INTO COLABORATOR(id,email,creation_date) values (2,'admin@wisemapping.org',CURRENT_DATE());
INSERT INTO USER (colaborator_id,username,firstname, lastname, password, activationCode,activation_date,allowSendEmail)
values(2,'WiseMapping Admin User','Wise','Test', 'admin',1237,CURRENT_DATE(),1);
values(2,'wise-admin','Admin','User', 'admin',1237,CURRENT_DATE(),1);
COMMIT;