[IMP] hr_timesheet_sheet: improve stat button in timesheet to show Number of hour
[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="assets_frontend" inherit_id="website.assets_frontend" name="Website Event Track Assets">
6     <xpath expr="." position="inside">
7         <script type="text/javascript" src="/website_event_track/static/src/js/website_event_track.js"></script>
8     </xpath>
9 </template>
10
11 <template name="Sponsors" id="event_sponsor" customize_show="True" inherit_id="website_event.layout">
12     <xpath expr="//div[@id='wrap']" position="inside">
13         <div class="container mt32 mb16 hidden-print" t-if="event.sponsor_ids">
14             <section>
15                 <h2 class="text-center mb32">Our Sponsors</h2>
16             </section>
17             <div class="row">
18                 <div t-attf-class="col-md-#{(len(event.sponsor_ids) > 6) and 2 or (12/ len(event.sponsor_ids))} text-center mb16 oe_sponsor" t-foreach="event.sponsor_ids" t-as="sponsor">
19                     <t t-if="sponsor.url">
20                         <a t-att-href="sponsor.url" style="position: relative; display: inline-block;">
21                             <span t-field="sponsor.image_medium"
22                                 t-field-options='{"widget": "image", "class": "shadow"}'/>
23                             <div class="ribbon-wrapper">
24                                 <div t-field="sponsor.sponsor_type_id" t-attf-class="ribbon ribbon_#{sponsor.sponsor_type_id.name}"/>
25                             </div>
26                         </a>
27                     </t>
28                     <t t-if="not sponsor.url">
29                         <span style="position: relative; display: inline-block;">
30                             <span t-field="sponsor.image_medium"
31                                 t-field-options='{"widget": "image", "class": "shadow"}'/>
32                             <div class="ribbon-wrapper">
33                                 <div t-field="sponsor.sponsor_type_id" t-attf-class="ribbon ribbon_#{sponsor.sponsor_type_id.name}"/>
34                             </div>
35                         </span>
36                     </t>
37                 </div>
38             </div>
39         </div>
40     </xpath>
41 </template>
42
43 <template id="agenda">
44     <t t-call="website_event.layout">
45         <section class="container">
46             <h1 class="text-center" t-field="event.name"/>
47             <div class="form-inline pull-right">
48                 <label class="invisible text-muted" id="search_summary"><span id="search_number">0</span> Found </label>
49                 <input type="text" class="form-control" placeholder="Filter Tracks..." id="event_track_search"/>
50             </div>
51         </section>
52         <t t-set="dayslist" t-value="days.keys()"/>
53         <t t-set="dayslist2" t-value="dayslist.sort()"/> <!-- display days in the right order -->
54         <section class="container" t-foreach="dayslist" t-as="day">
55             <t t-set="locations" t-value="days[day]['locations']"/>
56             <t t-set="dates" t-value="days[day]['dates']"/>
57             <h3 class="page-header mt0">
58                 <t t-esc="day"/>
59                 <small><t t-esc="days_nbr[day]"/> talks</small>
60             </h3>
61             <table id="table_search" class="table table-bordered table-condensed">
62             <tr>
63                 <th/>
64                 <t t-foreach="locations.keys()" t-as="location">
65                     <th t-if="location" class="active">
66                         <span t-esc="location and location.name or 'Unknown'"/>
67                     </th>
68                 </t>
69             </tr>
70             <tr t-foreach="dates" t-as="dt">
71                 <td class="active">
72                     <b t-esc="dt[0].strftime('%H:%M')"/>
73                 </td>
74                 <t t-if="dt[2]"> <!-- Not a multi location -->
75                     <t t-foreach="locations" t-as="location">
76                         <t t-if="location and dt[1].get(location, False)">
77                             <t t-set="track" t-value="dt[1][location][0]"/>
78                             <t t-if="track">
79                                 <td t-att-rowspan="dt[1][location][3]" t-attf-class="event_color_#{track.color} #{track and 'event_track' or ''}">
80                                     <t t-if="track">
81                                         <a t-attf-href="/event/#{ slug(event) }/track/#{ slug(track) }">
82                                             <span t-esc="track and track.name"/>
83                                         </a>
84                                         <div class="text-muted">
85                                             <small t-esc="speakers[track.id]"/>
86                                         </div>
87                                     </t>
88                                 </td>
89                             </t>
90                             <td t-if="not track" t-att-rowspan="dt[1][location][3]" class="event_track"/>
91                         </t>
92                     </t>
93                 </t><t t-if="not dt[2]">
94                     <t t-set="track" t-value="dt[1][False][0]"/>
95                     <td t-att-colspan="len(locations)-1" t-attf-class="text-center event_color_#{track.color} #{track and 'event_track' or ''}">
96                         <a t-attf-href="/event/#{ slug(event) }/track/#{ slug(track) }">
97                             <span t-esc="track.name"/>
98                         </a>
99                         <div class="text-muted">
100                             <small t-esc="speakers[track.id]"/>
101                         </div>
102                     </td>
103                 </t>
104             </tr>
105             </table>
106         </section>
107     </t>
108 </template>
109
110
111 <template id="tracks">
112     <t t-call="website_event.event_details">
113         <div id="left_column">
114         </div>
115         <div class="col-md-9">
116             <div class="alert alert-warning" t-if="not len(tracks)">
117                 No tracks found!
118             </div>
119             <div class="row mb32" t-foreach="tracks" t-as="track">
120                 <div class="col-sm-2">
121                     <t t-if="track.image">
122                         <span t-field="track.image"
123                             t-field-options='{"widget": "image", "class": "img-circle"}'/>
124                     </t>
125                 </div>
126                 <div class="col-sm-10">
127                     <h3 class="mt0 mb0">
128                         <a t-attf-href="/event/#{ slug(event) }/track/#{ slug(track) }"><span t-field="track.name"> </span></a>
129                         <small t-if="not track.website_published" class="label label-danger">not published</small>
130                     </h3>
131                     <ul class="list-inline mb0">
132                         <li t-if="track.speaker_ids" class="text-muted fa fa-user">
133                             <t t-esc="', '.join([speaker.name for speaker in track.speaker_ids])"></t>
134                         </li>
135                         <li class="text-muted fa fa-calendar"> <span t-field="track.date" t-field-options='{"hide_seconds":"True"}'/></li>
136                         <li class="text-muted fa fa-map-marker" t-if="track.location_id">
137                             <span t-field="track.location_id"/>
138                         </li>
139                     </ul>
140                     <ul class="list-inline">
141                         <li t-foreach="track.tag_ids" t-as="tag_id" class="text-muted fa fa-tags">
142                             <a t-attf-href="/event/#{ slug(event) }/track/tag/#{ slug(tag_id) }">
143                                 <span t-field="tag_id.name"/>
144                             </a>
145                         </li>
146                     </ul>
147                     <p class="mt8"><t t-esc="html2text(track.description or '')[0:500]"/>...</p>
148                 </div>
149             </div>
150         </div>
151     </t>
152 </template>
153
154 <template id="tracks_filter" inherit_id="website_event_track.tracks" customize_show="True" name="Filter on Tags">
155     <xpath expr="//div[@id='left_column']" position="inside">
156         <ul class="nav nav-pills nav-stacked">
157             <li t-att-class="'' if searches.get('tag') else 'active'"><a t-attf-href="/event/#{ slug(event) }/track">All Tags</a></li>
158             <t t-foreach="tags" t-as="tag">
159                 <li t-att-class="searches.get('tag') == tag.id and 'active' or ''">
160                     <a t-attf-href="/event/#{ slug(event) }/track/tag/#{ slug(tag) }">
161                         <t t-esc="tag.name"/>
162                     </a>
163                 </li>
164             </t>
165         </ul>
166     </xpath>
167     <xpath expr="//div[@id='left_column']" position="attributes">
168         <attribute name="class">col-md-3 css_no_print</attribute>
169     </xpath>
170 </template>
171
172
173
174 <template id="track_view">
175     <t t-call="website_event.layout">
176         <div class="container">
177             <t t-call="website.publish_management">
178                 <t t-set="object" t-value="track"/>
179                 <t t-set="publish_edit" t-value="True"/>
180             </t>
181             <div class="clearfix"/>
182
183             <h2 t-field="track.name" class="text-center"/>
184             <h3 t-field="event.name" class="text-center text-muted"/>
185             <ul t-if="track.tag_ids" class="text-center text-muted list-inline">
186                 <li t-foreach="track.tag_ids" t-as="tag_id">
187                     <span class="fa fa-tags"></span>
188                     <a t-attf-href="/event/#{ slug(event) }/track/tag/#{ slug(tag_id) }">
189                         <span t-field="tag_id.name"/>
190                     </a>
191                 </li>
192             </ul>
193
194             <section class="row mt32">
195                 <div class="col-md-8">
196                     <div t-field="track.description"/>
197                     <div t-foreach="track.speaker_ids" t-as="speaker" class="well mt32">
198                         <div class="row">
199                             <div class="col-sm-2">
200                                 <span t-field="track.image"
201                                     t-field-options='{"widget": "image", "class": "img-circle"}'/>
202                             </div><div class="col-sm-10">
203                                <h4 t-field="speaker.name" class="mb4"/>
204                                <div class="fa fa-home mb16" t-if="speaker.website">
205                                    <a t-att-href="speaker.website"><span t-field="speaker.website"/></a>
206                                </div>
207                                <div t-field="speaker.website_description"/>
208                             </div>
209                         </div>
210                     </div>
211                 </div>
212                 <div class="col-md-4" id="right_column">
213                     <div class="panel panel-default">
214                         <div class="panel-heading">
215                             <h4>Practical Info</h4>
216                         </div>
217                         <div class="panel-body">
218                             <b>Date</b><br/>
219                             <span t-field="track.date" t-field-options='{"hide_seconds":"True"}'/><br/>
220                             <b>Duration</b><br/>
221                             <span t-field="track.duration" t-field-options="{&quot;widget&quot;: &quot;duration&quot;, &quot;unit&quot;: &quot;hour&quot;}"/><br/>
222                             <b>Location</b><br/>
223                             <span t-field="track.location_id"/><br/>
224                         </div>
225                     </div>
226
227                     <div class="panel panel-default" t-if="False">
228                         <div class="panel-heading">
229                             <h4>Documents</h4>
230                         </div>
231                         <div class="panel-body">
232                             Put here the list of documents, like slides of
233                             the presentations. Remove the above t-if when
234                             it's implemented.
235                         </div>
236                     </div>
237                 </div>
238             </section>
239         </div>
240     </t>
241 </template>
242
243 <template id="event_track_social" name="Social Widgets" inherit_id="website_event_track.track_view" active="False" customize_show="True">
244     <xpath expr="//div[@id='right_column']" position="inside">
245         <div class="panel panel-default">
246             <div class="panel-heading">
247                 <h4>Social Stream</h4>
248             </div>
249             <div class="panel-body">
250                 <t t-call="website_mail.follow"><t t-set="object" t-value="event"/></t>
251                 <div t-if="event.twitter_hashtag" class="mt16">
252                     <p><strong>Participate on Twitter</strong></p>
253                     <p class="text-muted">
254                         Find out what people see and say about this event, 
255                         and join the conversation.
256                     </p>
257                     <p><strong>Use this tag:
258                         <a t-att-href="'http://twitter.com/search?q=#'+event.twitter_hashtag" class="label label-primary">#<span t-field="event.twitter_hashtag"/></a>
259                     </strong></p>
260                 </div>
261             </div>
262         </div>
263     </xpath>
264 </template>
265
266 <template id="event_track_proposal">
267     <t t-call="website_event.layout">
268         <div class="oe_structure"/>
269         <div class="container">
270             <section>
271                 <h1 class="text-center mb0">Call for Proposals</h1>
272                 <h2 class="text-center text-muted mb32" t-esc="event.name"></h2>
273             </section>
274             <section id="forms" t-if="not event.show_track_proposal">
275                 <h1>Proposals are closed!</h1>
276                 <p>
277                     This event does not accept proposals.
278                 </p>
279             </section>
280             <section class="row">
281                 <div class="col-md-8">
282                     <div class="oe_structure">
283                         <section>
284                             <h3 class="page-header mt16">
285                                 Introduction
286                             </h3>
287                             <p>
288                                 We will accept a broad range of
289                                 presentations, from reports on academic and
290                                 commercial projects to tutorials and case
291                                 studies. As long as the presentation is
292                                 interesting and potentially useful to the
293                                 audience, it will be considered for
294                                 inclusion in the programme.
295                             </p>
296                         </section>
297                         <section>
298                             <h3 class="page-header">Application</h3>
299                             <p>
300                                 Fill this form to propose your talk.
301
302                             </p>
303                         </section>
304                     </div>
305                     <section id="forms" t-if="event.show_track_proposal">
306                         <form class="form-horizontal mt32" t-attf-action="/event/#{event.id}/track_proposal/post" method="post" enctype="multipart/form-data">
307                             <div class="form-group">
308                                 <label class="col-md-3 col-sm-4 control-label" for="partner_name">Your Name</label>
309                                 <div class="col-md-7 col-sm-8">
310                                     <input type="text" class="form-control" name="partner_name" required="True" />
311                                 </div>
312                             </div>
313                             <div class="form-group">
314                                 <label class="col-md-3 col-sm-4 control-label" for="email_from">Your Email</label>
315                                 <div class="col-md-7 col-sm-8">
316                                     <input type="email" class="form-control" name="email_from" required="True" />
317                                 </div>
318                             </div>
319                             <div class="form-group">
320                                 <label class="col-md-3 col-sm-4 control-label" for="phone">Your Phone</label>
321                                 <div class="col-md-7 col-sm-8">
322                                     <input type="text" class="form-control" name="phone" required="True" />
323                                 </div>
324                             </div>
325                             <div class="form-group" t-if="len(event.allowed_track_tag_ids)">
326                                 <label class="col-md-3 col-sm-4 control-label" for="phone">Tags</label>
327                                 <div class="col-md-9 col-sm-8">
328                                     <div class="row">
329                                         <label class="col-sm-4" t-foreach="event.allowed_track_tag_ids" t-as="tag">
330                                             <input type="checkbox" value="1" t-attf-name="tag_#{str(tag.id)}"/>
331                                             <t t-esc="tag.name"/>
332                                         </label>
333                                     </div>
334                                 </div>
335                             </div>
336                             <div class="form-group">
337                                 <label class="col-md-3 col-sm-4 control-label" for="track_name">Talk Title</label>
338                                 <div class="col-md-7 col-sm-8">
339                                     <input type="text" class="form-control" name="track_name" required="True"/>
340                                 </div>
341                             </div>
342                             <div class="form-group">
343                                 <label class="col-md-3 col-sm-4 control-label" for="phone">Speaker Biography</label>
344                                 <div class="col-md-7 col-sm-8">
345                                     <textarea  class="form-control" name="biography" style="min-height: 120px"/>
346                                 </div>
347                             </div>
348                             <div class="form-group">
349                                 <label class="col-md-3 col-sm-4 control-label" for="description">Talk Introduction</label>
350                                 <div class="col-md-7 col-sm-8">
351                                     <textarea  class="form-control" name="description" style="min-height: 120px"/>
352                                 </div>
353                             </div>
354                             <div class="form-group">
355                                 <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
356                                     <button type="submit" class="btn btn-primary">Submit Proposal</button>
357                                 </div>
358                             </div>
359                         </form>
360                     </section>
361                     <div class="oe_structure"/>
362                 </div><div class="col-md-3 col-md-offset-1">
363                     <div class="panel panel-default">
364                         <div class="panel-heading">
365                             <h4>Talks Types</h4>
366                         </div>
367                         <div class="panel-body">
368                             <ul class="list-unstyled">
369                                 <li>
370                                     <strong>Regular Talks</strong>. These are standard talks with slides,
371                                     alocated in slots of 60 minutes.
372                                 </li><li>
373                                     <strong>Lightning Talks</strong>. These are 30 minutes talks on many
374                                     different topics. Most topics are accepted in lightning talks.
375                                 </li>
376                             </ul>
377                         </div>
378                     </div>
379
380
381                     <div class="panel panel-default">
382                         <div class="panel-heading">
383                             <h4>Submission Agreement</h4>
384                         </div>
385                         <div class="panel-body">
386                             <p>
387                             We require speakers to accept an agreement in which they commit to:
388                             </p>
389                             <ul class="list-unstyled">
390                                 <li>
391                                     Timely release of presentation material (slides),
392                                     for publishing on our website.
393                                 </li><li>
394                                     Allow video and audio recording of their
395                                     presentation, for publishing on our website.
396                                 </li>
397                             </ul>
398                         </div>
399                     </div>
400                 </div>
401             </section>
402
403         </div>
404         <div class="oe_structure"/>
405     </t>
406 </template>
407
408 <template id="event_track_proposal_success">
409     <t t-call="website_event.event_details">
410         <p>
411             Thank you for your proposal.
412         </p><p>
413             We will evaluate your proposition and get back to you shortly.
414         </p>
415     </t>
416 </template>
417
418 </data>
419 </openerp>