fierj
PublicTiny personal git forge
92ec597d5bbaf29be9b939f3e9d9c089320cac57
diff --git a/templates/new_repo.html b/templates/new_repo.html
new file mode 100644
index 0000000..c5b2e40
--- /dev/null
+++ b/templates/new_repo.html
@@ -0,0 +1,25 @@
+{{template "head" .}}
+{{define "title"}}new repository - fierj{{end}}
+<h1 style="margin-bottom: var(--space-lg);">New Repository</h1>
+<form method="post" style="max-width: 520px;">
+ <div class="form-group">
+ <label for="import_url">Import from URL (optional)</label>
+ <input type="text" id="import_url" name="import_url" placeholder="https://github.com/user/repo.git">
+ <div style="font-size: 0.8rem; color: var(--text-secondary); margin-top: var(--space-xs);">
+ Leave blank to create an empty repository.
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="name">Repository name</label>
+ <input type="text" id="name" name="name" placeholder="my-project" {{if eq .FromImport "true"}}value="{{.SuggestedName}}"{{end}}>
+ <div style="font-size: 0.8rem; color: var(--text-secondary); margin-top: var(--space-xs);">
+ Required unless importing — then it's derived from the URL.
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="description">Description (optional)</label>
+ <input type="text" id="description" name="description" placeholder="A short description">
+ </div>
+ <button type="submit" class="btn">Create repository</button>
+</form>
+{{template "foot" .}}