2018-03-20 03:58:31 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2018-03-21 18:03:14 +01:00
|
|
|
{{ package.title or "Create Package" }}
|
2018-04-03 15:56:43 +02:00
|
|
|
{% if not package and author != current_user %}
|
|
|
|
for {{ author.display_name }}
|
|
|
|
{% endif %}
|
2018-03-20 03:58:31 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field, form_scripts, render_multiselect_field, render_mpackage_field, render_deps_field, package_lists %}
|
|
|
|
|
|
|
|
{% block scriptextra %}
|
|
|
|
{{ form_scripts() }}
|
|
|
|
{% if enable_wizard %}
|
|
|
|
<script src="/static/url.min.js"></script>
|
|
|
|
<script src="/static/polltask.js"></script>
|
2018-12-29 19:41:09 +01:00
|
|
|
<script src="/static/package_create.js?v=3"></script>
|
2018-12-22 12:23:58 +01:00
|
|
|
{% endif %}
|
2018-12-29 16:57:16 +01:00
|
|
|
<script src="/static/package_edit.js?v=3"></script>
|
2018-12-22 12:23:58 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2018-03-20 03:58:31 +01:00
|
|
|
{% block content %}
|
2018-05-27 23:48:53 +02:00
|
|
|
<h1>Create Package</h1>
|
2018-05-18 05:06:27 +02:00
|
|
|
|
2018-12-22 13:10:34 +01:00
|
|
|
<div class="alert alert-info">
|
|
|
|
<a class="float-right btn btn-sm btn-default" href="{{ url_for('flatpage', path='policy_and_guidance') }}">View</a>
|
2018-05-30 02:20:47 +02:00
|
|
|
|
2018-12-22 13:10:34 +01:00
|
|
|
Have you read the Package Inclusion Policy and Guidance yet?
|
2018-05-30 02:20:47 +02:00
|
|
|
</div>
|
|
|
|
|
2018-12-29 19:41:09 +01:00
|
|
|
<noscript>
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
Javascript is needed to improve the user interface, and is needed for features
|
|
|
|
such as finding metadata from git, and autocompletion.<br />
|
|
|
|
Whilst disabled Javascript may work, it is not officially supported.
|
|
|
|
</div>
|
|
|
|
</noscript>
|
2018-05-27 22:31:11 +02:00
|
|
|
|
2018-05-29 21:51:42 +02:00
|
|
|
{{ package_lists() }}
|
2018-05-25 17:53:25 +02:00
|
|
|
|
2018-05-18 05:06:27 +02:00
|
|
|
<form method="POST" action="" class="tableform">
|
2018-03-20 03:58:31 +01:00
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
<fieldset>
|
|
|
|
<legend>Package</legend>
|
|
|
|
|
2018-12-29 20:06:17 +01:00
|
|
|
<div class="row">
|
|
|
|
{{ render_field(form.type, class_="pkg_meta col-sm-2") }}
|
|
|
|
{{ render_field(form.title, class_="pkg_meta col-sm-7") }}
|
|
|
|
{{ render_field(form.name, class_="pkg_meta col-sm-3") }}
|
|
|
|
</div>
|
2019-01-29 04:00:01 +01:00
|
|
|
{{ render_field(form.short_desc, class_="pkg_meta") }}
|
2018-12-22 12:23:58 +01:00
|
|
|
{{ render_multiselect_field(form.tags, class_="pkg_meta") }}
|
2018-12-29 20:06:17 +01:00
|
|
|
<div class="pkg_meta row">
|
|
|
|
{{ render_field(form.license, class_="not_txp col-sm-6") }}
|
|
|
|
{{ render_field(form.media_license, class_="col-sm-6") }}
|
2018-12-22 12:23:58 +01:00
|
|
|
</div>
|
2018-12-29 20:06:17 +01:00
|
|
|
{{ render_field(form.desc, class_="pkg_meta", fieldclass="form-control markdown") }}
|
2018-12-22 12:23:58 +01:00
|
|
|
</fieldset>
|
2018-05-09 18:44:58 +02:00
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
<fieldset class="pkg_meta">
|
2018-12-29 20:06:17 +01:00
|
|
|
<legend class="not_txp">Dependencies</legend>
|
2018-05-27 23:48:53 +02:00
|
|
|
|
2018-05-27 23:51:50 +02:00
|
|
|
{{ render_mpackage_field(form.provides_str, class_="not_txp", placeholder="Comma separated list") }}
|
|
|
|
{{ render_deps_field(form.harddep_str, class_="not_txp not_game", placeholder="Comma separated list") }}
|
|
|
|
{{ render_deps_field(form.softdep_str, class_="not_txp not_game", placeholder="Comma separated list") }}
|
2018-12-22 12:23:58 +01:00
|
|
|
</fieldset>
|
2018-05-27 23:48:53 +02:00
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
<fieldset>
|
|
|
|
<legend class="pkg_meta">Repository and Links</legend>
|
2018-05-27 23:48:53 +02:00
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
<div class="pkg_wiz_1">
|
|
|
|
<p>Enter the repo URL for the package.
|
|
|
|
If the repo uses git then the metadata will be automatically imported.</p>
|
2018-05-09 18:44:58 +02:00
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
<p>Leave blank if you don't have a repo. Click skip if the import fails.</p>
|
|
|
|
</div>
|
2018-05-09 18:44:58 +02:00
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
{{ render_field(form.repo, class_="pkg_repo") }}
|
2018-05-09 18:44:58 +02:00
|
|
|
|
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
<div class="pkg_wiz_1">
|
|
|
|
<a id="pkg_wiz_1_next" class="btn btn-primary">Next (Autoimport)</a>
|
|
|
|
<a id="pkg_wiz_1_skip" class="btn btn-default">Skip Autoimport</a>
|
|
|
|
</div>
|
2018-05-09 18:44:58 +02:00
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
<div class="pkg_wiz_2">
|
|
|
|
Importing... (This may take a while)
|
|
|
|
</div>
|
2018-05-09 18:44:58 +02:00
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
{{ render_field(form.website, class_="pkg_meta") }}
|
|
|
|
{{ render_field(form.issueTracker, class_="pkg_meta") }}
|
2018-12-27 01:03:16 +01:00
|
|
|
{{ render_field(form.forums, class_="pkg_meta", placeholder="Tip: paste in a forum topic URL") }}
|
2018-12-22 12:23:58 +01:00
|
|
|
</fieldset>
|
2018-09-15 00:10:30 +02:00
|
|
|
|
2018-12-22 12:23:58 +01:00
|
|
|
<div class="pkg_meta">{{ render_submit_field(form.submit) }}</div>
|
|
|
|
</form>
|
2018-03-20 03:58:31 +01:00
|
|
|
{% endblock %}
|