Phase 2.9 complete

This commit is contained in:
2026-08-04 12:05:45 -05:00
parent b7b21ab5e0
commit a45b686f6c
7 changed files with 549 additions and 20 deletions
@@ -38,6 +38,33 @@
</div>
</div>
{% if anim_meta.show_fields %}
<div class="form-group">
<label>Animation Director ID</label>
<p class="anim-warning"><i class="fas fa-exclamation-triangle"></i> This pack has no <code>animationframework.id</code>. One will be added to the downloadable pack so applications can check for updates.</p>
<div class="form-row">
<div class="form-group">
<label for="af_namespace">Namespace</label>
<input type="text" id="af_namespace" name="af_namespace" value="{{ anim_meta.namespace }}" autocomplete="off">
</div>
<div class="form-group">
<label for="af_pack_id">Pack ID</label>
<input type="text" id="af_pack_id" name="af_pack_id" value="{{ anim_meta.pack_id }}" autocomplete="off">
</div>
</div>
<p class="bio-help">Full ID: <code id="af-preview">{{ anim_meta.namespace }}:{{ anim_meta.pack_id }}</code></p>
</div>
{% endif %}
{% if anim_meta.show_confirm %}
<div class="form-group">
<label>
<input type="checkbox" name="confirm_replace_identity" value="1">
Replace pack identity (the uploaded pack has a different <code>animationframework.id</code> than this project)
</label>
</div>
{% endif %}
<div class="form-group">
{{ version_form.changelog.errors }}
<label for="{{ version_form.changelog.id_for_label }}">{{ version_form.changelog.label }}</label>
@@ -55,4 +82,17 @@
{{ pending_uploads|json_script:'packs-pending-uploads' }}
<script src="{% static 'js/uploads.js' %}"></script>
<script src="{% static 'js/version_upload.js' %}"></script>
{% if anim_meta.show_fields %}
<script>
(function () {
const ns = document.getElementById('af_namespace');
const pid = document.getElementById('af_pack_id');
const preview = document.getElementById('af-preview');
if (!ns || !pid || !preview) return;
function update() { preview.textContent = ns.value + ':' + pid.value; }
ns.addEventListener('input', update);
pid.addEventListener('input', update);
})();
</script>
{% endif %}
{% endblock %}