When creating a new project, have the possibility to select another project to duplicate

This commit is contained in:
Frederic Guillot
2016-01-31 17:46:19 -05:00
parent 1500ff92b2
commit fc21d3873e
30 changed files with 694 additions and 342 deletions

File diff suppressed because one or more lines are too long

View File

@@ -55,6 +55,11 @@ nav .active a {
color: #d40000;
}
/* user links on the left */
header .user-links .dropdown {
margin-left: 15px;
}
/* title tooltip */
header h1 .tooltip {
opacity: 0.3;

View File

@@ -0,0 +1,8 @@
.project-creation-options {
max-width: 500px;
border-left: 3px dotted #efefef;
margin-top: 20px;
padding-left: 15px;
padding-bottom: 5px;
padding-top: 5px;
}

File diff suppressed because one or more lines are too long

View File

@@ -15,4 +15,14 @@ Project.prototype.listen = function() {
})
});
});
$('#project-creation-form #form-src_project_id').on('change', function() {
var srcProjectId = $(this).val();
if (srcProjectId == 0) {
$(".project-creation-options").hide();
} else {
$(".project-creation-options").show();
}
});
};