Initial commit

This commit is contained in:
binaryatrocity committed 2014-05-14 00:03:13 -05:00
commit 845d5dd3ed
47 files changed
+25143

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
{% macro render_field_with_label(field) %}
{% set css_class=kwargs.pop('class', '') %}
<span class="uk-text-small uk-text-bold">{{ field.label }}:</span>
<div class="uk-form-row pc-form-row">{{ field(class=css_class, **kwargs)|safe }}</div>
{% endmacro %}
{% macro render_field_with_label_oneline(field) %}
{% set css_class=kwargs.pop('class', '') %}
<div class="uk-form-row">{{field.label}} {{field(class=css_class, **kwargs)|safe }}</div>
{% endmacro %}
{% macro render_field(field) %}
<div class="uk-form-row">{{ field(class=css_class, **kwargs)|safe }}</div>
{% endmacro %}
+84
View File
@@ -0,0 +1,84 @@
{% extends "layout.html" %}
{% block title %}Confirming purchase - packetcrypt{% endblock %}
{% block content %}
<div id="form-container" class="uk-width-1-2 uk-panel uk-panel-box uk-container-center">
<h2>Invoice Created</h2>
Please send {{ invoice.total_btc - invoice.value_paid}} BTC to: <a href="bitcoin:{{invoice.address}}?amount={{invoice.total_btc}}">{{ invoice.address }}</a>
<br/><br/>
<img src="https://chart.googleapis.com/chart?cht=qr&chs=300x300&chl=bitcoin:{{invoice.address}}?amount={{invoice.total_btc}}&callback=?" id="btc_qr" />
<button class="uk-button uk-button-primary uk-button-expand" id="confirm">Confirm Payment <i class="uk-icon-spinner"></i></button>
<form action="{{url_for('confirm_purchase', invoice_id=invoice.id)}}" method="POST" name="delete_ticket" style="width:100%;">
<button type="submit" class="uk-button uk-button-expand" id="cancel">Cancel Payment</button>
</form>
</div>
<div id="modal" class="uk-modal">
<div class="uk-modal-dialog uk-modal-dialog-slide">
<a class="uk-modal-close uk-close"></a>
<h1>Thank you!</h1>
<p>Your payment of <label id="valuepaid"></label> <i class="uk-icon-btc"></i> has been confirmed.</p>
<p id="paid">Your VPN service is being configured and should be available from your dashboard in the next 5-10 minutes.</p>
<p id="notpaid">
However, this does not cover the total cost for your PacketCrypt service.
Please send <label id="remaining"></label> <i class="uk-icon-btc"></i> to: <a id="btcaddy" >{{invoice.address}}</a>
</p>
<p>Transaction: <a id="hashlink"></a></p>
<a class="uk-button uk-button-success uk-button-expand" href="{{url_for('dashboard')}}">Return to Dashboard</a>
</div>
</div>
{% endblock %}
{% block postscript %}
<script>
var amountPaidOnLoad = {{invoice.value_paid}};
$(document).ready(function(){
var confirmButton = $('#confirm');
var cancelButton = $('#cancel');
confirmButton.click(checkPayment);
checkPayment();
});
var checkPayment = function (arg){
$('#confirm > i').addClass('uk-icon-spin');
$.post('/invoice_status', {
invoice_id: {{invoice.id}}
}).done(function(d){
var paidInFull = (d['value_paid'] >= d['total_btc']);
var transactionHash = d['input_transaction_hash'];
var confirmations = d['confirmations'];
window.setTimeout(stopSpin, 3500);
if(confirmations == null || amountPaidOnLoad == d['value_paid']){
//$('#flash-wrapper').children(":first").append("<div class='uk-alert uk-alert-warning' data-uk-alert><a class='uk-alert-close uk-close'></a>Unable to confirm payment. Wait a few seconds and try again.</div>");
window.setTimeout(checkPayment, 10000);
} else {
// Setup the modal before display
var priceLeft = (d['total_btc'] - d['value_paid']);
var btcLink = "bitcoin:{{invoice.address}}?amount="+priceLeft;
var hashLink = "https://blockchain.info/tx/"+transactionHash;
$('#valuepaid').html(d['value_paid']);
$('#remaining').html(d['total_btc'] - d['value_paid']);
(paidInFull) ? $('#notpaid').css('display', 'none') : $('#paid').css('display', 'none');
$('#btcaddy').attr('href', btcLink);
$('#hashlink').attr('href', hashLink).html(transactionHash);
// Display teh modal
var modal = new $.UIkit.modal.Modal('#modal');
modal.show();
}
}).fail(function(){
$('#flash-wrapper').children(":first").append("<div class='uk-alert uk-alert-danger' data-uk-alert><a href='' class='uk-alert-close uk-close'></a>An error occured while trying to confirm your payment.</div>");
});
};
var stopSpin = function (arg){
$('#confirm > i').removeClass('uk-icon-spin');
};
</script>
{% endblock %}
+130
View File
@@ -0,0 +1,130 @@
{% extends "layout.html" %}
{% block title %} Dashboard - packetcrypt {% endblock %}
{% block content %}
<div class="uk-container-center" id="pc-dashboard-wrapper">
<div class="uk-grid">
<div class="uk-width-1-1">
<h4 class="uk-float-right">Hello, {{ user.email }}!</h4>
<br/>
</div>
<div class="uk-width-1-2">
<div class="uk-panel">
<h2 class="uk-panel-title">Account Information <i class="uk-icon-user"></i> </h2>
<ul>
<li>Email Address: {{ user.email }}</li>
<li>Last Payment Date: {{ lastpaid }}</li>
<li>Plan Expires: {{ expires }}</li>
<li>Number of Support Tickets: {{ user.tickets.all() | length }} </li>
<li class="uk-text-muted">Traffic This Month: 000Mb (00%)</li>
<li class="uk-text-muted">Number of Referred Signups: 0</li>
</ul>
</div>
</div>
<div class="uk-width-1-2">
<div class="uk-panel uk-panel-box uk-panel-box-secondary">
<h2 class="uk-panel-title">Controls <i class="uk-icon-cogs uk-float-right"></i> </h2>
<hr class="uk-panel-divider">
<ul class="uk-nav">
<li><a href="">Logout</a></li>
<li><a href="">Change Password</a></li>
<li><a href="{{ url_for('newticket') }}">Open Support Ticket</a></li>
</ul>
<div class="uk-panel" style="margin-top:1em;">
{% if latest %}
<a href="{{url_for('purchase')}}" class="uk-button uk-button-success uk-align-left uk-button-small">Renew</a>
{% else %}
<a href="{{url_for('purchase')}}" class="uk-button uk-button-success uk-align-left uk-button-small">Purchase</a>
{% endif %}
<div class="uk-button-group uk-align-right" style="">
<button class="uk-button uk-button-disabled uk-button-small" type="submit"><i class="uk-icon-folder-open-alt"></i> Download</button>
<div data-uk-dropdown>
<a href="" class="uk-button uk-button-small"><i class="uk-icon-caret-down"></i></a>
<div class="uk-dropdown uk-dropdown-small">
<ul class="uk-nav uk-nav-dropdown">
<li><a href="">Windows</a></li>
<li><a href="">OSX</a></li>
<li><a href="">Android</a></li>
<li><a href="">iOS</a></li>
</ul>
</div>
</div>
</div> <!-- end button-group -->
</div>
</div>
</div>
<div class="uk-width-1-1">
<table class="uk-table uk-table-hover uk-table-striped">
<caption>Support Tickets <div class="uk-badge" style="margin-left:1em;">{{ g.user.tickets.all() | length }}</div></caption>
<thead>
<tr><th>Date</th><th>Subject</th><th>Status</th><th>Last Updated</th></tr>
</thead>
<tbody>
{% if g.user.tickets.all() %}
{% for ticket in g.user.tickets.all() %}
<tr class="ticket-row">
<td>{{ ticket.timestamp |date }}</td>
<td><a href="{{ url_for('viewticket', tid=ticket.id) }}"></a>{{ ticket.subject }}</td>
<td>N/A</td>
<td>N/A</td>
</tr>
{% endfor %}
{% else %}
<tr><td>You have no support ticket history</td><td></td><td></td><td></td></tr>
{% endif %}
</tbody>
</table>
<br/><br/>
<table class="uk-table uk-table-hover uk-table-striped">
<caption>Invoices <div class="uk-badge uk-badge-danger" style="margin-left:1em;">{{ g.user.invoices.all() | length }}</div></caption>
<thead>
<tr><th>Date Paid</th><th>Amount Paid</th><th>Payment Address</th><th>Confirmed</th></tr>
</thead>
<tbody>
{% if g.user.invoices.all() %}
{% for invoice in g.user.invoices.all() %}
<tr class="invoice-row">
{% if invoice.datepaid %}
<td>{{invoice.datepaid | date}}</td>
{% else %}
<td>Unpaid</td>
{% endif %}
<td>{{invoice.value_paid}}</td>
<td>{{invoice.address}}</td>
{% if invoice.is_confirmed %}
<td><a href="{{url_for('confirm_purchase', invoice_id=invoice.id)}}"><i class="uk-icon-ok"></i></a></td>
{% else %}
{% if invoice.paid %}
<td><a href="{{url_for('confirm_purchase', invoice_id=invoice.id)}}"><i class="uk-icon-ban-circle"></i></a></td>
{% else %}
<td><a href="{{url_for('confirm_purchase', invoice_id=invoice.id)}}" class="uk-button">Pay <i class="uk-icon-btc"></i></a></td>
{% endif %}
{% endif %}
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}
{% block postscript %}
<script type="text/javascript">
$(window).load(function(){
$(".ticket-row").click(function(){
var tid = $(this).find("a").attr("href");
window.location = tid
});
$(".invoice-row").click(function(){
var invoice_id = $(this).find("a").attr("href");
window.location = invoice_id
});
});
</script>
{% endblock %}
+26
View File
@@ -0,0 +1,26 @@
{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_label, render_field %}
{% block title %}Update Support Ticket - packetcrypt{% endblock %}
{% block flash %}
{% for field in form.errors %}
{% for error in form.errors[field] %}
<div class="uk-alert uk-alert-danger" data-uk-alert><a href="" class="uk-alert-close uk-close"></a>{{ field }}: {{ error }}</div>
{% endfor %}
{% endfor %}
{% endblock %}
{% block content %}
<div id="form-container" class="uk-width-1-2 uk-panel uk-panel-box uk-container-center">
<form action="{{ url_for('editticket', tid=ticket.id) }}" method="POST" name="form" class="uk-form" style="width:100%">
{{ form.hidden_tag() }}
{{ render_field_with_label(form.subject) }}
{{ render_field_with_label(form.body) }}
<div class="uk-form-row">
<button class="uk-button uk-button-success" type="submit">Update Ticket</button>
<a href="{{url_for('dashboard')}}" class="uk-button uk-button-primary">Close</a>
<a href="{{url_for('deleteticket', tid=ticket.id)}}" class="uk-button uk-button-danger">Delete Ticket</a>
</div>
</form>
</div>
{% endblock %}
+9
View File
@@ -0,0 +1,9 @@
{% extends "layout.html" %}
{% block content %}
<div id="form-container" class="uk-width-1-4 uk-panel uk-panel-box uk-container-center">
<h1> The file was not found and/or an unexpected error occurred.</h1>
<p>The administrator has been notified. Sorry for the inconvenience!</p>
<p><a href="{{url_for('index')}}" class="uk-button">Back</a></p>
</div>
{% endblock %}
+88
View File
@@ -0,0 +1,88 @@
{% extends "layout.html" %}
{% block title %}PacketCrypt - Secure, anonymous VPN service for humans{% endblock %}
{% block content %}
<div class="uk-grid">
<div class="uk-width-1-1">
<div class="uk-panel uk-container-center pc-market-block uk-text-center">
<h1>We handle the security, you browse the web.</h1>
<span class="uk-text-large">
PacketCrypt offers the the quickest way available to keep your web traffic safe.
We follow financial industry standards to ensure your data is protected no matter where you're grabbing a connection.
PacketCrypt makes it simple to encrypt your internet trafic and go about your day.
</span>
<div id="tech-images">
<img src={{ url_for('static', filename='img/windows.png') }} />
<img src={{ url_for('static', filename='img/openvpn.png') }} />
<img src={{ url_for('static', filename='img/android.png') }} />
<img src={{ url_for('static', filename='img/ios.png') }} />
<img src={{ url_for('static', filename='img/osx.png') }} />
</div>
</div>
</div>
<div class="uk-width-1-1">
<div id="three-fold-container" class="uk-container-center">
<div class="uk-grid" data-uk-grid-match="{target:'.uk-panel'}">
<div class="uk-width-large-1-3 uk-width-medium-1-1">
<div class="uk-panel uk-panel-box uk-panel-box-primary">
<h3 class="uk-panel-title uk-text-center"><i class="uk-icon-lock uk-icon-large"></i> Secure</h3>
We don't take chances with your data or ours.
All of PacketCrypt's services rely on OpenVPN, open source security software trusted by over 5 million users.
Run on the safest platform in the world: FreeBSD. Our servers are stable and secured to make sure we're always there for you.
</div>
</div>
<div class="uk-width-large-1-3 uk-width-medium-1-1">
<div class="uk-panel uk-panel-box uk-panel-box-primary">
<h3 class="uk-panel-title uk-text-center"><i class="uk-icon-download-alt uk-icon-large"></i> Fast</h3>
Unlike other anonymous VPN providers, you don't have to sacrifice speed for safety with PacketCrypt.
All of our servers worldwide are on a Gigabit pipeline, so you can download as fast as your local connection can handle.
Stream movies or download large files fast, and without leaving a trace.
</div>
</div>
<div class="uk-width-large-1-3 uk-width-medium-1-1">
<div class="uk-panel uk-panel-box uk-panel-box-primary">
<h3 class="uk-panel-title uk-text-center"><i class="uk-icon-group uk-icon-large"></i> Anonymous</h3>
The first rule of security is <em>Trust No One</em>, and that includes us.
PacketCrypt keeps no logs, and doesn't track your login sessions.
You pay us in Bitcoin and all we ask for is an email address.
Not only does PacketCrypt protect you from the rest of the internet, we protect you from ourselves.
</div>
</div>
</div>
</div>
</div>
<div class="uk-width-1-1">
<div id="two-fold-container" class="uk-container-center">
<div class="uk-grid" data-uk-grid-match="{target:'.uk-panel'}">
<div class="uk-width-1-3">
<div class="uk-panel uk-align-left uk-text-center">
<h2>Sign Up Now!</h2>
<ul class="uk-list uk-list-striped">
<li>No personal information required</li>
<li>Only <strong id="btcprice">0</strong><i class="uk-icon-btc"></i> BTC</li>
<li>Supports all major platforms</li>
<li>Unthrottled Gigabit connection</li>
<li>1000Gb of transfer per month!</li>
</ul>
</div>
</div>
<div class="uk-width-2-3">
<div class="uk-panel">
<h2>Getting started is easy:</h2>
<p>
All you need to register is an email address! Bitcoin transactions are processed instantly,
and your access will be available within 10 minutes of purchase. Use our custom VPN client
for an install-and-go experience or download your client key and use the tools you're
familiar with! Click below to sign up for an account and let Packetcrypt secure your web traffic.
</p>
</span>
<a href="{{url_for('purchase')}}" class="uk-button uk-button-primary uk-button-large uk-align-right">Buy Now!</a>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
+66
View File
@@ -0,0 +1,66 @@
<html>
<head>
<!-- Stylesheets -->
<link rel="stylesheet" href="{{ url_for('static', filename='lib/uikit/css/uikit.gradient.min.css') }}" />
<link rel="stylesheet" href="{{ url_for('static', filename='css/app.css') }}" />
<!-- Javascript -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="{{ url_for('static', filename='lib/uikit/js/uikit.min.js') }}"></script>
<title>{% block title %}{% endblock %}</title>
</head>
<body>
<div id="container" class="uk-grid">
<div id="big-top-bar" class="uk-width-1-1">
<div id="top-bar" class="">
<div class="uk-float-left"><img src="http://placehold.it/250x65" /></div>
<div class="uk-float-right uk-button-group">
<a class="uk-button" href="{{ url_for('index') }}">Home</a>
<a class="uk-button" href=" {{ url_for('blog') }}">Blog</a>
{% if g.user.is_authenticated() %}
<a class="uk-button uk-button-success" href="{{ url_for_security('logout') }}">Logoff</a>
<a class="uk-button uk-button-primary" href=" {{ url_for('dashboard') }}">Dashboard</a>
{% else %}
<a class="uk-button uk-button-success" href="{{ url_for_security('login') }}">Login</a>
<a class="uk-button uk-button-primary" href="{{ url_for_security('register') }}">Signup</a>
{% endif %}
{% if g.user.has_role('Admin') %}
<a class="uk-button uk-button-danger" href="/admin/">Admin Panel</a>
{% endif %}
</div>
</div>
<a href="http://bitcoin.org"><img id="bitcoin-logo" src="{{ url_for('static', filename='img/bitcoins.png') }}" /></a>
</div>
<div id="flash-wrapper" class="uk-width-1-1">
<div class="uk-panel uk-width-1-2 uk-container-center">
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
<div class="uk-alert uk-alert-success" data-uk-alert><a href="" class="uk-alert-close uk-close"></a>{{ message }}</div>
{% endfor %}
{% endif %}
{% block flash %}{% endblock %}
{% endwith %}
</div>
</div>
<div id="content" class="uk-width-1-1">
{% block content %}{% endblock %}
</div>
<div id="footer" class="uk-width-1-1">
<hr/>
<div class="uk-float-left">
&copy; 2013 PacketCrypt, Inc. All Rights Reserved. PacketCrypt&trade; is property of PacketCrypt, Inc.<br/> All other marks are the property of their respective owners.
<br />
<a href="">Terms</a> | <a href="">Privacy Policy</a> | <a href="">Contact us</a>
</div>
<div class="uk-float-right" id="footer-social">
<img src="{{ url_for('static', filename='img/reddit.png') }}"/>
<img src="{{ url_for('static', filename='img/twitter.png') }}"/>
<img src="{{ url_for('static', filename='img/facebook.png') }}"/>
</div>
</div>
</div>
{% block postscript %}{% endblock %}
</body>
</html>
+26
View File
@@ -0,0 +1,26 @@
{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_label, render_field %}
{% block title %}Create Support Ticket - packetcrypt{% endblock %}
{% block flash %}
{% for field in form.errors %}
{% for error in form.errors[field] %}
<div class="uk-alert uk-alert-danger" data-uk-alert><a href="" class="uk-alert-close uk-close"></a>{{ field }}: {{ error }}</div>
{% endfor %}
{% endfor %}
{% endblock %}
{% block content %}
<div id="form-container" class="uk-width-1-2 uk-panel uk-panel-box uk-container-center">
<form action="{{ url_for('newticket') }}" method="POST" name="form" class="uk-form" style="width:100%;">
{{ form.hidden_tag() }}
{{ render_field_with_label(form.subject) }}
{{ render_field_with_label(form.body) }}
<div class="uk-form-row">
<button class="uk-button uk-button-primary" type="Submit">Create Ticket</button>
<button class="uk-button uk-button-danger" type="reset">Reset</button>
<a class="uk-button" href="{{ url_for('dashboard') }}">Cancel</a>
</div>
</form>
</div>
{% endblock %}
+24
View File
@@ -0,0 +1,24 @@
{% extends "layout.html" %}
{% block title %}Purchase VPN Service Now - packetcrypt{% endblock %}
{% block content %}
<div id="form-container" class="uk-width-1-2 uk-panel uk-panel-box uk-container-center">
<h4>Purchase PacketCrypt VPN Service</h4>
<ul>
<li>Service in 5 different countries</li>
<li>4 weeks of access</li>
<li>Price (USD): ${{service_price}}</li>
{% if price %}
<li>Price (BTC): {{ price }}</li>
{% endif %}
</ul>
{% if g.user.is_authenticated() %}
<a href="{{url_for('confirm_purchase')}}" class="uk-button uk-button-success">Purchase</a>
<a href="{{url_for('dashboard')}}" class="uk-button uk-button-danger">Cancel</a>
{% else %}
<a href="{{url_for_security('login')}}" class="uk-button uk-button-primary">Login to Purchase</a>
<a href="{{url_for_security('register')}}" class="uk-button uk-button-success">Register an Account</a>
{% endif %}
</div>
{% endblock %}
@@ -0,0 +1,23 @@
{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_label, render_field %}
{% block title %}Change Password - packetcrypt{% endblock %}
{% block flash %}
{% for field in change_password_form.errors %}
{% for error in change_password_form.errors[field] %}
<div class="uk-alert uk-alert-danger" data-uk-alert><a href="" class="uk-alert-close uk-close"></a>{{ field }}: {{ error }}</div>
{% endfor %}
{% endfor %}
{% endblock %}
{% block content %}
<div id="form-container" class="uk-width-1-4 uk-panel uk-panel-box uk-container-center">
<form action="{{ url_for_security('change_password') }}" method="POST" name="change_password_form" class="uk-form">
{{ change_password_form.hidden_tag() }}
{{ render_field_with_label(change_password_form.password) }}
{{ render_field_with_label(change_password_form.new_password) }}
{{ render_field_with_label(change_password_form.new_password_confirm) }}
{{ render_field(change_password_form.submit) }}
</form>
</div>
{% endblock %}
@@ -0,0 +1,25 @@
{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_label, render_field %}
{% block title %}Forgot Password - packetcrypt{% endblock %}
{% block flash %}
{% for field in forgot_password_form.errors %}
{% for error in forgot_password_form.errors[field] %}
<div class="uk-alert uk-alert-danger" data-uk-alert><a href="" class="uk-alert-close uk-close"></a>{{ field }}: {{ error }}</div>
{% endfor %}
{% endfor %}
{% endblock %}
{% block content %}
<div id="form-container" class="uk-width-3-5 uk-panel uk-panel-box uk-container-center">
<form action="{{ url_for_security('forgot_password') }}" method="POST" name="forgot_password_form" class="uk-form">
{{ forgot_password_form.hidden_tag() }}
{{ render_field_with_label(forgot_password_form.email) }}
{{ render_field(forgot_password_form.submit, class="uk-button") }}
</form>
<div id="form-info" class="uk-align-right uk-text-info">
Enter the email-address associated with your account to the left.
Instructions on resetting your password will be emailed to you.
</div>
</div>
{% endblock %}
+31
View File
@@ -0,0 +1,31 @@
{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_label, render_field_with_label_oneline, render_field %}
{% block title %}Login - packetcrypt{% endblock %}
{% block flash %}
{% for field in login_user_form.errors %}
{% for error in login_user_form.errors[field] %}
<div class="uk-alert uk-alert-danger" data-uk-alert><a href="" class="uk-alert-close uk-close"></a>{{ field }}: {{ error }}</div>
{% endfor %}
{% endfor %}
{% endblock %}
{% block content %}
<div id="form-container" class="uk-width-3-5 uk-panel uk-panel-box uk-container-center">
<form action="{{ url_for_security('login') }}" method="POST" name="login_user_form" class="uk-form">
{{ login_user_form.hidden_tag() }}
{{ render_field_with_label(login_user_form.email) }}
{{ render_field_with_label(login_user_form.password) }}
{{ render_field_with_label_oneline(login_user_form.remember) }}
{{ render_field(login_user_form.next) }}
{{ render_field(login_user_form.submit, class="uk-button uk-button-primary") }}
</form>
<div id="form-info" class="uk-align-right uk-text-info">
Log in with your Packetcrypt email and password to access your dashboard, download the VPN client, and purchase extended service!
If you are unable to remember your password, please use the button below to reset it.
<a href="{{url_for_security('forgot_password')}}" class="uk-button">Forgot Password?</a>
</div>
</div>
{% endblock %}
+31
View File
@@ -0,0 +1,31 @@
{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_label, render_field %}
{% block title %}Register - packetcrypt{% endblock %}
{% block flash %}
{% for field in register_user_form.errors %}
{% for error in register_user_form.errors[field] %}
<div class="uk-alert uk-alert-danger" data-uk-alert><a href="" class="uk-alert-close uk-close"></a>{{ field }}: {{ error }}</div>
{% endfor %}
{% endfor %}
{% endblock %}
{% block content %}
<div id="form-container" class="uk-width-3-5 uk-panel uk-panel-box uk-container-center">
<form action="{{ url_for_security('register') }}" method="POST" name="register_user_form" class="uk-form" style="display:inline-block;">
{{ register_user_form.hidden_tag() }}
{{ render_field_with_label(register_user_form.email) }}
{{ render_field_with_label(register_user_form.password) }}
{% if register_user_form.password_confirm %}
{{ render_field_with_label(register_user_form.password_confirm) }}
{% endif %}
{{ render_field(register_user_form.submit, class='uk-button uk-button-primary') }}
</form>
<div id="form-info" class="uk-align-right uk-text-info">
All we need is an email address and a password to create an account, and you'll be clicks away from browsing securely.
After registering please check your inbox for a verification email.
<br/><p><a href="{{url_for_security('login')}}" class="uk-text-bold uk-text-muted">Click here to sign in to an existing account.</a></p>
</div>
</div>
{% endblock %}
@@ -0,0 +1,22 @@
{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_label, render_field %}
{% block title %}Reset Password - packetcrypt{% endblock %}
{% block flash %}
{% for field in reset_password_form.errors %}
{% for error in reset_password_form.errors[field] %}
<div class="uk-alert uk-alert-danger" data-uk-alert><a href="" class="uk-alert-close uk-close"></a>{{ field }}: {{ error }}</div>
{% endfor %}
{% endfor %}
{% endblock %}
{% block content %}
<div id="form-container" class="uk-width-1-4 uk-panel uk-panel-box uk-container-center">
<form action="{{ url_for_security('reset_password') }}" method="POST" name="reset_password_form" class="uk-form">
{{ reset_password_form.hidden_tag() }}
{{ render_field_with_label(reset_password_form.password) }}
{{ render_field_with_label(reset_password_form.password_confirm) }}
{{ render_field(reset_password_form.submit) }}
</form>
</div>
{% endblock %}
+17
View File
@@ -0,0 +1,17 @@
{% extends "layout.html" %}
{% block title %}View Support Ticket - packetcrypt{% endblock %}
{% block content %}
<div id="form-container" class="uk-width-1-2 uk-panel uk-panel-box uk-container-center">
<h4 class="uk-panel-title">{{ ticket.subject }}</h4>
<hr class="uk-panel-divider"/>
<span class="ticket-text">{{ ticket.body }}</span>
<br/>
<span class="uk-article-meta">{{ ticket.timestamp }}</span>
<br/><br/>
<a href="{{url_for('dashboard')}}" class="uk-button uk-button-primary" type="submit">Close</a>
<a href="{{url_for('editticket', tid=ticket.id)}}" class="uk-button uk-button-success">Edit</a>
<a href="{{url_for('deleteticket', tid=ticket.id)}}" class="uk-button uk-button-danger">Delete</a>
</div>
{% endblock %}