Add base HTML template & config
This commit is contained in:
@ -1,16 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Magic App</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>List of apps that can be installed:</p>
|
||||
<ul>
|
||||
{% for app in apps %}
|
||||
<li><a href="/install/{{ app }}">{{ app }}</a></li>
|
||||
</ul>
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Installable apps</h1>
|
||||
<p>Where the magic h<em>app</em>ens.</p>
|
||||
<ul>
|
||||
{% for app in apps %}
|
||||
<li><a href="/install/{{ app }}">{{ app }}</a></li>
|
||||
</ul>
|
||||
{% endfor %}
|
||||
{% endblock content %}
|
||||
|
@ -1,20 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
{% from "second/macros.html" import with_errors %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Install {{ app_name }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Install {{ app_name }}</p>
|
||||
<form method="POST" action="/deploy/{{ app_name }}">
|
||||
{% for field in form %}
|
||||
{{ field.label() }}
|
||||
{{ with_errors(field, style='font-weight: bold') }}
|
||||
{% endfor %}
|
||||
<input type="submit" value="Deploy" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
{% block title %}Install {{ app_name }} {{ super() }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Install {{ app_name }}</p>
|
||||
<form method="POST" action="/deploy/{{ app_name }}">
|
||||
{% for field in form %}
|
||||
{{ field.label() }}
|
||||
{{ with_errors(field, style='font-weight: bold') }}
|
||||
{% endfor %}
|
||||
<input type="submit" value="Deploy" />
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user