Skip to content

Commit

Permalink
Add demo page.
Browse files Browse the repository at this point in the history
  • Loading branch information
yajo committed Jul 5, 2016
1 parent 6cf3127 commit 1511f74
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website_snippet_country_dropdown/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@
"views/assets.xml",
"views/snippets.xml",
],
"demo": [
"demo/pages.xml",
],
}
41 changes: 41 additions & 0 deletions website_snippet_country_dropdown/demo/pages.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- © 2016 Jairo Llopis <[email protected]>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<openerp>
<data>

<template id="demo_page" page="True" name="Country dropdown snippet test">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<section>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="text-center">This is a form</h1>
<h3 class="text-muted text-center">
Test here the country dropdown snippet behavior
</h3>
<form>
<t t-call="website_snippet_country_dropdown.dropdown_element_form">
<t t-set="label_country_dropdown">
Other label
</t>
</t>
</form>
</div>
</div>
</div>
</section>
</div>
</t>
</template>

<record id="demo_page_link" model="website.menu">
<field name="name">Country dropdown demo</field>
<field name="url">/page/website_snippet_country_dropdown.demo_page</field>
<field name="parent_id" ref="website.main_menu" />
<field name="sequence" type="int">50</field>
</record>

</data>
</openerp>

0 comments on commit 1511f74

Please sign in to comment.