Commit 0c26a912 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Merge branch 'feat-self-reg-page-checkbox' into 'master'

added checkboxes to account create page

See merge request rc/self-reg-form!44
parents d15bc9fa f41df1c3
...@@ -95,13 +95,11 @@ ...@@ -95,13 +95,11 @@
<label for="reason" class="control-label">Reason for Requesting Account:</label><br> <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> <textarea class="form-control" id="reason" name="reason" placeholder="Enter Reason for Account Request" required></textarea>
</div> </div>
<br> <div class="col-md-10 col-sm-10 my-col">
<div class="col-md-7 col-sm-7 my-col"> <br><input class="checks" id ="agree1" type="checkbox" name="agree" value="agree" onchange= check() /> I have read & accept UAB IT's <a href="https://secure2.compliancebridge.com/uab/public/index.php?fuseaction=print.preview&docID=786" target="_blank">Acceptable Use Policy</a> and <a href="https://www.uab.edu/it/home/policies/data-classification/classification-overview" target="_blank">Data Classification Policy</a><br/>
<!-- <input class="checks" id ="agree2" type="checkbox" name="agree" value="agree" onchange= check() /> I also understand that it is my responsibility to follow all relevant <a href="https://www.uab.edu/it/home/policies" target="_blank">IT policies</a> when using this resource.<br/>
<br><input class="checks" id ="agree" type="checkbox" name="agree" value="agree" onchange= check() />Agree to proceed<br/>
--!>
<button class="btn btn-danger btn-md" id="cancel" name="cancel" type="button" onClick="renderDom('Account Creation Cancelled','{{ cancel_msg |safe }}', null)">Cancel</button> <button class="btn btn-danger btn-md" id="cancel" name="cancel" type="button" onClick="renderDom('Account Creation Cancelled','{{ cancel_msg |safe }}', null)">Cancel</button>
<button class="btn btn-primary btn-md" id="submit" name="submit" type="button" value="Submit" onclick="displayloading1();request_account()"> Create Account</button> <button class="btn btn-primary btn-md" disabled id="submit" name="submit" type="button" value="Submit" onclick="displayloading1();request_account()"> Create Account</button>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -72,13 +72,14 @@ def celery_create_account(json, session): ...@@ -72,13 +72,14 @@ def celery_create_account(json, session):
email= json['email'] email= json['email']
fullname= json['fullname'] fullname= json['fullname']
reason= json['reason'] reason= json['reason']
# aup= json['aup']
queuename= rc_util.encode_name(username) queuename= rc_util.encode_name(username)
updated_by= f'{username}'
host= vars.app_host
print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue') print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue')
send_msg('creating account', room) send_msg('creating account', room)
print(username) print(username)
rc_util.add_account(username, queuename, email, fullname, reason) rc_util.add_account(username, queuename, email, fullname, reason, updated_by, host)
print('sent account info') print('sent account info')
print('Waiting for completion...') print('Waiting for completion...')
rc_util.consume(queuename, routing_key=f'complete.{queuename}', callback=gen_f(room)) rc_util.consume(queuename, routing_key=f'complete.{queuename}', callback=gen_f(room))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment