1 {% extends "layout-unfold1.html" %}
5 {{ wizard.form.media }}
8 {% block unfold_main %}
10 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/onelab.css" />
11 <!-- xxx ideally only onelab.css but ... xxx -->
12 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/registration.css" />
14 <div class="onelab-title well-lg">
15 <h2>Request a Slice</h2>
20 {% for error in errors %}
27 <form id="commentForm" class="form-horizontal" action="" method="post" role="form">{% csrf_token %}
30 <div class="form-group">
31 <label for="email" class="col-xs-2 control-label">Experimenter</label>
32 <div class="col-xs-4">
33 <label class="col-xs-2 control-label" style="height:34px;">{{ email }}</label>
35 <div class="col-xs-6"> <p class="form-hint">Experimenter requesting a Slice</p> </div>
38 <div class="form-group">
39 <label for="slice_name" class="col-xs-2 control-label">Slice Name</label>
40 <div class="col-xs-4">
41 <input type="text" name="slice_name" class="form-control" minlength="2" value="{{ slice_name }}" placeholder="Slice Name" required />
43 <div class="col-xs-6"> <p class="form-hint">The name of the slice you wish to create</p> </div>
46 <div class="form-group">
47 <label for="authority_hrn" class="col-xs-2 control-label">Authority</label>
48 <div class="col-xs-4">
49 <div class="ui-widget">
50 <input id="authority_hrn" name="authority_hrn" class="form-control" value="{{ authority_hrn }}" placeholder="Authority" required />
53 <div class="col-xs-6"><p class="form-hint">An authority responsible for vetting your slice</p></div>
56 <div class="form-group">
57 <label for="number_of_nodes" class="col-xs-2 control-label">Number of nodes</label>
58 <div class="col-xs-4">
59 <div class="ui-widget">
60 <input id="number_of_nodes" name="number_of_nodes" class="form-control" value="{{ number_of_nodes }}" />
63 <div class="col-xs-6"><p class="form-hint">Number of nodes you expect to request (informative)</p></div>
66 <div class="form-group">
67 <label for="purpose" class="col-xs-2 control-label">Experiment purpose</label>
68 <div class="col-xs-4">
69 <div class="ui-widget">
70 <textarea id="purpose" name="purpose" class="form-control" style="height:110px;" placeholder="Purpose" required>{{ purpose }}</textarea>
73 <div class="col-xs-6"><p class="form-hint">Purpose of your experiment (informative)</p></div>
76 <button class="submit btn btn-default col-xs-12" type="submit">Request Slice</button>
82 jQuery(document).ready(function(){
85 {% for authority in authorities %}
86 {value:"{{ authority.authority_hrn }}",label:"{{authority.name}}"},
89 {value:"",label:"No authority found !!!"}
92 $( "#authority_hrn" ).autocomplete({
93 source: availableTags,
94 select: function( event, ui ) {console.log(jQuery(this))}