Archived
1
0

Merge branch 'master' into dank

Conflicts:
	contrib/static/site.css
This commit is contained in:
jeff 2015-10-02 15:53:45 -04:00
commit ccbdd33b93
3 changed files with 61 additions and 4 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

@ -123,10 +123,6 @@ html {
color: #ededed; color: #ededed;
background: #262230; background: #262230;
height: 100%; height: 100%;
background-image: url('/static/fieri.png');
background-attachment: fixed;
background-position: 100% 0%;
background-repeat: no-repeat;
font-family: arial,helvetica,sans-serif; font-family: arial,helvetica,sans-serif;
font-size: 10pt; font-size: 10pt;
margin: 0 4px; margin: 0 4px;

View File

@ -0,0 +1,55 @@
<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>
Comment
</th>
<td>
<textarea id="postform_message" type="text" name="message" cols=40 rows=5></textarea>
</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>