<label>
Please enter a name for your slice <br />
<span class="sublabel">
- The slice name should only contain letters, numbers and the underscore character "_" <br />
+ The slice name should only contain letters, numbers and the underscore "_" (19 max length) <br />
</span>
</label>
- <input type="text" class="form-control" name="slice_name" id="slice_name" style="width:100%" placeholder="Slice name" value="{{slice_name}}" required="required">
+ <input type="text" class="form-control" name="slice_name" id="slice_name" maxlength="19" style="width:100%" placeholder="Slice name" value="{{slice_name}}" required="required">
</div>
<div class="form-group">
<label>
If your are not part of any projects you can <a href="/portal/project_request/">join or create one</a>
</label>
<input type="text" class="form-control" id="authority_hrn" name="org_name" style="width:100%" placeholder="Project"
- title="Select a project under which you want to create your slice. Don't have any project yet! Create/Join project from the dashboard." required="required">
+ title="Select a project under which you want to create your slice" required="required">
</div>
<div class="form-group">
<label>
- Provide an URL for your experiment
+ Provide an URL for your experiment (not required)
</label>
<input type="text" class="form-control" name="url" id="url" style="width:100%" placeholder="Experiment URL (if one exists)"
- title="Please provide the url of your experiment if you have one." value="{{url}}">
+ title="Please provide the url of your experiment" value="{{url}}">
</div>
<div class="form-group">
<label>
Please provide a description of the purpose for your experiment
</label>
<textarea id="purpose" name="purpose" class="form-control" rows="6" placeholder="Experiment description" style="width:100%"
- title="Purpose of your experiment (informative)" required="required">{{ purpose }}</textarea>
+ title="Description of your experiment" required="required">{{ purpose }}</textarea>
</div>
<button type="submit" id=submit_pi class="btn btn-onelab"><span class="glyphicon glyphicon-plus"></span> Create slice</button>
</form>
}
}
}).bind('focus', function(){ $(this).autocomplete("search"); } );
+ $('input[name=slice_name]').keyup(function(){
+ this.value = this.value.toLowerCase();
+ });
});
-
-/*function draw_projects(authority_hrn){
-
- var projects = [];
- project_row = "<option value=''> - </option>";
- projects.push(project_row);
-
- if(authority_hrn.length > 0){
- // Not for root authority
- if(authority_hrn.split('.').length > 1){
- $.post("/rest/myslice:authority/",{'fields':['authority_hrn','pi_users'],'filters':{'authority_hrn':'CONTAINS'+authority_hrn}}, function( data ) {
-
- $.each( data, function( key, val ) {
- project_row = "<option value='"+val.authority_hrn+"'>"+val.authority_hrn+"</option>";
- projects.push(project_row);
- });
- $("#project").html(projects.join( "" ));
- });
- }else{
- $("#project").html(projects.join( "" ));
- }
- }else{
- my_projects = JSON.parse(localStorage.getItem('projects'));
- $.each( my_projects, function( i, val ) {
- project_row = "<option value='"+val+"'>"+val+"</option>";
- projects.push(project_row);
- });
- $("#project").html(projects.join( "" ));
- }
- $("#project").show();
- $("#project_loading").hide();
-}*/
</script>
{% endblock %}