b7645700dbc3824f786429d45c6092df7b0fefa0
[unfold.git] / portal / templates / onelab / onelab_registration_view.html
1 {% extends "layout.html" %}
2
3 {% block content %}        
4
5 <div class="row">
6         <div class="col-md-12">
7         <h1><img src="{{ STATIC_URL }}icons/user-xs.png" alt="User Registration" />User sign-up</h1>
8         </div>
9 </div>
10 {% if errors %}
11 <div class="row">
12         <div class="col-md-12">
13                 <ul class="error">
14                   {% for error in errors %}
15                   <li>{{ error | safe }}</li>
16                   {% endfor %}
17                 </ul>
18         </div>
19 </div>
20 {% endif %}
21                                 <form action="/register" class="cmxform form-horizontal" method="post" enctype="multipart/form-data">
22 <div class="row">
23         <div class="col-md-6">
24             <div>
25                                 {% csrf_token %}
26                                 <label for="authority_hrn" class="control-label">Organization</label>
27                                 <p></p>
28                 <div class="ui-widget">
29                                 <select id="org_name" name="org_name" class="form-control" style="width:590px" value="{{ organization }}" 
30                                 title="Choose your organization (company/university) from the list that apears when you click in the field and start to type.
31                                  Use the arrow keys to scroll through the list; type part of the name to narrow down the list. We will send an email to 
32                                  the managers that we have on record for your organization, asking them to validate your sign-up request." required>
33                 {% if authorities %}
34                     {% for authority in authorities %}
35                         {% if authority.name %}
36                             {% if authority.authority_hrn == authority_hrn %}
37                                 <option value="{{ authority.authority_hrn }}" selected>{{authority.name}}</option>
38                             {% else %}
39                                 <option value="{{ authority.authority_hrn }}">{{authority.name}}</option>
40                             {% endif %}
41                         {% else %}
42                             {% if authority.authority_hrn == authority_hrn %}
43                             <option value="{{ authority.authority_hrn }}" selected>{{authority.authority_hrn}}</option>
44                             {% else %}
45                             <option value="{{ authority.authority_hrn }}">{{authority.authority_hrn}}</option>
46                             {% endif %}
47                         {% endif %}
48                     {% endfor %}               
49                 {% else %}
50                     <option value:"">No authority found !!!</option>
51                 {% endif %}
52                 </select>
53                 </div>
54                                 <p></p>
55                                 <p>Organization not listed? <a href="/portal/join">Request its addition now.</a></p>
56                 </div>
57         </div>
58         <div class="col-md-6">
59         <h4>
60             Questions? <a href="/contact" >Contact us.</a>
61        </h4>
62   </div>
63 </div>
64
65 <div class="row">
66         <div class="col-md-6">
67            <p>
68                         <label for="firstname" class="control-label">Personal information</label>
69            </p>
70            <p>
71                         <input type="text" name="firstname" class="form-control" style="width:350px" minlength="2" value="{{ first_name }}" placeholder="First name" required />
72             </p>
73             <p>
74                         <input type="text" name="lastname" size="25" class="form-control" style="width:350px" minlength="2" value="{{ last_name }}" placeholder="Last name" required />
75             </p>
76                 <p>
77                 <input type="email" name="email" size="25"  class="form-control" style="width:350px" value="{{ email }}" title="Your e-mail address will be your identifier for logging in. We contact you to verify your account and then, occasionally, for important issues." placeholder="Email" required />
78                 </p>
79         </div>  
80
81         <div class="col-md-6">
82             <p>
83               <label for="password" class="control-label">Authentication</label>
84                 </p>    
85                 <p>
86               <input type="password"  id="password" name="password"   class="form-control" style="width:250px" minlength="4" value="{{ password }}" 
87                         title="Your password allows you to log in to this portal."
88                         placeholder="Password" required />
89             </p>
90             <p>
91                         <input type="password"  id="confirmpassword" name="confirmpassword" style="width:250px"  minlength="4" class="form-control" value="" 
92                                 placeholder="Confirm password" required />
93             </p>
94             <p>
95                         <select name="question" class="form-control" style="width:350px" id="key-policy" 
96                                 title="Your public/private key pair allows you to access the testbeds." required >        
97                                 <option value="generate">Generate my keys for me (recommended)</option>
98                                 <option value="upload">Upload my public key (advanced users only)</option>
99                         </select>
100             </p>
101             <div style="display:none;" id="upload_key">
102                 <label for="file" class="control-label">Upload public key</label>
103                 <input type="file" name="user_public_key" class="form-control" style="width:200px" id="user_public_key" />
104                 <br />
105                         <div class="alert alert-danger" id="pkey_del_msg">
106                                 In order for the portal to contact testbeds on your behalf, so as to list and reserve resources, you will need to 
107                                 <a href="/portal/manual_delegation" target="_blank">delegate your credentials to the portal.</a>
108                         </div>
109             </div>
110         </div>
111 </div>
112 <div class="row">
113         <div class="col-md-12">
114                 <p>
115                         <input type="checkbox" name="agreement" value="agreement" required />&nbsp;&nbsp; I agree to the 
116                         <a href="#" data-toggle="modal" data-target="#myModal">terms and conditions.</a> 
117                 </p>
118         </div>
119 </div>
120 <div class="row">
121         <div class="col-md-10">
122                 <div id="register">
123                     <p>
124                         <span class="glyphicon glyphicon-info-sign"></span> &nbsp;
125                 If you are a <b>PlanetLab Europe</b> user, please fill in this form using the same email address that you
126                  currently use for your PlanetLab Europe account.
127                 Your existing credentials will be used to validate your OneLab account.
128                 Please be sure to specify a different password for your new OneLab account.
129                 </p>
130             </div>
131         </div>
132 </div>
133 <div class="row">
134         <div class="col-md-12">
135                 <div id="register">
136                         <p>
137                 <input class="submit btn btn-onelab" type="submit" value="Sign up" />
138                 </p>
139                 </form>
140             </div>
141         </div>
142 </div>
143
144         <!-- Modal - columns selector -->
145 <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
146                         <div class="modal-dialog">
147                         <div class="modal-content">
148                                 <div class="modal-header">
149                                         <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
150                                                 <h4 class="modal-title" id="myModalLabel">Terms & Conditions</h4>
151                                 </div>
152                                 <div class="modal-body">
153                                                 <p align="left">
154                                         for OneLab Basic level service
155                                         <br/>
156                                         Version 0.6 of 20 May 2014
157                                                 <br>
158                                                 <a href="/portal/terms" target="_blank">[Printable format]</a>
159                                                 </p>
160                                         <h1 align="left">1 Context</h1>
161                                         <h2 align="left">1.1 OneLab</h2>
162                                         <p align="left">
163                                 OneLab is an experimental facility for testing new ideas and new technologies in the area of computer networking. It consists of a variety of types of
164                                 platforms, including:</p>
165                                         <ul type="disc">
166                                 <li>
167                                 <strong>internet overlay testbeds</strong>
168                                 , testbeds that offer virtual machines distributed across locations in different countries, allowing users to deploy overlays on the internet;
169                                 </li>
170                                 <li>
171                                 <strong>wireless testbeds</strong>
172                                 , testbeds that consist of clusters of computers that are within Wi-Fi communication range of each other, either in an office environment or in an
173                                 isolated setting;
174                                 </li>
175                                 <li>
176                                 <strong>internet of things testbeds</strong>
177                                 , testbeds that consist of embedded computing nodes with sensor capabilities, communicating wirelessly in an isolated environment;
178                                 </li>
179                                 <li>
180                                 <strong>emulation testbeds,</strong>
181                                 computing clusters that offer virtual machines on servers that are interconnected by a high speed switch, enabling large scale network emulation.
182                                 </li>
183                                         </ul>
184                                         <p align="left">
185                                 This list of types of platforms is subject to change, and the current list, along with the identities of the specific platforms of each type, can be found
186                                 on the OneLab website (onelab.eu).</p>
187                                         <p align="left">
188                                 Each platform has its own owners, and OneLab is the grouping of these platforms through a consortium of institutions. The OneLab consortium is coordinated
189                                 by UPMC Sorbonne Universités. It operates on a not-for-profit basis.</p>
190                                         <p align="left">
191                                 Access to OneLab may also provide access to additional platforms that are not part of OneLab, due to a federation agreement between OneLab and the owners
192                                 of those platforms.</p>
193                                         <h2 align="left">1.2 Fee-free Basic level service</h2>
194                                         <p align="left">These terms and conditions define and apply to OneLab's Basic level service, which is available free of charge.</p>
195                                         <p align="left">
196                                 Users who would like additional services are encouraged to contact support@onelab.eu. Some additional services require a written agreement, but are
197                                 otherwise free. Others require the payment of fees or in-kind contributions. (An example of an in-kind contribution is the hosting of a PlanetLab Europe
198                                 server node.)</p>
199                                         <h2 align="left">1.3 Managers and standard users</h2>
200                                         <p align="left">
201                                 There are two classes of OneLab user: the manager and the standard user. OneLab grants access rights to managers, who, in turn, provide access rights to
202                                         standard users. Examples are: for a small enterprise, an executive may be the manager and the employees may be standard users; for a research team, a
203                                 senior scientist (faculty member or research scientist) may be a manager and doctoral students and other members of the team may be standard users; for a
204                                 university course, a professor may be a manager and the students may be standard users.</p>
205                                         <h2 align="left">1.4 These terms and conditions</h2>
206                                         <p align="left">
207                                 Acceptance of these terms and conditions is a condition of obtaining OneLab Basic level user service. They are posted to the OneLab portal site
208                                 (portal.onelab.eu). They may be changed without other notice than the posting of a new version to the portal site.</p>
209                                         <h1 align="left">2 Services provided by OneLab</h1>
210                                         <h2 align="left">2.1 Access to the experimental facility</h2>
211                                         <p align="left">
212                                 OneLab provides users with access to the platforms that make up the experimental facility. Each platform owner determines the specifics of this access (for
213                                 example, how many nodes are available to a user, what happens in case of oversubscription, etc.), with the proviso that Basic level service requires that
214                                         users be able to conduct meaningful experiments on every OneLab testbed.</p>
215                                         <p align="left">
216                                 Basic level service may also provide access to platforms that are federated with OneLab, but such access depends upon the terms of the federation
217                                 agreements with those platforms, which may require that the user have a higher level of service in order to gain access. For example, Basic level service
218                                 provides access to PlanetLab Europe, a OneLab platform, without providing access to PlanetLab Central, a federated platform. Users wanting full access
219                                 across the global PlanetLab system should contact support@onelab.eu to arrange to enter into a PlanetLab Europe membership agreement.</p>
220                                         <p align="left">OneLab's role is to facilitate access to the platforms. Specifically, it provides each user with:</p>
221                                         <ul>
222                                 <li align="left">
223                                 <strong>a single account,</strong>
224                                 the credentials for which can be used to access all of the OneLab testbeds;
225                                 </li>
226                                 <li align="left">
227                                 <strong>tools through which to access the testbeds</strong>
228                                 , including, notably, a web-based portal (portal.onelab.eu) that allows a user to see the resources available on each testbed and to reserve them,
229                                 along with a number of experiment control tools that a user can employ to deploy an experiment on those resources;
230                                 </li>
231                                 <li align="left">
232                                 <strong>support</strong>
233                                 , with documentation on how to use the tools, pointers to documentation for individual testbeds, and a helpdesk to respond to user questions.
234                                 </li>
235                                         </ul>
236 <p align="left">
237     Additional support, such as accompaniment through the design and deployment of experiments and the interpretation of their results, is available through
238     higher levels of service.
239 </p>
240 <h2 align="left">
241     2.2 Best effort, without guarantees
242 </h2>
243 <p align="left">
244     OneLab and the owners of the individual OneLab testbeds do their best to provide the services outlined here, with the understanding that Basic level
245     service offers no guarantees. Users should clearly understand the following limitations.
246 </p>
247 <ul type="disc">
248     <li>
249         <strong>Reliability:</strong>
250         OneLab does not provide any guarantees with respect to the reliability of the portal, of other tools, or of the individual nodes on platforms. These
251         may be taken down for maintenance, rebooted, or reinstalled at any time. Reinstallation implies that disks are wiped, meaning that users should not
252         consider a local disk to be a persistent form of storage.
253     </li>
254     <li>
255         <strong>Fitness:</strong>
256         OneLab does not guarantee that the platforms are suitable for the experiments that users intend to conduct. There may be limitations in the
257         technologies that are offered that prevent certain types of experiments from being carried out.
258     </li>
259     <li>
260         <strong>Privacy</strong>
261         : OneLab does not guarantee the privacy of traffic generated on the platforms (e.g., wireless signals, packets). Unless otherwise specified by an
262         individual platform owner, users should assume that traffic is monitored and logged. Such monitoring may be done intentionally, for example, to allow
263         platform administrators as well as other users to investigate abuse.
264     </li>
265 </ul>
266 <p align="left">
267     Users who seek such guarantees are invited to consider a higher level of service.
268 </p>
269 <h2 align="left">
270     2.3 Limitedliability
271 </h2>
272 <p align="left">
273     In no event shall the partners of the OneLab consortium be liable to any user for any consequential, incidental, punitive, or lost profit damages, or for
274     any damages arising out of loss of use or loss of data, to the extent that such damages arise out of the activities of OneLab consortium partners, or any
275     breach of the present terms and conditions, even if the consortium partner has been advised of the possibility of such damages.
276 </p>
277 <p align="left">
278     Nothing contained in these terms and conditions shall be deemed as creating any rights or liabilities in or for third parties who are not Basic level users
279     of OneLab.
280 </p>
281 <h1 align="left">
282     3 Acceptable use policy
283 </h1>
284 <h2 align="left">
285     3.1 Responsibilities of managers and standard users
286 </h2>
287 <p align="left">
288     OneLab creates and administers accounts for managers and delegates to managers the responsibility for creating and administering accounts for standard
289     users. Both managers and standard users are required to follow OneLab's acceptable use policy. In addition, managers are fully responsible for the
290     activities of the standard users whose accounts they create.
291 </p>
292 <p align="left">
293     A manager is expected to grant user access only an individual with whom he or she has a working relationship. In general, this means an individual who
294     works for the same institution as the manager, or, in the case of higher education and research, an individual who is a student at the university where the
295     manager works. Managers may also grant access to individuals from other institutions, provided that they are collaborating on a common project on OneLab.
296     If there is a doubt, a manager should refer the question to support@onelab.eu.
297 </p>
298 <h2 align="left">
299     3.2 Types of use
300 </h2>
301 <p align="left">
302     OneLab may be used by enterprise, by scientific researchers, and by educators.
303 </p>
304 <p align="left">
305     OneLab may be used for pre-commercial research and development. In keeping with OneLab's not-for-profit status, it may not be used to deploy services that
306     are designed to generate a commercial profit.
307 </p>
308 <p align="left">
309     Not-for-profit use of OneLab to deploy services that are designed to generate revenue requires prior approval through a written agreement, and thus may not
310     be carried out on a Basic level account. Interested users are invited to contact support@onelab.eu.
311 </p>
312 <p align="left">
313     OneLab may be used for scientific research.
314 </p>
315 <p align="left">
316     OneLab may be used to host lab exercises for university courses.
317 </p>
318 <p align="left">
319     Questions about other types of use should be addressed to support@onelab.eu.
320 </p>
321 <h2 align="left">
322     3.3 Applicable laws and regulations
323 </h2>
324 <p align="left">
325     OneLab is managed, and the portal is hosted, in France. Information regarding the countries in which individual testbeds are managed and hosted is
326     available from those testbeds. Users are responsible for being aware of the countries in which their experiments are deployed and for ensuring that their
327     use of OneLab fully conforms to the laws and regulations of those countries, as well as the laws and regulations of the country in which they themselves
328     are present when conducting their experiments.
329 </p>
330 <p align="left">
331     Above and beyond specific national laws, the activities email spamming, phishing through web services, and all types of Internet fraud are prohibited on
332     OneLab.
333 </p>
334 <h2>
335     3.4 Security and accounting mechanisms
336 </h2>
337 <p align="left">
338     Users are expected to respect the security and accounting mechanisms put in place by OneLab, its platforms, and federated platforms. For example, access to
339     PlanetLab Europe is designed to take place through the SSH cryptographically-secured connection protocol, which uses public/private key pair
340     authentication, and so users should not attempt to bypass this mechanism. As another example, OneLab's notion of a "slice" associates a set of resources
341     with the group of users who have reserved those resources, and users should not attempt to obscure the identities of participants in a slice.
342 </p>
343 <p align="left">
344     Hacking attempts against the OneLab portal and testbeds are not permitted. This includes "red team" (hacker test) experiments.
345 </p>
346 <h2>
347     3.5 Sharing of resources
348 </h2>
349 <p align="left">
350     OneLab is intended for ambitious experiments. Large numbers of resources and extended leases on resources may legitimately be granted in order to carry
351     these out. At the same time, OneLab and its testbeds are shared environments, and when there is contention for resources, limits must be imposed.
352 </p>
353 <p align="left">
354     Each OneLab platform sets its own policies for handling resource contention. As a general rule, users are encouraged to design their experiments to use
355     resources efficiently. In particular, spinning/busy-waiting techniques for extended periods of time are strongly discouraged. Some resource contention
356     policies (e.g., PlanetLab Europe's) terminate the jobs that are using the most resources in the case of contention.
357 </p>
358 <h2>
359     3.6 Internet-connected platforms
360 </h2>
361 <p align="left">
362     Some of OneLab's platforms allow experiments to take place on resources that have access to the public internet. These experiments can potentially generate
363     traffic to, and receive traffic from, any host or router in the internet.<a></a><a id="_anchor_1" href="#_msocom_1" name="_msoanchor_1">[LB1]</a>
364 </p>
365 <p align="left">
366     Furthermore, some internet-connected platforms (e.g., PlanetLab Europe) consist of servers that are hosted by a large number of member institutions.
367 </p>
368 <p align="left">
369     The accessibility of internet-connected platforms and the distributed hosting model of some of these platforms imply certain responsibilities on the part
370     of users, as detailed below.
371 </p>
372 <h3>
373     3.6.1 General guidance
374 </h3>
375 <p align="left">
376     A good litmus test when considering whether an experiment is appropriate for such internet-connected platforms is to ask what the network administrator at
377     one's own organisation would say about the experiment running locally. If the experiment disrupts local activity (e.g., uses more than its share of the
378     site's internet bandwidth) or triggers complaints from remote network administrators (e.g., performs systematic port scans), then it is not appropriate for
379     such internet-connected platforms.
380 </p>
381 <p align="left">
382     It is the responsibility of the user and the user's manager to ensure that an application that will run on an internet-connected platform is tested and
383     debugged in a controlled environment, to better understand its behaviour prior to deployment.
384 </p>
385 <h3>
386     3.6.2 Standards of network etiquette
387 </h3>
388 <p align="left">
389     Internet-connected platforms are designed to support experiments that generate unusual traffic, such as network measurements. However, it is expected that
390     all users adhere to widely accepted standards of network etiquette in an effort to minimise complaints from network administrators. Activities that have
391     been interpreted as worm and denial-of-service attacks in the past (and should be avoided) include sending SYN packets to port 80 on random machines,
392     probing random IP addresses, repeatedly pinging routers, overloading bottleneck links with measurement traffic, and probing a single target machine from
393     many nodes.
394 </p>
395 <p align="left">
396     For internet-connected platforms that have a distributed hosting model, each host institution will have its own acceptable use policy. Users should not
397     knowingly violate such local policies. Conflicts between local policies and OneLab's stated goal of supporting research into wide-area networks should be
398     brought to the attention of OneLab administrators at support@onelab.eu.
399 </p>
400 <h3>
401     3.6.3 Specific network usage rules
402 </h3>
403 <p align="left">
404     It is not allowed to use one or more nodes of an internet-connected platform to generate a high number of network flows or flood a site with high traffic
405     to the point of interfering with its normal operation. Use of congestion-controlled flows for large transfers is highly encouraged.
406 </p>
407 <p align="left">
408     It is not allowed to perform systematic or random port or address block scans from an internet-connected platform.
409 </p>
410 <p align="left">
411     For internet-connected platforms that use a distributed hosting model, it is not allowed to spoof or sniff traffic on a hosted server or on the network the
412     server belongs to.
413 </p>
414 <p align="left">
415     Access to a server on a distributed hosting platform may not be used to gain access to other servers or networked equipment that are not part of the
416     testbed.
417 </p>
418 <h2>
419     3.7 Wireless platforms
420 </h2>
421 <p align="left">
422     Wireless-connected platforms give users access to nodes that communicate via Wi-Fi and other wireless technologies. They may be capable of detecting
423     wireless activity in the neighbourhood of those nodes: traffic generated by other users of the platform or by individuals not associated with the platform.
424     In general, much of the traffic will be encrypted, with certain aspects (such as SSIDs) not encrypted, but it is also possible that there will be fully
425     unencrypted traffic. They may also be capable of generating wireless activity that reaches equipment outside of the testbed.
426 </p>
427 <p align="left">
428     Furthermore, some wireless-connected platforms may have built-in limitations to prevent them from generating signals at a strength that exceeds health and
429     safety regulations.
430 </p>
431 <p align="left">
432     These characteristics of wireless-connected platforms imply certain responsibilities on the part of users, as detailed below.
433 </p>
434 <h3>
435     3.7.1 Specific network usage rules
436 </h3>
437 <p align="left">
438     Experimenters may make no attempt to defeat the encryption of encrypted third-party traffic. Furthermore, experimenters must treat with utmost discretion
439     any unencrypted traffic. Limited metadata can be recorded for the bona fide purposes of an experiment, but under no case should third party communications
440     be recorded.
441 </p>
442 <p align="left">
443     No attempt may be made to reverse engineer traffic in order to learn the identities of the parties who have generated the traffic.
444 </p>
445 <p align="left">
446     Wireless-connected platforms may not be used to gain access to any network equipment that is not part of the testbed itself.
447 </p>
448 <p align="left">
449     It is not allowed to perform systematic or random scans of wireless networks that are not part of a wireless-connected platform. Similarly, it is not
450     allowed to spoof or sniff wireless traffic of the institution that hosts a wireless-connected platform or of other networks in the proximity.
451 </p>
452 <p align="left">
453     Care must be taken so that traffic on wireless-connected platforms does not interfere with the normal functioning of network equipment that is not part of
454     the testbed itself.
455 </p>
456 <p align="left">
457     No attempt may be made to defeat the mechanisms that limit signal strength on wireless-connected platforms.
458 </p>
459 <h2>
460     3.8 Handling suspected violations
461 </h2>
462 <p align="left">
463     Suspected violations of the OneLab acceptable use policy should be reported to support@onelab.eu.
464 </p>
465 <p align="left">
466     Upon notification or detection of a possible violation, OneLab management will attempt to understand if a violation has in fact occurred. To do so,
467     management will freely communicate with the users concerned, the operators of the platforms concerned, as well as any third parties that might be involved.
468     An example of a third party is a network operator who detects what they believe to be unauthorized traffic emanating from a OneLab platform.
469 </p>
470 <p align="left">
471     The priority is to resolve any real or apparent violations amicably. However, if OneLab management believes that a violation may have occurred, it can, at
472     its sole discretion, and without prior notice, apply any of the following measures:
473 </p>
474 <ul type="disc">
475     <li>
476         notification of the users of the concerned slice (set of resources);
477     </li>
478     <li>
479         disabling of the concerned slice;
480     </li>
481     <li>
482         disabling an individual user's account;
483     </li>
484     <li>
485         reporting of the user's activity to his/her manager;
486     </li>
487     <li>
488         disabling of the manager's account and all user accounts for which the manager is responsible;
489     </li>
490     <li>
491         disabling of all accounts associated with the user's institution.
492     </li>
493 </ul>
494 <p align="left">
495     In the case of suspected illegal activity, OneLab management might need, without prior notice, to notify the relevant authorities.
496 </p>
497
498                                 </div>
499                                 <div class="modal-footer">
500                                         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
501                                 </div>
502                         </div>
503                         </div>
504 </div>
505
506     
507 <script>
508 $(document).ready(function(){
509     var availableTags = [
510     {% if authorities %}
511         {% for authority in authorities %}
512             {% if authority.name %}
513                 {value:"{{ authority.authority_hrn }}",label:"{{authority.name}}"},
514                         // show hrn if we don't have the name
515             {% else %}
516                 {value:"{{ authority.authority_hrn }}",label:"{{authority.authority_hrn}}"},
517             {% endif %}
518         {% endfor %}    
519     {% else %}
520         {value:"",label:"No authority found !!!"}
521     {% endif %}
522     ];
523         // sorting the list
524     
525         availableTags.sort(function(a,b){
526                 var nameA=a.value.toLowerCase(), nameB=b.value.toLowerCase();
527                 if (nameA < nameB) {
528                 return -1;
529                 }
530                 if (nameA > nameB) {
531                 return 1;
532                 }
533         return 0;
534         }); 
535         // auto-complete the form
536     jQuery("#org_name").combobox();
537         $('[title!=""]').qtip();
538         $("form").validate();
539         $("form").submit(function() {
540                 if ($('select option:selected').val() == 'upload') {
541                         if ($('input[name=user_public_key]').val() == '') {
542                                 alert('Please specify the key file to upload');
543                                 return false;
544                         }
545                 }
546         });
547 });
548 </script>
549 {% endblock %}
550