Goit

Simple and lightweight Git web server
git clone http://git.omkov.net/Goit
Log | Tree | Refs | README | Download

Goit/res/repo/create.html (72 lines, 2.3 KiB) -rw-r--r-- file download

583a066 Jakob Wakeling 2023-07-24 15:52:57
0
<!DOCTYPE html>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
1
<html lang="en">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
2
	<head>{{template "base/head" .}}</head>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
3
	<body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
4
		<header>
20732d3 Jakob Wakeling 2023-07-26 22:38:15
5
			<table>
20732d3 Jakob Wakeling 2023-07-26 22:38:15
6
				<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
7
					<td rowspan="2"><a href="/"><img src="/static/favicon.png" style="max-height: 24px"></a></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
8
					<td><h1>{{.Title}}</h1></td>
20732d3 Jakob Wakeling 2023-07-26 22:38:15
9
				</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
10
				<tr><td></td></tr>
20732d3 Jakob Wakeling 2023-07-26 22:38:15
11
			</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
12
		</header>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
13
		<main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
14
			<form action="/repo/create" method="post">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
15
				{{.CsrfField}}
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
16
				<table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
17
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
18
						<td style="text-align: right;"><label for="reponame">Name</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
19
						<td><input type="text" name="reponame"></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
20
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
21
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
22
						<td style="text-align: right; vertical-align: top;"><label for="description">Description</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
23
						<td><textarea name="description"></textarea></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
24
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
25
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
26
						<td style="text-align: right;"><label for="branch">Default Branch</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
27
						<td><input type="text" name="branch" placeholder="master"></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
28
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
29
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
30
						<td style="text-align: right;"><label for="visibility">Visibility</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
31
						<td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
32
							<select name="visibility">
778d467 Jakob Wakeling 2024-01-17 18:29:55
33
								<option value="public" {{if eq .Visibility "public"}}selected{{end}}>Public</option>
778d467 Jakob Wakeling 2024-01-17 18:29:55
34
								<option value="private" {{if eq .Visibility "private"}}selected{{end}}>Private</option>
778d467 Jakob Wakeling 2024-01-17 18:29:55
35
								<option value="limited" {{if eq .Visibility "limited"}}selected{{end}}>Limited</option>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
36
							</select>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
37
						</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
38
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
39
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
40
						<td style="text-align: right;"><label for="url">URL</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
41
						<td><input type="text" name="url"></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
42
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
43
					<!-- <tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
44
						<td style="text-align: right;"><label for="username">Username</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
45
						<td><input type="text" name="username"></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
46
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
47
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
48
						<td style="text-align: right;"><label for="password">Password</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
49
						<td><input type="password" name="password"></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
50
					</tr> -->
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
51
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
52
						<td style="text-align: right;"><label for="mirror">Mirror</label></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
53
						<td><input type="checkbox" name="mirror" value="mirror" {{if .IsMirror}}checked{{end}}></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
54
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
55
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
56
						<td></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
57
						<td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
58
							<input type="submit" value="Create">
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
59
							<a href="/" style="color: inherit;">Cancel</a>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
60
						</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
61
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
62
					<tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
63
						<td></td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
64
						<td style="color: #AA0000">{{.Message}}</td>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
65
					</tr>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
66
				</table>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
67
			</form>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
68
		</main>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
69
	</body>
71b7f19 Jakob Wakeling 2024-01-08 22:23:49
70
</html>
71