Skip to content
Snippets Groups Projects
VFImageUpload.html 3.24 KiB
Newer Older
trantzas's avatar
trantzas committed
<div class="page-header" >
	<div class="container">
		<div class="row">
			<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
				<h1 id="headerTitle">Register an Image archive</h1>
				<h3>owner: {{vfimage.owner.username}}</h3>
				<p>This image will be used by VNFs. The location of this image will be used by VIMs to download it and install it. 
				If you don't have a public URL, you may also upload your image to the 5GinFIRE Image repository</p>

				<form class="form-horizontal" name="form" role="form" ng-submit="submitNewVFImage()" id="addVFImageForm">
					

					
					<div class="form-group">
						<label for="vfimage.name" class="col-sm-2 control-label"  >Name*</label>
						<div class="col-sm-10">
							<input type="text" class="form-control"  ng-model="vfimage.name" value="" placeholder="Image Name (will be used inside VNFs VDU)" ng-blur="checkVFImageName()"/>
							<p class="help-block">Mandatory. Use a unique name e.g. <i>vendor_imageName_version</i> </p>
							<p class="alert alert-danger" ng-show="nameExists" > Error. Image name is already registered in the repository</p>
						</div>
					</div>
					
					<div class="form-group">
						<label for="vfimage.shortDescription" class="col-sm-2 control-label">Description</label>
						<div class="col-sm-10">
							<input type="text" class="form-control"  ng-model="vfimage.shortDescription" value="" placeholder="a short description" />
						</div>
					</div>
					
					<div class="form-group">
						<label for="vfimage.uploadedVFImageFile" class="col-sm-2 control-label">Image File </label>
						<div class="col-sm-10">
							<input type="file" class="form-control" name="uploadedVFImageFile"  file-model="uploadedVFImageFile" placeholder="" />
							<p class="help-block">[Optional] Upload your image file, to be hosted by 5GinFIRE portal</p>
							
						</div>
					</div>
					
					<div class="form-group">
						<label for="vfimage.publicURL" class="col-sm-2 control-label">URL</label>
						<div class="col-sm-10">
							<input type="text" class="form-control"  ng-model="vfimage.publicURL" value="" placeholder="[Optional] Public URL that VIMs can use to download your image" />
						</div>
					</div>
					
					
					<div class="form-group" >
						<label for="name" class="col-sm-2 control-label">Published</label>
						<div class="col-sm-10">
							<div class="col-sm-1"><input type="checkbox" class="form-control"  ng-model="vfimage.published" value=""  /></div>
							<div class="col-sm-9"><span></span></div>
							
							<div class="col-sm-12">
							<p class="help-block">If checked, the image will be visible for all users of the portal. (Testbed providers, admins can download it in any case)</p>
							</div>
							 
						</div>
					</div>
					
					
					<div class="form-group">
						<label for="vfimage.termsOfUse" class="col-sm-2 control-label">Terms of Use</label>
						<div class="col-sm-10">
							<textarea  rows="5" class="form-control"  ng-model="vfimage.termsOfUse" value="" placeholder="" ></textarea>
						</div>
					</div>



					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<input class="btn btn-default" type="submit" value="Save" ng-disabled="!nameIsValid" />
						</div>
					</div>
				</form>

			</div>
		</div>
	</div>
</div>