modify submit
This commit is contained in:
parent
c86b410abc
commit
8671a052e7
|
@ -79,9 +79,6 @@ public class RedditController {
|
||||||
@RequestMapping("/post")
|
@RequestMapping("/post")
|
||||||
public String showSubmissionForm(Model model) throws JsonProcessingException, IOException {
|
public String showSubmissionForm(Model model) throws JsonProcessingException, IOException {
|
||||||
try {
|
try {
|
||||||
List<String> subreddits = getSubreddit();
|
|
||||||
model.addAttribute("subreddits", subreddits);
|
|
||||||
|
|
||||||
String needsCaptchaResult = needsCaptcha();
|
String needsCaptchaResult = needsCaptcha();
|
||||||
if (needsCaptchaResult.equalsIgnoreCase("true")) {
|
if (needsCaptchaResult.equalsIgnoreCase("true")) {
|
||||||
String newCaptchaResult = getNewCaptcha();
|
String newCaptchaResult = getNewCaptcha();
|
||||||
|
|
|
@ -23,13 +23,7 @@
|
||||||
<br><br>
|
<br><br>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3">Subreddit</label>
|
<label class="col-sm-3">Subreddit</label>
|
||||||
<span class="col-sm-9">
|
<span class="col-sm-9"><input name="sr" placeholder="Subreddit" class="form-control" /></span>
|
||||||
<select name="sr">
|
|
||||||
<c:forEach items="${subreddits}" var="item">
|
|
||||||
<option value="${item}">${item}</option>
|
|
||||||
</c:forEach>
|
|
||||||
</select>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue