40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
|
<head>
|
||
|
|
|
||
|
|
<title>Spring Security OAuth</title>
|
||
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
|
||
|
|
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="container">
|
||
|
|
<h1>Submit to Reddit</h1>
|
||
|
|
<form action="submit" method="post">
|
||
|
|
<div class="row">
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-3">Title</label>
|
||
|
|
<span class="col-sm-9"><input name="title" placeholder="title" class="form-control" /></span>
|
||
|
|
</div>
|
||
|
|
<br><br>
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-3">Content</label>
|
||
|
|
<span class="col-sm-9"><textarea placeholder="content" class="form-control"></textarea></span>
|
||
|
|
</div>
|
||
|
|
<br><br>
|
||
|
|
<c:if test="${iden != null}">
|
||
|
|
<input type="hidden" name="iden" value="${iden}"/>
|
||
|
|
|
||
|
|
<div class="form-group">
|
||
|
|
<label class="col-sm-3">Captcha</label>
|
||
|
|
<span class="col-sm-9"><input name="captcha" placeholder="captcha" class="form-control"/></span>
|
||
|
|
</div>
|
||
|
|
<br><br>
|
||
|
|
<img src="http://www.reddit.com/captcha/${iden}" alt="captcha" width="200"/>
|
||
|
|
</c:if>
|
||
|
|
<br><br>
|
||
|
|
<button type="submit" class="btn btn-primary">Post</button>
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|