ContentAsset records metadata (kind, title, description, release date, season/episode/sequence) for an UploadedAsset, scoped to a studio. ContentGroup groups episodes into a series or movies into a collection. The studio page now has tabs for uploaded files and content, both loaded with htmx. Files without content get a "Create content" button. Content opens read-only with an Edit button; the form shows immediately when a save fails validation. Also adds the draft job status to the migration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.0 KiB
HTML
33 lines
1.0 KiB
HTML
<table class="table table-striped table-sm align-middle">
|
|
<tr>
|
|
<th>File Name</th>
|
|
<th>Size (bytes)</th>
|
|
<th>Upload Timestamp</th>
|
|
<th>Content</th>
|
|
</tr>
|
|
{% for asset in uploaded_assets %}
|
|
<tr>
|
|
<td>{{ asset.s3_path }}</td>
|
|
<td>{{ asset.size }}</td>
|
|
<td>{{ asset.upload_timestamp }}</td>
|
|
<td>
|
|
{% if asset.content_asset_id %}
|
|
<a href="{% url 'studio:content_asset' asset.studio.bucket_name asset.content_asset_id %}">View content</a>
|
|
{% else %}
|
|
<form method="post" action="{% url 'studio:content_asset_create' asset.studio.bucket_name asset.id %}" hx-boost="false" class="m-0">
|
|
{% csrf_token %}
|
|
<button type="submit" class="btn btn-outline-primary btn-sm">Create content</button>
|
|
</form>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
<tr style="display:none;" id="asset_{{ asset.id }}">
|
|
<td colspan="4">Click to refresh</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="4">No uploaded assets found.</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|