{% extends "base.html" %} {% block title %} Create a release | {{ package.title }} {% endblock %} {% block content %} {% from "macros/forms.html" import render_field, render_submit_field, render_radio_field %}
{{ form.hidden_tag() }} {{ render_field(form.title, placeholder="Human readable. Eg: 1.0.0 or 2018-05-28") }}

Method

{{ render_radio_field(form.uploadOpt) }} {% if package.repo %} {{ render_field(form.vcsLabel, class_="mt-3") }} {% endif %} {{ render_field(form.fileUpload, fieldclass="form-control-file") }}
{{ render_field(form.min_rel, class_="col-sm-6") }} {{ render_field(form.max_rel, class_="col-sm-6") }}

Note: Min and max versions will be used to hide the package on platforms not within the range. You cannot selected the oldest version for min or the newest version for max as this does not make sense - you can't predict the future.

{{ render_submit_field(form.submit) }}
{% endblock %} {% block scriptextra %} {% endblock %}