Move all pages into their own directory

There are a lot of pages. It seems like a good idea to keep them in one place,
so they don’t get mixed up with partials and layouts.
This commit is contained in:
Chris Hill-Scott
2015-12-10 14:38:24 +00:00
parent 01c5bf5190
commit 2f980ab622
33 changed files with 29 additions and 29 deletions

View File

@@ -6,126 +6,126 @@ from app.main import main
@main.route('/')
def index():
return render_template('signedout.html')
return render_template('views/signedout.html')
@main.route("/govuk")
def govuk():
return render_template('govuk_template.html')
return render_template('views/govuk_template.html')
@main.route("/register-from-invite")
def registerfrominvite():
return render_template('register-from-invite.html')
return render_template('views/register-from-invite.html')
@main.route("/verify-mobile")
def verifymobile():
return render_template('verify-mobile.html')
return render_template('views/verify-mobile.html')
@main.route("/text-not-received-2")
def textnotreceived2():
return render_template('text-not-received-2.html')
return render_template('views/text-not-received-2.html')
@main.route("/dashboard")
@login_required
def dashboard():
return render_template('dashboard.html')
return render_template('views/dashboard.html')
@main.route("/add-service")
@login_required
def addservice():
return render_template('add-service.html')
return render_template('views/add-service.html')
@main.route("/send-sms")
def sendsms():
return render_template('send-sms.html')
return render_template('views/send-sms.html')
@main.route("/check-sms")
def checksms():
return render_template('check-sms.html')
return render_template('views/check-sms.html')
@main.route("/email-not-received")
def emailnotreceived():
return render_template('email-not-received.html')
return render_template('views/email-not-received.html')
@main.route("/text-not-received")
def textnotreceived():
return render_template('text-not-received.html')
return render_template('views/text-not-received.html')
@main.route("/send-email")
def sendemail():
return render_template('send-email.html')
return render_template('views/send-email.html')
@main.route("/check-email")
def checkemail():
return render_template('check-email.html')
return render_template('views/check-email.html')
@main.route("/jobs")
def showjobs():
return render_template('jobs.html')
return render_template('views/jobs.html')
@main.route("/jobs/job")
def showjob():
return render_template('job.html')
return render_template('views/job.html')
@main.route("/jobs/job/notification")
def shownotification():
return render_template('notification.html')
return render_template('views/notification.html')
@main.route("/forgot-password")
def forgotpassword():
return render_template('forgot-password.html')
return render_template('views/forgot-password.html')
@main.route("/new-password")
def newpassword():
return render_template('new-password.html')
return render_template('views/new-password.html')
@main.route("/user-profile")
def userprofile():
return render_template('user-profile.html')
return render_template('views/user-profile.html')
@main.route("/manage-users")
def manageusers():
return render_template('manage-users.html')
return render_template('views/manage-users.html')
@main.route("/service-settings")
def servicesettings():
return render_template('service-settings.html')
return render_template('views/service-settings.html')
@main.route("/api-keys")
def apikeys():
return render_template('api-keys.html')
return render_template('views/api-keys.html')
@main.route("/verification-not-received")
def verificationnotreceived():
return render_template('verification-not-received.html')
return render_template('views/verification-not-received.html')
@main.route("/manage-templates")
def managetemplates():
return render_template('manage-templates.html')
return render_template('views/manage-templates.html')
@main.route("/edit-template")
def edittemplate():
return render_template('edit-template.html')
return render_template('views/edit-template.html')

View File

@@ -14,7 +14,7 @@ from app.models import User
@main.route("/register", methods=['GET'])
def render_register():
return render_template('register.html', form=RegisterUserForm())
return render_template('views/register.html', form=RegisterUserForm())
@main.route('/register', methods=['POST'])

View File

@@ -11,7 +11,7 @@ from app.main.views import send_sms_code
@main.route("/sign-in", methods=(['GET']))
def render_sign_in():
return render_template('signin.html', form=LoginForm())
return render_template('views/signin.html', form=LoginForm())
@main.route('/sign-in', methods=(['POST']))

View File

@@ -8,7 +8,7 @@ from app.main.forms import TwoFactorForm
@main.route("/two-factor", methods=['GET'])
def render_two_factor():
return render_template('two-factor.html', form=TwoFactorForm())
return render_template('views/two-factor.html', form=TwoFactorForm())
@main.route('/two-factor', methods=['POST'])

View File

@@ -8,7 +8,7 @@ from app.main.forms import VerifyForm
@main.route('/verify', methods=['GET'])
def render_verify():
return render_template('verify.html', form=VerifyForm())
return render_template('views/verify.html', form=VerifyForm())
@main.route('/verify', methods=['POST'])