{% extends 'layouts/base.html' %} {% import 'macros/form_macros.html' as f %} {% import 'macros/check_password.html' as check %} {% block scripts %} {% endblock %} {% block content %}
Back to Add New Apps

New App Template
Add a new app template
{% set flashes = { 'error': get_flashed_messages(category_filter=['form-error']), 'warning': get_flashed_messages(category_filter=['form-check-email']), 'info': get_flashed_messages(category_filter=['form-info']), 'success': get_flashed_messages(category_filter=['form-success']) } %} {# WIP form for deploying an application #} {{ f.begin_form(form, flashes) }} {{ f.render_form_field(form.name)}} {{ f.render_form_field(form.image) }} {{ f.render_form_field(form.restart_policy) }} {% if ports %}
Ports
{% for field in form.ports %}
{{ field.label(class="col-sm-2 col-form-label") }}
{{ field(class="form-control") }}
{% endfor %}
{% endif %} {% if volumes %}
Volumes
{% for l in form.volumes %}
{{ l.form.container.label(class="col-sm-2 col-form-label") }}
{{ l.form.container(class="form-control") }}
{{ l.form.bind.label(class="col-sm-2 col-form-label") }}
{{ l.form.bind(class="form-control") }}
{% endfor %}
{% endif %} {% if env %}
Environment Variables
{% for e in form.env %}
{{ e.form.label.label(class="col-sm-2 col-form-label") }}
{{ e.form.label(class="form-control") }}
{{ e.form.default.label(class="col-sm-2 col-form-label") }}
{{ e.form.default(class="form-control") }}
{% endfor %}
{% endif %} {{ f.end_form() }}

{% endblock %}