+ New

fierj

Public

Tiny personal git forge

← fierj / templates / new_repo.html
{{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 &mdash; 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" .}}