File tree Expand file tree Collapse file tree
java/com/devnexus/ting/web/controller/admin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818
1919import javax .servlet .http .HttpServletRequest ;
20- import javax .validation .Validator ;
21-
22- import org .springframework .beans .factory .annotation .Autowired ;
2320import org .springframework .stereotype .Controller ;
2421import org .springframework .ui .ModelMap ;
2522import org .springframework .web .bind .annotation .RequestMapping ;
2623import org .springframework .web .bind .annotation .RequestMethod ;
27- import org .springframework .web .bind .annotation .RequestParam ;
28- import com .devnexus .ting .core .service .BusinessService ;
24+ import org .springframework .web .bind .annotation .PathVariable ;
2925
3026/**
3127 *
3733@ Controller ("adminRegistrationController" )
3834public class RegistrationController {
3935
40- @ Autowired private BusinessService businessService ;
41-
42- @ Autowired private Validator validator ;
43-
44- @ RequestMapping (value ="/admin/registration" , method =RequestMethod .GET )
45- public String getSpeakers (ModelMap model , HttpServletRequest request ,
46- @ RequestParam (value ="eventId" , required =false ) Long eventId ) {
36+ @ RequestMapping (value ="/admin/{eventKey}/registration" , method =RequestMethod .GET )
37+ public String loadRegistration (ModelMap model , HttpServletRequest request ,
38+ @ PathVariable (value = "eventKey" ) String eventKey ) {
39+
4740
4841 return "/admin/manage-registration" ;
4942 }
Original file line number Diff line number Diff line change 6060 <li ><a href =" ${ ctx } ${ baseSiteUrl } /admin/${ eventKey } /sponsors" >Manage Sponsors</a ></li >
6161 <li ><a href =" ${ ctx } ${ baseSiteUrl } /admin/${ eventKey } /presentations" >Manage Presentations</a ></li >
6262 <li ><a href =" ${ ctx } ${ baseSiteUrl } /admin/${ eventKey } /manage-schedule" >Manage Schedule</a ></li >
63- <li ><a href =" ${ ctx } ${ baseSiteUrl } /admin/manage-registration?eventId= ${ currentEvent . id } " >Manage Registration</a ></li >
63+ <li ><a href =" ${ ctx } ${ baseSiteUrl } /admin/${ eventKey } /registration " >Manage Registration</a ></li >
6464 <li ><a href =" ${ ctx } ${ baseSiteUrl } /admin/${ eventKey } /evaluations" >Show Evaluations</a ></li >
6565 </sec:authorize >
6666 <sec:authorize access =" hasRole('CFP_REVIEWER') or hasRole('ADMIN')" >
Original file line number Diff line number Diff line change 1+ <%@ include file =" /WEB-INF/jsp/includes/taglibs.jsp" %>
2+
3+ <title >Manage Registration</title >
4+
5+ <!-- intro -->
6+ <section id =" about" class =" module parallax parallax-3" >
7+ <div class =" container header" >
8+ <div class =" row centered" >
9+ <div class =" col-md-10 col-md-offset-1" >
10+ <div class =" top-intro travel" >
11+ <h4 class =" section-white-title decorated" ><span >Manage ${ event. eventKey } Registration</span ></h4 >
12+
13+ </div >
14+ </div >
15+ </div >
16+ </div >
17+ </section >
18+ <!-- /intro -->
19+
20+ <div class =" row" >
21+ <div class =" col-md-10 col-md-offset-1" >
22+ <table class =" table table-hover" >
23+ <thead >
24+ <tr >
25+ <th >Name</th ><th >Start Date</th ><th >End Date</th ><th >Price</th >
26+ </tr >
27+ </thead >
28+
29+
30+ <tr >
31+ <td >Early Bird</td >
32+ <td >Sept. 1 2015</td >
33+ <td >
34+ Jan. 1 2016
35+ </td >
36+ <td >$300</td >
37+
38+ </tr >
39+ <tr >
40+ <td >Normal Price</td >
41+ <td >Jan. 1 2016</td >
42+ <td >
43+ Feb. 15 2016
44+ </td >
45+ <td >$400</td >
46+
47+ </tr >
48+ <tr >
49+ <td >Late Price</td >
50+ <td >Feb. 15 2016</td >
51+ <td >
52+ March 16 2016
53+ </td >
54+ <td >$900</td >
55+
56+ </tr >
57+ <tr >
58+ <td >T-shirt size</td >
59+ <td >Sept. 1 2015</td >
60+ <td >
61+ Jan. 1 2016
62+ </td >
63+ <td >$30</td >
64+
65+ </tr >
66+
67+ </table >
68+ <a class =" btn btn-default" href =" ${ ctx } ${ baseSiteUrl } /admin/${ event. eventKey } /registration" role =" button" >Add Registration</a >
69+ <a class =" btn btn-default" href =" ${ ctx } ${ baseSiteUrl } /admin/${ event. eventKey } /index" role =" button" >Main Menu</a >
70+ </div >
71+ </div >
72+
You can’t perform that action at this time.
0 commit comments