|
1
|
{% extends "base.html" %} |
|
2
|
{% block title %}Import Bundle — {{ project.name }} — Fossilrepo{% endblock %} |
|
3
|
|
|
4
|
{% block content %} |
|
5
|
<h1 class="text-2xl font-bold text-gray-100 mb-2">{{ project.name }}</h1> |
|
6
|
{% include "fossil/_project_nav.html" %} |
|
7
|
|
|
8
|
<div class="mx-auto max-w-xl mt-6"> |
|
9
|
<h2 class="text-xl font-bold text-gray-100 mb-4">Import Fossil Bundle</h2> |
|
10
|
<form method="post" enctype="multipart/form-data" class="space-y-4 rounded-lg bg-gray-800 p-6 border border-gray-700"> |
|
11
|
{% csrf_token %} |
|
12
|
<div> |
|
13
|
<label class="block text-sm font-medium text-gray-300 mb-1">Bundle file <span class="text-red-400">*</span></label> |
|
14
|
<input type="file" name="bundle" required accept=".bundle" |
|
15
|
class="w-full text-sm text-gray-300 file:mr-3 file:py-1.5 file:px-3 file:rounded file:border-0 file:text-xs file:font-semibold file:bg-gray-700 file:text-gray-200 hover:file:bg-gray-600"> |
|
16
|
<p class="mt-1 text-xs text-gray-500">A .bundle file exported from fossil bundle export.</p> |
|
17
|
</div> |
|
18
|
<div class="flex items-center gap-2"> |
|
19
|
<input type="checkbox" name="publish" id="publish" class="rounded border-gray-600 bg-gray-900 text-brand focus:ring-brand"> |
|
20
|
<label for="publish" class="text-sm text-gray-300">Publish (make imported artifacts public)</label> |
|
21
|
</div> |
|
22
|
<div class="flex justify-end gap-3 pt-2"> |
|
23
|
<a href="{% url 'fossil:repo_settings' slug=project.slug %}" |
|
24
|
class="rounded-md bg-gray-700 px-4 py-2 text-sm font-semibold text-gray-100 shadow-sm ring-1 ring-inset ring-gray-600 hover:bg-gray-600">Cancel</a> |
|
25
|
<button type="submit" class="rounded-md bg-brand px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-brand-hover">Import Bundle</button> |
|
26
|
</div> |
|
27
|
</form> |
|
28
|
</div> |
|
29
|
{% endblock %} |
|
30
|
|