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