Noah Petherbridge
8a2d6a7c04
All modules are now plugins. The config.py calls load_plugin for each plugin it needs (some plugins may load others automatically). Also each plugin keeps its own template folder which gets added to the template search path, so i.e. if the photo plugin is unloaded completely, the URL endpoints won't work either (with the old system, since the HTML templates still existed in the default root the endpoints would still serve pages, just without any Python logic behind them).
42 lines
1.4 KiB
HTML
42 lines
1.4 KiB
HTML
{% extends "layout.html" %}
|
|
{% block title %}Initial Setup{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script type="text/javascript" src="/rophako/setup.js"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>Welcome to Rophako!</h1>
|
|
|
|
This is the initial setup for the Rophako CMS. The main purpose of this is
|
|
to create the initial Administrator user account.<p>
|
|
|
|
<form id="setup_form" action="{{ url_for('account.setup') }}" method="POST">
|
|
<input type="hidden" name="token" value="{{ csrf_token() }}">
|
|
<fieldset>
|
|
<legend>Admin User</legend>
|
|
|
|
Your site needs at least one admin user to log in and manage the site.
|
|
You can use any username/password combination you want, but "admin" is
|
|
a typical username.<p>
|
|
|
|
<strong>Username:</strong><br>
|
|
<input type="text" size="40" name="username" id="username" placeholder="admin"><p>
|
|
|
|
<strong>Real name:</strong><br>
|
|
<input type="text" size="40" name="name" placeholder="John Doe"><p>
|
|
|
|
<strong>Passphrase:</strong><br>
|
|
This can be as long as you want. Pick something
|
|
<a href="http://xkcd.com/936/" target="_blank">secure!</a><br>
|
|
<input type="password" size="40" id="pw1" name="password1" placeholder="correct horse battery staple"><p>
|
|
|
|
<strong>Confirm Passphrase:</strong><br>
|
|
<input type="password" size="40" id="pw2" name="password2" placeholder="correct horse battery staple"><p>
|
|
|
|
<button type="submit">Next</button>
|
|
</fieldset>
|
|
</form>
|
|
|
|
{% endblock %} |