-
Notifications
You must be signed in to change notification settings - Fork 0
/
new.html
51 lines (32 loc) · 1010 Bytes
/
new.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@include 'header'
<style>
i { color:#777; font-size:80%; }
</style>
[<b>
@app.cur_user.name
</b>]
<h2>Submit a module</h2>
@if !logged_in
<a href='https://github.com/login/oauth/authorize?response_type=code&client_id=3c7c2836a3afa00cd79e'
>Log in via GitHub</a>
@else
<form action='/create_module' method='POST'>
<input type='text' placeholder='Module name' required maxlength=10 pattern="[A-Za-z0-9]+"
title="Only letters and numbers are allowed" name='name'>
<br>
<input type='url' placeholder='GitHub URL' required maxlength=50 style='width:300px' name='url'
pattern='(https://github.com/)(.*?)' title='Only GitHub repositories are allowed for now' >
<br>
<textarea placeholder='Module description' required maxlength=800></textarea>
<br>
<input type='submit' value='Submit'>
</form>
@end
<!--
<form action='/create_module' method='POST'>
Name: <input type='text' required maxlength=10>
<br>
GitHub repo URL: <input type='url' required maxlength=50>
<input type='submit'>
</form>
-->