SignUp.html 7.07 KB
Newer Older
1
<html class="gr__rc_uab_edu">
2
3
4
5
<title>User Registration </title>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.min.js"></script>
6
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
7
<script src="{{ url_for('static', filename='scripts/function.js') }}"></script>
8
9

<script>
10
    console.info('Room ID: {{ room_id }}');
11
12
    var socket = io.connect('http://' + document.domain + ':' + location.port);

13
    socket.on( 'connect', function() {
14
        autofill_form("{{ username }}", "{{ fullname }}", "{{ email }}");
15
16
17
        socket.emit( 'join_room', {
            referrer: '{{ referrer }}'
        });
18

19
        socket.on( 'creating account', function( msg ) {
20
           document.getElementById("error").innerText = "";
root's avatar
root committed
21
           displayloading2();
22
        });
23

24
        socket.on( 'account ready', function( msg ) {
root's avatar
root committed
25
          $('#myModal2').modal('hide');
26
27
          window.location.replace('{{ referrer }}');
        });
28

root's avatar
root committed
29
        socket.on( 'account error', function( msg ) {
30
31
32
          console.log(msg);
          $('#myModal2').modal('hide'); 
          window.location.replace('/register/error_account');
33
        });
34

35
    });
36
37
</script>

38
39
40
41
  <style type="text/css">
    .important { color: #336699; }
  </style>
    <link rel="shortcut icon" type="image/x-icon" href="/public/favicon.ico">
42
43
<link rel="stylesheet" media="all" href="{{ url_for('static', filename='style/application.css') }}">
<link rel="stylesheet" media="all" href="{{ url_for('static', filename='style/app2.css') }}">
44
45
46
47
48

<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.navbar-inverse {
  background-color: rgb(0,99,65);
Krish Moodbidri's avatar
Krish Moodbidri committed
49
50
51

button{
  margin: 13px;
52
53
54
}

</style>
55
</head>
56
57


58
59
60
61
62
63
<body data-gr-c-s-loaded="true">
<header>
  <nav class="navbar navbar-inverse navbar-static-top">
    <div class="container-fluid">
      <div class="navbar-header">
	<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-9" aria-expanded="false"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
root's avatar
root committed
64
	<a class="navbar-brand" href="/"> UAB Research Computing</a>
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
      </div>
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-9">
	<ul class="nav navbar-nav">

	</ul>
	<div class="navbar-right">
	  <ul class="nav navbar-nav">
	    <li>
	    <a target="_blank" href="https://docs.uabgrid.uab.edu/wiki/Cheaha_GettingStarted">
	      <i class="fas fa-info-circle fa-fw"></i> Online Documentation
	    </a></li>
	    <li>
	  </li></ul>
	</div>
      </div>
80
81
82
    </div>
  </nav>
</header>
83
<div class="container content" role="main" style="width: 85%">
84

85
    <div style="position:relative;">
86
  <img alt="logo" height="auto" width="15%" style="margin-bottom: 20px" src="{{ url_for('static', filename='img/logo_svg.svg') }}">
87
88
89
90
  <a href="https://tinyurl.com/cheahaAL" target="_blank">
    <div style="float:left;position:absolute;display:block;left:310px;top:-6px;padding:10px 20px;"> </div>
  </a>
</div>
91

92
93
94
<!--   <h2>Hello, <span id="username">{{ user }}</span>!</h2> -->

    <h2>Hi, </h2>
root's avatar
root committed
95
    <p> Welcome to UAB's Reseach Computing cluster. The information below will be used to create your account. Please fill in all the details as this helps us understand our user base. Contact support@listserv.uab.edu for any assistance in creating your account.  </p>    <div id="user-input">
96
97
    
    <form id="signup" data-toggle="validator" role="form" action="." method="post" onsubmit="">
98
       <div class="col-md-7 col-sm-7 my-col">
99
100
101
          <label for="username" class="control-label">Blazer Id:</label>&#9;<input id="username" class="form-control"
                                                             placeholder="Enter Username" required><br>
      </div>
102
         <div class="col-md-7 col-sm-7 my-col">
103
104
105
          <label for="fullname" class="control-label">Full Name:</label>&#9;<input id="fullname" class="form-control"
                                                             placeholder="Enter Full Name" required><br>
        </div>
106
         <div class="col-md-7 col-sm-7 my-col">
107
108
109
          <label for="email" class="control-label">Email:</label>&#9;<input id="email" class="form-control"
                                                      placeholder="Enter Email" required><br>
        </div>
110
         <div class="col-md-7 col-sm-7 my-col">
111
112
113
114
          <label for="reason" class="control-label">Reason for Requesting Account:</label><br>
            <textarea class="form-control" id="reason" name="reason" placeholder="Enter Reason for Account Request" required></textarea>
        </div>

115
116
<br>
 <div class="col-md-7 col-sm-7 my-col">
Krish Moodbidri's avatar
Krish Moodbidri committed
117
118
119
        <button class="btn btn-danger btn-md" id="cancel" name="cancel" type="button" onClick="location.href='https://docs.uabgrid.uab.edu/wiki/cheaha'">Cancel</button>
        <button class="btn btn-primary btn-md"  id="submit" name="submit" type="button" value="Submit" onclick="displayloading1()"> Create Account</button>
</div>
120
121
    </form>
    </div>
122
    </div>
123

root's avatar
root committed
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141

    <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title" id="myModalLabel">Account Request Received!</h4>
                </div>
                <div class="modal-body">
                    <span>Communicating this information to the server</span>
                    <img src="{{ url_for('static', filename='img/loading.gif') }}" width="40px">
                </div>
            </div>
        </div>
    </div>



    <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false">
142
143
144
145
146
147
148
149
150
151
152
153
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title" id="myModalLabel">Account Request Received!</h4>
                </div>
                <div class="modal-body">
                    <span>Please wait while we create your account. This may take up to 5-10 minutes.</span>
                    <img src="{{ url_for('static', filename='img/loading.gif') }}" width="40px">
                </div>
            </div>
        </div>
    </div>
154
<footer>
155
156
157
158
  <div class="container-fluid">
    <div class="row">
      <div class="col-md-6 col-sm-6">
	    <a href="https://osc.github.io/Open-OnDemand/">
159
	      <img class="footer-logo" alt="Powered by Open OnDemand" height="40" style="margin-bottom: 20px" src="{{ url_for('static', filename='img/OpenOnDemand_powered_by_RGB-cb3aad5ff5350c7994f250fb334ddcc72e343233ce99eb71fda93beddd76a847.svg') }}">
160
161
162
163
        </a>
      </div>
    </div>
  </div><!-- /.container -->
164
</footer>
165
</body>
166
</html>