/** * Perforce Swarm * * @copyright 2015 Perforce Software. All rights reserved. * @license Please see LICENSE.txt in top-level folder of this distribution. * @version <release>/<patch> */ $(document).ready( function() { if ($('body').hasClass('route-add-project') || $('body').hasClass('route-edit-project')) { var project = $('form').data("project"); var target = $('.control-group.automated-tests'); var bucket = project.codeDeploy ? project.codeDeploy['bucket'] : ""; var enabled = project.codeDeploy ? project.codeDeploy['enabled'] : false; var st_checked = enabled ? "checked " : ""; var st_in = enabled ? "in " : ""; var input = '<div class="control-group codeDeploy-data">' + '<label class="control-label" for="codeDeploy">' + 'ASW CodeDeploy' + '</label>' + '<div class="controls">' + '<label class="checkbox" for="codeDeployEnabled">' + '<input type="checkbox" name="codeDeploy[enabled]" ' + 'data-toggle="collapse" ' + 'data-target=".codeDeploy-data .body" ' + st_checked + 'id="codeDeployEnabled" >' + 'Enable' + '</label>' + '<div class="body collapse ' + st_in + '">' + '<div class="input-prepend" clear="both">' + '<span class="add-on">S3 Bucket</span>' + '<input type="text" class="input-xlarge" id="codeDeployBucket" ' + 'name="codeDeploy[bucket]" value="' + bucket + '"' + 'placeholder="s3://s3-bucket/path">' + '</div>' + '</div>' + '</div>' + '</div>'; $(target).before(input); $(target).closest('form').attr('enctype', 'multipart/form-data'); $(target).closest('form').data('max-size', 1048576); } });
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19727 | Paul Allen |
Basic upload of review zip to S3 Bucket. Does not include shelved files. |