[IMP] demo data events
bzr revid: fp@openerp.com-20130928201840-v12rwigq2k13sspe
This commit is contained in:
parent
ecc6f3eaa1
commit
650d4a9f51
|
@ -43,7 +43,7 @@
|
|||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<page string="Tarifs">
|
||||
<page string="Ticket Types">
|
||||
<field name="event_ticket_ids" context="{'default_name': name}">
|
||||
<tree string="Payments" editable="bottom">
|
||||
<field name="name"/>
|
||||
|
|
|
@ -34,6 +34,7 @@ class product(osv.osv):
|
|||
class event(osv.osv):
|
||||
_inherit = 'event.event'
|
||||
_columns = {
|
||||
'twitter_hashtag': fields.char('Twitter Hashtag'),
|
||||
'website_published': fields.boolean('Available in the website'),
|
||||
# TDE TODO FIXME: when website_mail/mail_thread.py inheritance work -> this field won't be necessary
|
||||
'website_message_ids': fields.one2many(
|
||||
|
|
|
@ -12,5 +12,20 @@
|
|||
<field name="state">open</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="view_event_twitter_form" model="ir.ui.view">
|
||||
<field name="name">view_event_twitter_form</field>
|
||||
<field name="model">event.event</field>
|
||||
<field name="inherit_id" ref="event.view_event_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="//field[@name='speaker_confirmed']" position="after">
|
||||
<field name="twitter_hashtag"/>
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
<record id="event.event_0" model="event.event">
|
||||
<field name="website_published">True</field>
|
||||
<field name="twitter_hashtag">openerp</field>
|
||||
<field name="description"><![CDATA[
|
||||
<div class="carousel slide oe_small mb16" data-interval="10000" data-snippet-id="carousel" id="myCarousel3">
|
||||
<div class="carousel-inner">
|
||||
|
@ -163,169 +164,7 @@
|
|||
|
||||
<record id="event.event_1" model="event.event">
|
||||
<field name="website_published">True</field>
|
||||
<field name="description"><![CDATA[
|
||||
<div class="carousel slide oe_small mb16" data-interval="10000" data-snippet-id="carousel" id="myCarousel3">
|
||||
<div class="carousel-inner">
|
||||
<div class="item active image_text"><img height="100%" src="/website/static/src/img/banner/orange_red.jpg" width="100%"><div class="container">
|
||||
<div class="carousel-caption content">
|
||||
<h2>5 Intensive Days</h2>
|
||||
|
||||
<h4>to learn .JS development</h4>
|
||||
</div>
|
||||
|
||||
<div class="carousel-image hidden-xs"><img alt="Banner OpenERP Image" src="/website/static/src/img/banner/banner_picture.png"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center mb8 mt0" data-snippet-id="colmd">
|
||||
<h2>Course Summary</h2>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 mt16 mb0" data-snippet-id="colmd">
|
||||
<p><span style="text-align: -webkit-center; ">This course is dedicated to developers who need to grasp knowledge of the <strong>business applications development </strong>process. This course is for new developers or for IT professionals eager to learn more about technical aspects.</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center mt0 mb16" data-snippet-id="colmd">
|
||||
<h2>What you will learn?</h2>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4" data-snippet-id="colmd">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading text-center">
|
||||
<h2 style="margin: 0">Day 1</h2>
|
||||
|
||||
<p class="text-muted" style="margin: 0">Introduction to Javascript</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-group"><li class="list-group-item">Hello World</li>
|
||||
<li class="list-group-item">Variables & Operators</li>
|
||||
<li class="list-group-item">Dive into Strings</li>
|
||||
<li class="list-group-item">Functions</li>
|
||||
<li class="list-group-item">Loops</li>
|
||||
<li class="list-group-item">Arrays</li>
|
||||
</ul><div class="panel-footer text-center">
|
||||
<p class="text-muted"><i>You will be able to develop simple dynamic compenents in HTML pages.</i></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4" data-snippet-id="colmd">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading text-center">
|
||||
<h2 style="margin: 0">Day 2</h2>
|
||||
|
||||
<p class="text-muted" style="margin: 0">OpenERP Web Client</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-group"><li class="list-group-item">Introduction to JQuery</li>
|
||||
<li class="list-group-item">Advanced JQuery</li>
|
||||
<li class="list-group-item">Underscore</li>
|
||||
<li class="list-group-item">Introduction to QWeb</li>
|
||||
<li class="list-group-item">Controlers and Views</li>
|
||||
<li class="list-group-item">Bootstrap CSS</li>
|
||||
<li class="list-group-item">Calling the ORM</li>
|
||||
</ul><div class="panel-footer text-center">
|
||||
<p class="text-muted"><i>You will be able to create dynamic page interacting with the ORM.</i></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4" data-snippet-id="colmd">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading text-center">
|
||||
<h2 style="margin: 0">Day 3</h2>
|
||||
|
||||
<p class="text-muted" style="margin: 0">Building a Full Application</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-group"><li class="list-group-item">Modules</li>
|
||||
<li class="list-group-item">Python Objects</li>
|
||||
<li class="list-group-item">Report Engine</li>
|
||||
<li class="list-group-item">Workflows</li>
|
||||
<li class="list-group-item">Training Center Module</li>
|
||||
<li class="list-group-item">Integrated Help</li>
|
||||
<li class="list-group-item">How to Debug</li>
|
||||
</ul><div class="panel-footer text-center">
|
||||
<p class="text-muted"><i>You will be able to develop a full application with backend and user interface.</i></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center mb16 mt0" data-snippet-id="colmd">
|
||||
<h2>Requirements</h2>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 mb16 mt16" data-snippet-id="colmd">
|
||||
<p><strong>Objectives:</strong></p>
|
||||
|
||||
<p>Having attended this course, participants should be able to:</p>
|
||||
|
||||
<ul><li>Understand the development concepts and architecture;</li>
|
||||
<li>Install and administer your own server;</li>
|
||||
<li>Develop a new module for a particular application.</li>
|
||||
</ul><p></p>
|
||||
|
||||
<p><strong>Our prices include:</strong></p>
|
||||
|
||||
<ul><li>drinks and lunch;</li>
|
||||
<li>training material.</li>
|
||||
</ul><p></p>
|
||||
|
||||
<p><strong>Requirements:</strong></p>
|
||||
|
||||
<ul><li>Bring your own laptop.</li>
|
||||
<li>Participants are expected to have some knowledge in programming. A basic knowledge of the Python programming is recommended.</li>
|
||||
<li>Participants preferably have a functional knowledge of our software (see Functional Training).</li>
|
||||
</ul><p></p>
|
||||
|
||||
<p>To get more information, visit the <a href="http://openerp.com/">OpenERP Official Website</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="container dark">
|
||||
<div class="row">
|
||||
<div class="col-md-12" data-snippet-id="colmd">
|
||||
<h1 class="text-center">A great content...</h1>
|
||||
|
||||
<h3 class="text-muted text-center">What do people say about this course?</h3>
|
||||
</div>
|
||||
|
||||
<div class="mt16 mb32 col-md-6" data-snippet-id="colmd">
|
||||
<blockquote data-snippet-id="quote">
|
||||
<p>I did not expect such a great learning experience. I feel like I can develop anything now.</p>
|
||||
<small>John Doe, CEO</small></blockquote>
|
||||
</div>
|
||||
|
||||
<div class="mt16 mb32 col-md-6" data-snippet-id="colmd">
|
||||
<blockquote data-snippet-id="quote">
|
||||
<p>This course help me build my first application within a month. Definetly worth its price.</p>
|
||||
<small>John Doe, CEO</small></blockquote>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
]]></field> </record>
|
||||
|
||||
<record id="event.event_2" model="event.event">
|
||||
<field name="website_published">True</field>
|
||||
</record>
|
||||
|
||||
<record id="event.event_3" model="event.event">
|
||||
<field name="website_published">True</field>
|
||||
<field name="twitter_hashtag">openerp</field>
|
||||
<field name="description"><![CDATA[
|
||||
<div class="carousel slide oe_small mb16" data-interval="10000" data-snippet-id="carousel" id="myCarousel3">
|
||||
<div class="carousel-inner">
|
||||
|
@ -483,6 +322,172 @@
|
|||
</div>
|
||||
]]></field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="event.event_2" model="event.event">
|
||||
<field name="website_published">True</field>
|
||||
<field name="twitter_hashtag">openerp</field>
|
||||
</record>
|
||||
|
||||
<record id="event.event_3" model="event.event">
|
||||
<field name="website_published">True</field>
|
||||
<field name="twitter_hashtag">openerp</field>
|
||||
<field name="description"><![CDATA[
|
||||
<div class="carousel slide oe_small mb16" data-interval="10000" data-snippet-id="carousel" id="myCarousel3">
|
||||
<div class="carousel-inner">
|
||||
<div class="item active image_text"><img height="100%" src="/website/static/src/img/banner/orange_red.jpg" width="100%"><div class="container">
|
||||
<div class="carousel-caption content">
|
||||
<h2>5 Intensive Days</h2>
|
||||
|
||||
<h4>to learn .JS development</h4>
|
||||
</div>
|
||||
|
||||
<div class="carousel-image hidden-xs"><img alt="Banner OpenERP Image" src="/website/static/src/img/banner/banner_picture.png"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center mb8 mt0" data-snippet-id="colmd">
|
||||
<h2>Course Summary</h2>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 mt16 mb0" data-snippet-id="colmd">
|
||||
<p><span style="text-align: -webkit-center; ">This course is dedicated to developers who need to grasp knowledge of the <strong>business applications development </strong>process. This course is for new developers or for IT professionals eager to learn more about technical aspects.</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center mt0 mb16" data-snippet-id="colmd">
|
||||
<h2>What you will learn?</h2>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4" data-snippet-id="colmd">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading text-center">
|
||||
<h2 style="margin: 0">Day 1</h2>
|
||||
|
||||
<p class="text-muted" style="margin: 0">Introduction to Javascript</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-group"><li class="list-group-item">Hello World</li>
|
||||
<li class="list-group-item">Variables & Operators</li>
|
||||
<li class="list-group-item">Dive into Strings</li>
|
||||
<li class="list-group-item">Functions</li>
|
||||
<li class="list-group-item">Loops</li>
|
||||
<li class="list-group-item">Arrays</li>
|
||||
</ul><div class="panel-footer text-center">
|
||||
<p class="text-muted"><i>You will be able to develop simple dynamic compenents in HTML pages.</i></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4" data-snippet-id="colmd">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading text-center">
|
||||
<h2 style="margin: 0">Day 2</h2>
|
||||
|
||||
<p class="text-muted" style="margin: 0">OpenERP Web Client</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-group"><li class="list-group-item">Introduction to JQuery</li>
|
||||
<li class="list-group-item">Advanced JQuery</li>
|
||||
<li class="list-group-item">Underscore</li>
|
||||
<li class="list-group-item">Introduction to QWeb</li>
|
||||
<li class="list-group-item">Controlers and Views</li>
|
||||
<li class="list-group-item">Bootstrap CSS</li>
|
||||
<li class="list-group-item">Calling the ORM</li>
|
||||
</ul><div class="panel-footer text-center">
|
||||
<p class="text-muted"><i>You will be able to create dynamic page interacting with the ORM.</i></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4" data-snippet-id="colmd">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading text-center">
|
||||
<h2 style="margin: 0">Day 3</h2>
|
||||
|
||||
<p class="text-muted" style="margin: 0">Building a Full Application</p>
|
||||
</div>
|
||||
|
||||
<ul class="list-group"><li class="list-group-item">Modules</li>
|
||||
<li class="list-group-item">Python Objects</li>
|
||||
<li class="list-group-item">Report Engine</li>
|
||||
<li class="list-group-item">Workflows</li>
|
||||
<li class="list-group-item">Training Center Module</li>
|
||||
<li class="list-group-item">Integrated Help</li>
|
||||
<li class="list-group-item">How to Debug</li>
|
||||
</ul><div class="panel-footer text-center">
|
||||
<p class="text-muted"><i>You will be able to develop a full application with backend and user interface.</i></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center mb16 mt0" data-snippet-id="colmd">
|
||||
<h2>Requirements</h2>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 mb16 mt16" data-snippet-id="colmd">
|
||||
<p><strong>Objectives:</strong></p>
|
||||
|
||||
<p>Having attended this course, participants should be able to:</p>
|
||||
|
||||
<ul><li>Understand the development concepts and architecture;</li>
|
||||
<li>Install and administer your own server;</li>
|
||||
<li>Develop a new module for a particular application.</li>
|
||||
</ul><p></p>
|
||||
|
||||
<p><strong>Our prices include:</strong></p>
|
||||
|
||||
<ul><li>drinks and lunch;</li>
|
||||
<li>training material.</li>
|
||||
</ul><p></p>
|
||||
|
||||
<p><strong>Requirements:</strong></p>
|
||||
|
||||
<ul><li>Bring your own laptop.</li>
|
||||
<li>Participants are expected to have some knowledge in programming. A basic knowledge of the Python programming is recommended.</li>
|
||||
<li>Participants preferably have a functional knowledge of our software (see Functional Training).</li>
|
||||
</ul><p></p>
|
||||
|
||||
<p>To get more information, visit the <a href="http://openerp.com/">OpenERP Official Website</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="container dark">
|
||||
<div class="row">
|
||||
<div class="col-md-12" data-snippet-id="colmd">
|
||||
<h1 class="text-center">A great content...</h1>
|
||||
|
||||
<h3 class="text-muted text-center">What do people say about this course?</h3>
|
||||
</div>
|
||||
|
||||
<div class="mt16 mb32 col-md-6" data-snippet-id="colmd">
|
||||
<blockquote data-snippet-id="quote">
|
||||
<p>I did not expect such a great learning experience. I feel like I can develop anything now.</p>
|
||||
<small>John Doe, CEO</small></blockquote>
|
||||
</div>
|
||||
|
||||
<div class="mt16 mb32 col-md-6" data-snippet-id="colmd">
|
||||
<blockquote data-snippet-id="quote">
|
||||
<p>This course help me build my first application within a month. Definetly worth its price.</p>
|
||||
<small>John Doe, CEO</small></blockquote>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
]]></field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -63,16 +63,12 @@
|
|||
<li t-foreach="event_ids" t-as="event" class="media" data-publish="">
|
||||
<t t-call="website.publish_management"><t t-set="object" t-value="event"/></t>
|
||||
<div class="media-body">
|
||||
<span t-if="not event.event_ticket_ids" class="label label-default pull-right">No tickets needed.</span>
|
||||
<span t-if="not event.event_ticket_ids" class="label label-danger pull-right">Registration Closed</span>
|
||||
<t t-if="event.event_ticket_ids">
|
||||
<span t-if="event.register_avail == 9999" class="label label-default pull-right label-info">Tickets availables.</span>
|
||||
<span t-if="not event.register_avail" class="label label-default pull-right">No ticket available.</span>
|
||||
<span t-if="event.register_avail == 9999" class="label label-default pull-right label-info">Tickets Available</span>
|
||||
<span t-if="not event.register_avail" class="label label-danger pull-right">Sold Out</span>
|
||||
<span t-if="event.register_avail and event.register_avail != 9999" t-attf-class="label label-default pull-right label-#{ event.register_avail <= 10 and 'warning' or 'info' }">
|
||||
<t t-if="event.register_avail <= 10">Only</t>
|
||||
<t t-esc="event.register_avail"/>
|
||||
<t t-if="event.register_avail > 1">tickets</t>
|
||||
<t t-if="event.register_avail == 1">ticket</t>
|
||||
available.
|
||||
Tickets Available
|
||||
</span>
|
||||
</t>
|
||||
<h4 class="media-heading"><a t-href="/event/#{ event.id }/"><span t-field="event.name"> </span></a></h4>
|
||||
|
@ -190,7 +186,7 @@
|
|||
<hr/>
|
||||
</form>
|
||||
<div t-field="event_id.description"></div>
|
||||
<hr/>
|
||||
<div class="clearfix"/>
|
||||
<ul class="media-list" id="comment">
|
||||
<li t-foreach="event_id.website_message_ids" t-as="comment" class="media">
|
||||
<div class="media-body">
|
||||
|
@ -259,10 +255,21 @@
|
|||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4>Share</h4>
|
||||
<h4>Social Stream</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<t t-call="website_mail.follow"><t t-set="object" t-value="event_id"/></t>
|
||||
<div t-if="event_id.twitter_hashtag">
|
||||
<p><strong>Join the Experience</strong></p>
|
||||
<p class="text-muted">
|
||||
Find out what others are seeing and
|
||||
saying about this event, and join the
|
||||
conversation.
|
||||
</p>
|
||||
<p><strong>Use this tag:
|
||||
<a t-att-href="'twitter.com/search?q=#'+event_id.twitter_hashtag" class="label label-primary">#<span t-field="event_id.twitter_hashtag"/></a>
|
||||
</strong></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue