<label>
Please insert a name for your project under which you will be able to create slices <br />
<span class="sublabel">
- The project name should only contain letters, numbers and the underscore character "_" <br />
+ The project name should only contain letters, numbers and the underscore "_" (10 max length)<br />
</span>
</label>
<div class="form-group">
- <input type="text" name="project_name" value="" style="width:100%;" title="The project name should not contain spaces but only letters, numbers and the underscore character" placeholder="Project name" required>
+ <input type="text" name="project_name" value="" class="form-control" maxlength="10" style="width:100%;" title="The project name should not contain spaces but only letters, numbers and the underscore character" placeholder="Project name" required>
</div>
<label>
The authority under which your project will be managed <br />
<span class="sublabel">
- Before you can access your newly created project a manager of this authority should approve the request
+ Before you can access your project a manager of this authority should approve the request
</span>
</label>
<div class="form-group">
<script>
$(document).ready(function() {
var myprojects = JSON.parse(localStorage.getItem('projects'));
- console.log(myprojects);
if (myprojects) {
$.each(myprojects, function (i, val){
- console.log(val);
$('.project-list').append('<tr><td>'+ val +'</td></tr>');
});
} else {
$("#project_loading").hide();
$("#projects").html(projects.join( "" ));
$("#projects").combobox();
+ var $s = jQuery("#projects").next().attr('id','listProjects');
+ jQuery('#listProjects').bind("click",function(){
+ // show all items click
+ this.childNodes[1].click();
+ });
+
});
/*
// auto-complete the form
jQuery("#org_name").combobox();
+ $('input[name=project_name]').keyup(function(){
+ this.value = this.value.toLowerCase();
+ });
});
</script>
{% endblock %}