Skip to content
Snippets Groups Projects
Commit de63fae0 authored by Rhys Evans's avatar Rhys Evans
Browse files

Beginning work on form creeation and controller

parent aa9507cc
No related branches found
No related tags found
1 merge request!42Resolve "As a site administrator I want to be able to review submitted trail checkpoints by business owners, so that they might be added to the existing trails
...@@ -2,6 +2,8 @@ package Team5.SmartTowns.landmarks; ...@@ -2,6 +2,8 @@ package Team5.SmartTowns.landmarks;
import Team5.SmartTowns.data.Location; import Team5.SmartTowns.data.Location;
import Team5.SmartTowns.data.LocationRepository; import Team5.SmartTowns.data.LocationRepository;
import Team5.SmartTowns.placeswithcoordinates.LocationsCoordinates;
import Team5.SmartTowns.placeswithcoordinates.PlacesCoordinatesRepository;
import jakarta.validation.Valid; import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
...@@ -44,14 +46,23 @@ public class LandmarksController { ...@@ -44,14 +46,23 @@ public class LandmarksController {
return modelAndView; return modelAndView;
} }
}
@Autowired
private PlacesCoordinatesRepository placesCoordinatesRepo;
@Autowired
private LocationsCoordinates locationsCoordinates;
@GetMapping("/checkpointApproval")
public ModelAndView adminCheckpointApproval(){
ModelAndView modelAndView1 = new ModelAndView("Landmarks/locationApprovalFormTh.html");
modelAndView1.addObject("locationCoord", new LocationsCoordinates());
return modelAndView1;
} }
} }
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment