snippet part2 + fix edtiable

bzr revid: al@openerp.com-20130702194540-afw5419mqgrht5r0
This commit is contained in:
Antony Lesuisse 2013-07-02 21:45:40 +02:00
parent 69aeff7d6f
commit 9317633c7a
3 changed files with 80 additions and 110 deletions

View File

@ -12,7 +12,7 @@ def template_values():
loggued = True
uid = request.session._uid
except http.SessionExpiredException:
loggued = True
loggued = False
uid = openerp.SUPERUSER_ID
values = {
'loggued': loggued,

View File

@ -82,7 +82,7 @@ $(function(){
make_editable();
event.preventDefault();
}
$('.oe_snippet').click(snippet_click);
//$('.oe_snippet').click(snippet_click);
var hover_element = null;

View File

@ -88,116 +88,86 @@
<p class="oe_website_copy text-center">&amp;copy; <span t-record="res_company" t-field="name">Company name</span>.</p>
</footer>
<div class='oe_snippet_editor'>
<div class='oe_snippet_list'>
<div class='oe_snippet' name='Screenshot' selafter='.oe_span6' selinside='.oe_row'>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<a href="#">
<img src="https://www.openerp.com/apps/point_of_sale/pos_sc_02.jpg"/>
</a>
</div>
</div>
</div>
<div class='oe_snippet' name='Introduction' selafter='.oe_container'>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">A very friendly Point of Sale</h2>
<h3 class="oe_slogan">Set up in a minute, Sell in seconds</h3>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<a href="#">
<img src="https://www.openerp.com/apps/point_of_sale/pos_sc_02.jpg"/>
</a>
<div class='oe_snippet_editor' style="display: none;">
<div class='oe_snippet_list'>
<div class='oe_snippet' name='Screenshot' selafter='.oe_span6' selinside='.oe_row'>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<a href="#">
<img src="https://www.openerp.com/apps/point_of_sale/pos_sc_02.jpg"/>
</a>
</div>
</div>
</div>
<div class='oe_snippet' name='Introduction' selafter='.oe_container'>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">A very friendly Point of Sale</h2>
<h3 class="oe_slogan">Set up in a minute, Sell in seconds</h3>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<a href="#">
<img src="https://www.openerp.com/apps/point_of_sale/pos_sc_02.jpg"/>
</a>
</div>
</div>
<div class="oe_span6">
<p class='oe_mt32'>
OpenERP's Point of Sale introduces a super clean interface with no installation required
that runs online and offline on modern hardwares.
</p>
<p>
It's full integration with the company inventory and accounting, gives you real time statistics and
consolidations amongst all shops without the hassle of integrating several applications.
</p>
<div class="oe_centeralign oe_websiteonly">
<a href="http://www.openerp.com/start" class="oe_button oe_big oe_tacky">Start your <span class="oe_emph">free</span> trial</a>
</div>
</div>
</div>
</section>
</div>
<div class='oe_snippet' name='Call To Action' selafter='p,h1,h2,h3,h4,h5,ul,ol' selinside='.oe_span6'>
<div class="oe_centeralign oe_websiteonly">
<a href="http://www.openerp.com/start" class="oe_button oe_big oe_tacky">Start your <span class="oe_emph">free</span> trial</a>
</div>
</div>
<div class='oe_snippet' name='Alternate Paragraph' selafter='.oe_container'>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">A very friendly Point of Sale</h2>
<h3 class="oe_slogan">Set up in a minute, Sell in seconds</h3>
</div>
<div class="oe_span6">
<p class='oe_mt32'>
OpenERP's Point of Sale introduces a super clean interface with no installation required
that runs online and offline on modern hardwares.
</p>
<p>
It's full integration with the company inventory and accounting, gives you real time statistics and
consolidations amongst all shops without the hassle of integrating several applications.
</p>
<div class="oe_centeralign oe_websiteonly">
<a href="http://www.openerp.com/start" class="oe_button oe_big oe_tacky">Start your <span class="oe_emph">free</span> trial</a>
</div>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<a href="#">
<img src="https://www.openerp.com/apps/point_of_sale/pos_sc_02.jpg"/>
</a>
</div>
</div>
</div>
</section>
</div>
<div class='oe_snippet oe_new' name='New Snippet'>
</div>
</div>
</div>
<div class="oe_span6">
<p class='oe_mt32'>
OpenERP's Point of Sale introduces a super clean interface with no installation required
that runs online and offline on modern hardwares.
</p>
<p>
It's full integration with the company inventory and accounting, gives you real time statistics and
consolidations amongst all shops without the hassle of integrating several applications.
</p>
<div class="oe_centeralign oe_websiteonly">
<a href="http://www.openerp.com/start" class="oe_button oe_big oe_tacky">Start your <span class="oe_emph">free</span> trial</a>
</div>
</div>
</div>
</section>
</div>
<div class='oe_snippet' name='Call To Action' selafter='p,h1,h2,h3,h4,h5,ul,ol' selinside='.oe_span6'>
<div class="oe_centeralign oe_websiteonly">
<a href="http://www.openerp.com/start" class="oe_button oe_big oe_tacky">Start your <span class="oe_emph">free</span> trial</a>
</div>
</div>
<div class='oe_snippet' name='Alternate Paragraph' selafter='.oe_container'>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">A very friendly Point of Sale</h2>
<h3 class="oe_slogan">Set up in a minute, Sell in seconds</h3>
</div>
<div class="oe_span6">
<p class='oe_mt32'>
OpenERP's Point of Sale introduces a super clean interface with no installation required
that runs online and offline on modern hardwares.
</p>
<p>
It's full integration with the company inventory and accounting, gives you real time statistics and
consolidations amongst all shops without the hassle of integrating several applications.
</p>
<div class="oe_centeralign oe_websiteonly">
<a href="http://www.openerp.com/start" class="oe_button oe_big oe_tacky">Start your <span class="oe_emph">free</span> trial</a>
</div>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<a href="#">
<img src="https://www.openerp.com/apps/point_of_sale/pos_sc_02.jpg"/>
</a>
</div>
</div>
</div>
</section>
</div>
<div class='oe_snippet oe_new' name='New Snippet'>
</div>
</div>
</div>
<div class='oe_page' contenteditable="true">
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">A very friendly Point of Sale</h2>
<h3 class="oe_slogan">Set up in a minute, Sell in seconds</h3>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<a href="#">
<img src="https://www.openerp.com/apps/point_of_sale/pos_sc_02.jpg"/>
</a>
</div>
</div>
<div class="oe_span6">
<p class='oe_mt32'>
OpenERP's Point of Sale introduces a super clean interface with no installation required
that runs online and offline on modern hardwares.
</p>
<p>
It's full integration with the company inventory and accounting, gives you real time statistics and
consolidations amongst all shops without the hassle of integrating several applications.
</p>
<div class="oe_centeralign oe_websiteonly">
<a href="http://www.openerp.com/start" class="oe_button oe_big oe_tacky">Start your <span class="oe_emph">free</span> trial</a>
</div>
</div>
</div>
</section>
</div>