OXYGENHUB
◆ v0.2.0 oxygenhub / templates / repo_new.html
1.2 KiB · HTML · last changed Milestone 0.2: accounts and access 1 month ago source blame history raw
19bb31ff Andy McCall ↶ 1
{% extends "base.html" %}
2
{% block title %}New repository{% endblock %}
3
{% block content %}
4
<div class="head"><h1>New repository <small>empty until the first push, which it takes its identity from</small></h1></div>
5
{% if let Some(e) = error %}<p class="error">{{ e }}</p>{% endif %}
6
<form class="card" method="post" action="/new">
7
  <input type="hidden" name="_csrf" value="{{ shell.csrf }}">
8
  <div class="row">
9
    <div><label for="owner">Owner</label><select id="owner" name="owner">{% for o in owners %}<option value="{{ o }}">{{ o }}</option>{% endfor %}</select></div>
10
    <div><label for="name">Name</label><input type="text" id="name" name="name" required pattern="[A-Za-z0-9][A-Za-z0-9._-]{0,63}"></div>
11
  </div>
12
  <label for="description">Description</label><input type="text" id="description" name="description">
13
  <label>Visibility</label>
14
  <div class="choice">
15
    <label><input type="radio" name="visibility" value="public" checked> public</label>
16
    <label><input type="radio" name="visibility" value="internal"> internal (anyone signed in)</label>
17
    <label><input type="radio" name="visibility" value="private"> private</label>
18
  </div>
19
  <button type="submit">CREATE</button>
20
</form>
21
{% endblock %}