10ba00770a423eeb49081eae4d1dcb6f3055bcee
[odoo/odoo.git] / addons / website_event_track / views / website_event.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3 <data>
4
5     <template id="event_home">
6         <t t-call="website.layout">
7           <div id="wrap">
8             <div class="oe_structure"/>
9             <div class="container">
10                 <div class="row">
11                     <div class="col-sm-5">
12                         <h1 t-field="event.name" class="mt16"></h1>
13                     </div>
14                     <div class="col-sm-2">
15                         <div class="mt16">
16                             <t t-call="website.publish_management">
17                                 <t t-set="object" t-value="event"/>
18                                 <t t-set="publish_edit" t-value="True"/>
19                                 <t t-set="publish_controller">/event/publish</t>
20                             </t>
21                         </div>
22                     </div>
23                     <div class="col-sm-5">
24                         <ul class="nav nav-pills pull-right mt16">
25                             <li class="active"><a href="#">Event</a></li>
26                             <li><a href="#">Agenda</a></li>
27                             <li><a href="#">Location</a></li>
28                             <li><a href="#">Registration</a></li>
29                         </ul>
30                     </div>
31                 </div>
32             </div>
33             <div class="oe_structure"/>
34           </div>
35         </t>
36     </template>
37
38     <template name="Sponsors" id="event_sponsor" inherit_option_id="website_event.layout" inherit_id="website_event.layout">
39         <xpath expr="//div[@id='wrap']" position="inside">
40             <div class="container mt32 mb16" t-if="event.sponsor_ids">
41                 <section data-snippet-id="title">
42                     <h2 class="text-center mb32">Our Sponsors</h2>
43                 </section>
44                 <div class="row">
45                     <div t-attf-class="col-md-#{(len(event.sponsor_ids) > 6) and 2 or (12/ len(event.sponsor_ids))} text-center" t-foreach="event.sponsor_ids" t-as="sponsor">
46                         <a href="sponsor.partner_id.website or '#'">
47                             <span t-field="sponsor.partner_id.image"
48                                 t-field-options='{"widget": "image", "class": "shadow"}'/>
49                         </a>
50                         <span t-field="sponsor.sponsor_type_id"/>
51                     </div>
52                 </div>
53             </div>
54         </xpath>
55     </template>
56
57     <template id="tracks">
58         <t t-call="website_event.event_details">
59             <div class="col-md-3 css_noprint">
60
61                 <ul class="nav nav-pills nav-stacked">
62                     <li t-att-class="'' if searches.get('tag') else 'active'"><a t-href="/event/#{ slug(event) }/track/">All</a></li>
63                     <t t-foreach="tags" t-as="tag">
64                         <li t-att-class="searches.get('tag') == tag.id and 'active' or ''">
65                             <a t-href="/event/#{ slug(event) }/track/tag/#{ slug(tag) }">
66                                 <t t-esc="tag.name"/>
67                             </a>
68                         </li>
69                     </t>
70                 </ul>
71             </div>
72             <div class="col-md-9">
73
74                 <ul class="media-list">
75                     <li t-foreach="tracks" t-as="track" class="media">
76                         <div class="media-body">
77                             <h4 class="media-heading">
78                                 <a t-href="/event/#{ slug(event) }/track/#{ slug(track) }"><span t-field="track.name"> </span></a>
79                                 <span t-field="track.date"/>
80                                 <!-- <small t-if="not track.website_published" class="label label-danger">not published</small> -->
81                             </h4>
82                             <div><span t-esc="html2text(track.description)[0:400]"/>...</div>
83                             <div>
84                                 <t t-foreach="track.tag_ids" t-as="tag_id">
85                                     <span class="label label-default" t-field="tag_id.name"/>
86                                 </t>
87                             </div>
88                         </div>
89                     </li>
90                 </ul>
91             </div>
92         </t>
93     </template>
94
95
96     <template id="track_view">
97         <t t-call="website_event.event_details">
98             <div class="col-md-8">
99                 <h2 t-field="track.name"/>
100                 <div t-field="track.description"/>
101             </div>
102             <div class="col-md-4">
103                 <div class="panel panel-default">
104                     <div class="panel-heading">
105                         <h4>Informations</h4>
106                     </div>
107                     <div class="panel-body">
108                         <t t-foreach="track.tag_ids" t-as="tag_id">
109                             <span class="label label-default" t-field="tag_id.name"/>
110                         </t>
111                     </div>
112                     <div class="panel-body">
113                         <b>Responsible</b><br/>
114                         <span t-field="track.user_id"/><br/>
115                         <b>Speakers</b><br/>
116                         <span t-field="track.speaker_ids"/><br/>
117                         <b>Date</b><br/>
118                         <span t-field="track.date"/><br/>
119                         <b>Duration</b><br/>
120                         <span t-field="track.duration"/><br/>
121                         <b>Location</b><br/>
122                         <span t-field="track.location_id"/><br/>
123                         <b>Stage</b><br/>
124                         <span t-field="track.stage_id"/><br/>
125                     </div>
126                 </div>
127             </div>
128         </t>
129     </template>
130
131
132     <template id="event_track_proposal">
133         <t t-call="website_event.layout">
134             <div class="oe_structure"/>
135             <div class="container">
136                 <section data-snippet-id="title">
137                     <h1 class="text-center mb0">Call for Proposals</h1>
138                     <h2 class="text-center text-muted mb32" t-esc="event.name"></h2>
139                 </section>
140                 <section id="forms" t-if="not event.show_track_proposal">
141                     <h1>Proposals are closed!</h1>
142                     <p>
143                         This event does not accept proposals.
144                     </p>
145                 </section>
146                 <section class="row">
147                     <div class="col-md-7">
148                         <div class="oe_structure">
149                             <section data-snippet-id="text">
150                                 <h3 class="page-header mt16">
151                                     Introduction
152                                 </h3>
153                                 <p>
154                                     We will accept a broad range of
155                                     presentations, from reports on academic and
156                                     commercial projects to tutorials and case
157                                     studies. As long as the presentation is
158                                     interesting and potentially useful to the
159                                     audience, it will be considered for
160                                     inclusion in the programme.
161                                 </p>
162                             </section>
163                             <section data-snippet-id="text">
164                                 <h3 class="page-header">Application</h3>
165                                 <p>
166                                     Fill this form to propose your talk.
167
168                                 </p>
169                             </section>
170                         </div>
171                         <section id="forms" t-if="event.show_track_proposal">
172                             <form class="form-horizontal mt32" action="/event/#{event.id}/track_proposal/success" method="post" enctype="multipart/form-data">
173                                 <div class="form-group">
174                                     <label class="col-md-3 col-sm-4 control-label" for="partner_name">Speaker Name</label>
175                                     <div class="col-md-7 col-sm-8">
176                                         <input type="text" class="form-control" name="partner_name" required="True" />
177                                     </div>
178                                 </div>
179                                 <div class="form-group">
180                                     <label class="col-md-3 col-sm-4 control-label" for="email_from">Your Email</label>
181                                     <div class="col-md-7 col-sm-8">
182                                         <input type="email" class="form-control" name="email_from" required="True" />
183                                     </div>
184                                 </div>
185                                 <div class="form-group">
186                                     <label class="col-md-3 col-sm-4 control-label" for="phone">Your Phone</label>
187                                     <div class="col-md-7 col-sm-8">
188                                         <input type="text" class="form-control" name="phone" required="True" />
189                                     </div>
190                                 </div>
191                                 <div class="form-group">
192                                     <label class="col-md-3 col-sm-4 control-label" for="phone">Tags</label>
193                                     <div class="col-md-7 col-sm-8">
194                                         <div class="row">
195                                             <div class="col-sm-4" t-foreach="event.allowed_track_tag_ids" t-as="tag">
196                                                 <input type="checkbox" t-att-value="tag.id" name="tags"/>
197                                                 <t t-esc="tag.name"/>
198                                             </div>
199                                         </div>
200                                     </div>
201                                 </div>
202                                 <div class="form-group">
203                                     <label class="col-md-3 col-sm-4 control-label" for="phone">Speaker Biography</label>
204                                     <div class="col-md-7 col-sm-8">
205                                         <textarea  class="form-control" name="biography" style="min-height: 120px"/>
206                                     </div>
207                                 </div>
208                                 <div class="form-group">
209                                     <label class="col-md-3 col-sm-4 control-label" for="description">Talk Introduction</label>
210                                     <div class="col-md-7 col-sm-8">
211                                         <textarea  class="form-control" name="description" style="min-height: 120px"/>
212                                     </div>
213                                 </div>
214                                 <div class="form-group">
215                                     <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
216                                         <button type="submit" class="btn btn-primary">Submit Proposal</button>
217                                     </div>
218                                 </div>
219                             </form>
220                         </section>
221                         <div class="oe_structure"/>
222                     </div><div class="col-md-4 col-md-offset-1">
223                         <div class="panel panel-default">
224                             <div class="panel-heading">
225                                 <h4>Talks Types</h4>
226                             </div>
227                             <div class="panel-body">
228                                 <ul class="list-unstyled">
229                                     <li>
230                                         <strong>Regular Talks</strong>. These are standard talks with slides,
231                                         alocated in slots of 30 minutes.
232                                     </li><li>
233                                         <strong>Lightning Talks</strong>. These are 10 minutes talks on many
234                                         different topics. Most topics are accepted in lightning talks.
235                                     </li>
236                                 </ul>
237                             </div>
238                         </div>
239
240
241                         <div class="panel panel-default">
242                             <div class="panel-heading">
243                                 <h4>Submission Agreement</h4>
244                             </div>
245                             <div class="panel-body">
246                                 <p>
247                                 We require speakers to accept an agreement in which they commit to:
248                                 </p>
249                                 <ul class="list-unstyled">
250                                     <li>
251                                         Timely release of presentation material (slides),
252                                         for publishing on our website.
253                                     </li><li>
254                                         Allow video and audio recording of their
255                                         presentation, for publishing on our website.
256                                     </li>
257                                 </ul>
258                             </div>
259                         </div>
260                     </div>
261                 </section>
262
263             </div>
264             <div class="oe_structure"/>
265         </t>
266     </template>
267
268
269     <template id="event_track_proposal_success">
270         <t t-call="website_event.event_details">
271             <div class="col-md-8">
272                 Thanks
273             </div>
274             <div class="col-md-4"></div>
275         </t>
276     </template>
277  </data>
278 </openerp>