Initial commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{% extends "views/@base" %}
|
||||
|
||||
{% macro dependency(dependency) %}
|
||||
<label>
|
||||
<input name="{{ dependency.name }}" type="checkbox"{% if dependency.default %} checked{% endif %}>
|
||||
<span>{{ dependency.name }}</span>
|
||||
</label>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro input(input) %}
|
||||
<label>
|
||||
<span>{{ input.name }}</span>
|
||||
<input name="{{ input.name }}" type="text"{% if input.value %} value="{{ input.value }}"{% endif %}>
|
||||
</label>
|
||||
{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Kotlin Starter</h1>
|
||||
<form method="post">
|
||||
{% for input in inputs %}
|
||||
{{ input(input) }}
|
||||
{% endfor %}
|
||||
<br>
|
||||
{% for dependency in dependencies %}
|
||||
{{ dependency(dependency) }}
|
||||
{% endfor %}
|
||||
<br>
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user