648f4daafaef4fa10da9a29039ba3d29e2d3a368
[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 is i18n
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>{{{"Your meetup was successfully created"}}}</h1></center>
31 </div>
32 <div class="container">
33 <div class="alert alert-success text-center" role="alert">
34 {{{"Invite participants by sharing this link:"}}} <a href="./?meetup_id={{{meetup.id}}}">{{{meetup.name}}}</a>
35 </div>
36 <p class="text-center">
37 {{{"See you soon for more Opportunities!"}}}
38 </p>
39 </div>
40 """
41 end
42
43 end