mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-24 01:49:15 -04:00
This takes the original prototype version of this page, and, using the same fake data (ie nothing is wired up): - adds an invite users page - adds an edit (and delete) user page Both these pages allow the user to set another user’s permissions. This commit adds images for the ticks and crosses, so we have control over their appearance.
37 lines
945 B
Python
37 lines
945 B
Python
from flask import render_template, url_for, redirect
|
|
from app.main import main
|
|
from flask_login import login_required
|
|
|
|
from flask.ext.login import current_user
|
|
|
|
|
|
@main.route('/')
|
|
def index():
|
|
if current_user and current_user.is_authenticated():
|
|
return redirect(url_for('main.choose_service'))
|
|
return render_template('views/signedout.html')
|
|
|
|
|
|
@main.route("/register-from-invite")
|
|
@login_required
|
|
def register_from_invite():
|
|
return render_template('views/register-from-invite.html')
|
|
|
|
|
|
@main.route("/verify-mobile")
|
|
@login_required
|
|
def verify_mobile():
|
|
return render_template('views/verify-mobile.html')
|
|
|
|
|
|
@main.route("/services/<service_id>/send-email")
|
|
@login_required
|
|
def send_email(service_id):
|
|
return render_template('views/send-email.html', service_id=service_id)
|
|
|
|
|
|
@main.route("/services/<service_id>/check-email")
|
|
@login_required
|
|
def check_email(service_id):
|
|
return render_template('views/check-email.html')
|