odoo/addons/website_event_track/views/website_event.xml

432 lines
21 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template name="Sponsors" id="event_sponsor" inherit_option_id="website_event.layout" inherit_id="website_event.layout">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="head">
<link rel='stylesheet' href='/website_event_track/static/src/css/website_event_track.css'/>
<t t-raw="head or ''"/>
</t>
</xpath>
<xpath expr="//div[@id='wrap']" position="inside">
<div class="container mt32 mb16 hidden-print" t-if="event.sponsor_ids">
<section data-snippet-id="title">
<h2 class="text-center mb32">Our Sponsors</h2>
</section>
<div class="row">
<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">
<t t-if="sponsor.has_access_to_partner()">
<a t-attf-href="/partners/#{ slug([sponsor.partner_id.id, sponsor.partner_id.name]) }" style="position: relative; display: inline-block;">
<span t-field="sponsor.partner_id.image"
t-field-options='{"widget": "image", "class": "shadow"}'/>
<div class="ribbon-wrapper">
<div t-field="sponsor.sponsor_type_id" t-attf-class="ribbon ribbon_#{sponsor.sponsor_type_id.name}"/>
</div>
</a>
</t>
<t t-if="not sponsor.has_access_to_partner()">
<span style="position: relative; display: inline-block;">
<span t-field="sponsor.partner_id.image"
t-field-options='{"widget": "image", "class": "shadow"}'/>
<div class="ribbon-wrapper">
<div t-field="sponsor.sponsor_type_id" t-attf-class="ribbon ribbon_#{sponsor.sponsor_type_id.name}"/>
</div>
</span>
</t>
</div>
</div>
</div>
</xpath>
</template>
<template id="agenda">
<t t-call="website_event.layout">
<section data-snippet-id="title">
<h1 class="text-center mb0" t-field="event.name"/>
</section>
<section class="container">
<div class="row">
<div id="left_column">
</div>
<div class="col-md-12" id="right_column">
<p class="text-muted fa fa-info-circle"> You can click on cells to highlight your interests.</p>
<h3 class="page-header mt0">
Monday, 3rd June
<small>23 talks</small>
</h3>
<table class="table table-bordered table-condensed">
<tr>
<th></th>
<th class="active"><a href="#">Room 1</a></th>
<th class="active"><a href="#">Room 2</a></th>
<th class="active"><a href="#">Room 3</a></th>
<th class="active"><a href="#">Room 5</a></th>
<th class="active"><a href="#">Room 6</a></th>
</tr>
<tr>
<td class="active"><b>09:00</b><br/><span class="text-muted">10:00</span></td>
<th colspan="5" class="success text-center">
<a href="#">Plenary Session</a><br/>
Room 5
</th>
</tr>
<tr>
<td class="active"><b>10:00</b><br/><span class="text-muted">10:30</span></td>
<td><a href="#">fkdsj kl jkl sdfjksdfj kl</a></td>
<td rowspan="2" class="danger"><a href="#">Learning Python</a></td>
<td></td>
<td><a href="#">Learning Pytdon</a></td>
<td><a href="#">Boost your Sales Witd OpenERP CRM</a></td>
</tr>
<tr>
<th class="active">10:30<br/><span class="text-muted">11:00</span></th>
<td></td>
<td>Boost your Sales Witd OpenERP CRM</td>
<td>Learning Pytdon</td>
<td rowspan="2">fkdsj kl jkl sdfjksdfj kl</td>
</tr>
<tr>
<th class="active">11:00<br/><span class="text-muted">12:00</span></th>
<td class="danger">Learning Pytdon</td>
<td>Boost your Sales Witd OpenERP CRM</td>
<td>Learning Pytdon</td>
<td>this is a test</td>
</tr>
<tr class="active">
<td colspan="6" class="text-center text-muted"><span class="fa fa-clock-o"/></td>
</tr>
<tr>
<th class="active">14:00<br/><span class="text-muted">15:00</span></th>
<td>Boost your Sales Witd OpenERP CRM</td>
<td class="danger">Learning Pytdon</td>
<td></td>
<td>fkdsj kl jkl sdfjksdfj kl</td>
<td>fkdsj kl jkl sdfjksdfj kl</td>
</tr><tr>
<td class="active"><b>10:00</b><br/><span class="text-muted">10:30</span></td>
<td>fkdsj kl jkl sdfjksdfj kl</td>
<td rowspan="2" class="danger">Learning Python</td>
<td></td>
<td>Learning Pytdon</td>
<td>Boost your Sales Witd OpenERP CRM</td>
</tr>
<tr>
<th class="active">10:30<br/><span class="text-muted">11:00</span></th>
<td></td>
<td>Boost your Sales Witd OpenERP CRM</td>
<td>Learning Pytdon</td>
<td rowspan="2">fkdsj kl jkl sdfjksdfj kl</td>
</tr>
</table>
</div>
</div>
</section>
</t>
</template>
<template id="tracks">
<t t-call="website_event.event_details">
<div id="left_column">
</div>
<div class="col-md-9">
<div class="alert alert-warning" t-if="not len(tracks)">
No tracks found!
</div>
<div class="row mb32" t-foreach="tracks" t-as="track">
<div class="col-sm-2">
<t t-if="track.image">
<span t-field="track.image"
t-field-options='{"widget": "image", "class": "img-circle"}'/>
</t>
</div>
<div class="col-sm-10">
<h3 class="mt0 mb0">
<a t-attf-href="/event/#{ slug(event) }/track/#{ slug(track) }"><span t-field="track.name"> </span></a>
<small t-if="not track.website_published" class="label label-danger">not published</small>
</h3>
<ul class="list-inline mb0">
<li t-if="track.speaker_ids" class="text-muted fa fa-user">
<t t-foreach="track.speaker_ids" t-as="speaker">
<t t-esc="speaker.name"/>,
</t>
</li>
<li class="text-muted fa fa-calendar"> <span t-field="track.date"/></li>
<li class="text-muted fa fa-map-marker" t-if="track.location_id">
<span t-field="track.location_id"/>
</li>
</ul>
<ul class="list-inline">
<li t-foreach="track.tag_ids" t-as="tag_id" class="text-muted fa fa-tags">
<a t-attf-href="/event/#{ slug(event) }/track/tag/#{ slug(tag_id) }">
<span t-field="tag_id.name"/>
</a>
</li>
</ul>
<p class="mt8"><t t-esc="html2text(track.description or '')[0:500]"/>...</p>
</div>
</div>
</div>
</t>
</template>
<template id="tracks_filter" inherit_id="website_event_track.tracks" inherit_option_id="website_event_track.tracks" name="Filter on Tags">
<xpath expr="//div[@id='left_column']" position="inside">
<ul class="nav nav-pills nav-stacked">
<li t-att-class="'' if searches.get('tag') else 'active'"><a t-attf-href="/event/#{ slug(event) }/track/">All Tags</a></li>
<t t-foreach="tags" t-as="tag">
<li t-att-class="searches.get('tag') == tag.id and 'active' or ''">
<a t-attf-href="/event/#{ slug(event) }/track/tag/#{ slug(tag) }">
<t t-esc="tag.name"/>
</a>
</li>
</t>
</ul>
</xpath>
<xpath expr="//div[@id='left_column']" position="attributes">
<attribute name="class">col-md-3 css_no_print</attribute>
</xpath>
</template>
<template id="track_view">
<t t-call="website_event.layout">
<div class="container">
<h2 t-field="track.name" class="text-center"/>
<h3 t-field="event.name" class="text-center text-muted"/>
<ul t-if="track.tag_ids" class="text-center text-muted list-inline">
<li t-foreach="track.tag_ids" t-as="tag_id" class="fa fa-tags">
<a t-attf-href="/event/#{ slug(event) }/track/tag/#{ slug(tag_id) }">
<span t-field="tag_id.name"/>
</a>
</li>
</ul>
<section class="row mt32">
<div class="col-md-8">
<div t-field="track.description"/>
<div t-foreach="track.speaker_ids" t-as="speaker" class="well mt32">
<div class="row">
<div class="col-sm-2">
<span t-field="speaker.image"
t-field-options='{"widget": "image", "class": "img-circle"}'/>
</div><div class="col-sm-10">
<h4 t-field="speaker.name" class="mb4"/>
<div class="fa fa-home mb16" t-if="speaker.website">
<a t-att-href="speaker.website"><span t-field="speaker.website"/></a>
</div>
<div t-field="speaker.website_description"/>
</div>
</div>
</div>
</div>
<div class="col-md-4" id="right_column">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Practical Info</h4>
</div>
<div class="panel-body">
<b>Date</b><br/>
<span t-field="track.date"/><br/>
<b>Duration</b><br/>
<span t-field="track.duration"/> minutes<br/>
<b>Location</b><br/>
<span t-field="track.location_id"/><br/>
</div>
</div>
<div class="panel panel-default" t-if="False">
<div class="panel-heading">
<h4>Documents</h4>
</div>
<div class="panel-body">
Put here the list of documents, like slides of
the presentations. Remove the above t-if when
it's implemented.
</div>
</div>
</div>
</section>
</div>
</t>
</template>
<template id="event_track_social" name="Social Widgets" inherit_option_id="website_event_track.track_view">
<xpath expr="//div[@id='right_column']" position="inside">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Social Stream</h4>
</div>
<div class="panel-body">
<t t-call="website_mail.follow"><t t-set="object" t-value="event"/></t>
<div t-if="event.twitter_hashtag" class="mt16">
<p><strong>Participate on Twitter</strong></p>
<p class="text-muted">
Find out what people see and say about this event,
and join the conversation.
</p>
<p><strong>Use this tag:
<a t-att-href="'http://twitter.com/search?q=#'+event.twitter_hashtag" class="label label-primary">#<span t-field="event.twitter_hashtag"/></a>
</strong></p>
</div>
</div>
</div>
</xpath>
</template>
<template id="event_track_proposal">
<t t-call="website_event.layout">
<div class="oe_structure"/>
<div class="container">
<section data-snippet-id="title">
<h1 class="text-center mb0">Call for Proposals</h1>
<h2 class="text-center text-muted mb32" t-esc="event.name"></h2>
</section>
<section id="forms" t-if="not event.show_track_proposal">
<h1>Proposals are closed!</h1>
<p>
This event does not accept proposals.
</p>
</section>
<section class="row">
<div class="col-md-8">
<div class="oe_structure">
<section data-snippet-id="text">
<h3 class="page-header mt16">
Introduction
</h3>
<p>
We will accept a broad range of
presentations, from reports on academic and
commercial projects to tutorials and case
studies. As long as the presentation is
interesting and potentially useful to the
audience, it will be considered for
inclusion in the programme.
</p>
</section>
<section data-snippet-id="text">
<h3 class="page-header">Application</h3>
<p>
Fill this form to propose your talk.
</p>
</section>
</div>
<section id="forms" t-if="event.show_track_proposal">
<form class="form-horizontal mt32" t-attf-action="/event/#{event.id}/track_proposal/post" method="post" enctype="multipart/form-data">
<div class="form-group">
<label class="col-md-3 col-sm-4 control-label" for="partner_name">Your Name</label>
<div class="col-md-7 col-sm-8">
<input type="text" class="form-control" name="partner_name" required="True" />
</div>
</div>
<div class="form-group">
<label class="col-md-3 col-sm-4 control-label" for="email_from">Your Email</label>
<div class="col-md-7 col-sm-8">
<input type="email" class="form-control" name="email_from" required="True" />
</div>
</div>
<div class="form-group">
<label class="col-md-3 col-sm-4 control-label" for="phone">Your Phone</label>
<div class="col-md-7 col-sm-8">
<input type="text" class="form-control" name="phone" required="True" />
</div>
</div>
<div class="form-group" t-if="len(event.allowed_track_tag_ids)">
<label class="col-md-3 col-sm-4 control-label" for="phone">Tags</label>
<div class="col-md-9 col-sm-8">
<div class="row">
<label class="col-sm-4" t-foreach="event.allowed_track_tag_ids" t-as="tag">
<input type="checkbox" value="1" t-attf-name="tag_#{str(tag.id)}"/>
<t t-esc="tag.name"/>
</label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-3 col-sm-4 control-label" for="track_name">Talk Title</label>
<div class="col-md-7 col-sm-8">
<input type="text" class="form-control" name="track_name" required="True"/>
</div>
</div>
<div class="form-group">
<label class="col-md-3 col-sm-4 control-label" for="phone">Speaker Biography</label>
<div class="col-md-7 col-sm-8">
<textarea class="form-control" name="biography" style="min-height: 120px"/>
</div>
</div>
<div class="form-group">
<label class="col-md-3 col-sm-4 control-label" for="description">Talk Introduction</label>
<div class="col-md-7 col-sm-8">
<textarea class="form-control" name="description" style="min-height: 120px"/>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
<button type="submit" class="btn btn-primary">Submit Proposal</button>
</div>
</div>
</form>
</section>
<div class="oe_structure"/>
</div><div class="col-md-3 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Talks Types</h4>
</div>
<div class="panel-body">
<ul class="list-unstyled">
<li>
<strong>Regular Talks</strong>. These are standard talks with slides,
alocated in slots of 30 minutes.
</li><li>
<strong>Lightning Talks</strong>. These are 10 minutes talks on many
different topics. Most topics are accepted in lightning talks.
</li>
</ul>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4>Submission Agreement</h4>
</div>
<div class="panel-body">
<p>
We require speakers to accept an agreement in which they commit to:
</p>
<ul class="list-unstyled">
<li>
Timely release of presentation material (slides),
for publishing on our website.
</li><li>
Allow video and audio recording of their
presentation, for publishing on our website.
</li>
</ul>
</div>
</div>
</div>
</section>
</div>
<div class="oe_structure"/>
</t>
</template>
<template id="event_track_proposal_success">
<t t-call="website_event.event_details">
<div class="col-md-8">
Thanks
</div>
<div class="col-md-4"></div>
</t>
</template>
</data>
</openerp>