4378217c8c31bb83303642e34a93ee60cd7287be
[nit.git] / contrib / opportunity / src / templates / meetup_confirmation.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License
14
15 # Page to show when the creation of a Meetup is successful
16 module meetup_confirmation
17
18 import boilerplate
19 import opportunity_model
20
21 # Show this page when a `Meetup` is successfully created.
22 class MeetupConfirmation
23 super OpportunityPage
24
25 var meetup: Meetup
26
27 init do
28 body = """
29 <div class="page-header">
30 <center><h1>Congratulations !</h1></center>
31 </div>
32 <p class="text-center">
33 <h2> Your meetup was successfully created. </h2>
34 <p>
35 You can invite people to participate to your event by sharing them this link : <a href="./?meetup_id={{{meetup.id}}}">{{{meetup.name}}}</a>
36 </p>
37 <p>
38 See you soon for more Opportunities !
39 </p>
40 </p>
41 """
42 end
43
44 end