Archived
1
0

add initial newboard stuff

This commit is contained in:
jeff 2015-10-02 15:38:59 -04:00
parent 12e887316a
commit 229ef83e35
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,6 @@
function createBoard() {
var form = document.getElementById("postform");
var e = document.getElementById("boardname");
form.action = form.action + e.value;
form.submit();
}

View File

@ -0,0 +1,47 @@
<html>
<head>
<title>create new board</title>
<link rel="stylesheet" href="{{prefix}}static/site.css" />
<script type="text/javascript" src="{{prefix}}static/newboard.js">
</script>
</head>
<body>
<p>make your first post</p>
<hr />
<form action="{{prefix}}/post/" enctype="multipart/form-data" name="post" method="post" id="postform" >
<div id="postform-outer">
<div id="postform-inner">
<table class="postform">
<tbody>
<tr>
<th>
Board Name
</th>
<td>
<input type="text" name="name" value="" id="boardname" />
<button onclick="createBoard()">Create Board</button>
</td>
</tr>
<tr>
<th>
Captcha
</th>
<td>
<img id="captcha_img" src="{{prefix}}captcha/img" alt="captcha" />
</td>
</tr>
<tr>
<th>
Solution
</th>
<td>
<input type="text" name="captcha" />
</td>
</tr>
</tbody>
</table>
</div>
</div>
</form>
</body>
</html>