In my Opencart site, calendar is working properly in admin panel Sales Analytics map. I have used same code to show calendar at catalog, where it isn't working. What am I doing wrong?
I have given sample code to show calendar
<div class="pull-right">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-calendar"></i><i class="caret"></i>
</a>
<ul id="besttime" class="dropdown-menu dropdown-menu-right">
<li>
<?php echo $text_week; ?>
</li>
<li>
<?php echo $text_month; ?>
</li>
<li class="active">
<?php echo $text_year; ?>
</li>
</ul>
</div>
Related
i have customized reports and i notice that when i have a report composed of more than one page my footer displays only in the first page however i want my footer displays in all pages . I'm using odoo 9. Any help please ? Here is my code
<div class="footer" style="position:absolute;bottom:-1115px">
<div class="text-center" style="border-top: 1px solid black;">
<small>
<ul t-if="not company.custom_footer" class="list-inline">
<li t-if="company.phone">Phone:
<span t-field="company.phone"/>
</li>
<li t-if="company.fax and company.phone">•</li>
<li t-if="company.fax">Fax:
<span t-field="company.fax"/>
</li>
<li t-if="company.email and company.fax or company.email and company.phone">
•
</li>
<t t-if="company.vat">TVA:
<span t-field="company.vat"/>
</t>
<li t-if="company.company_registry">RC:
<span t-field="company.company_registry"/>
</li>
</ul>
</small>
<small>
<ul class="list-inline">
<t t-set="nbr_page" t-value="1"/>
<li>Page:</li>
<t t-set="compteur" t-value="nbr_page+1"/>
<li>
<span class="page"/>
<t t-esc="nbr_page"/>
</li>
/
<t t-esc="nbr_page"/>
<li>
<span class="topage"/>
</li>
</ul>
</small>
<t t-set="nbr_page" t-value="1"/>
<t t-set="compteur" t-value="nbr_page+1"/>
</div>
</div>
SO far I've installed django-postman and it works so fine and successfully updated the default template just fine but now i want to use the django-postman tags in someother pages such as the navbar ... but i can't get it to work
here is a look at my
<li class="dropdown messages-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-envelope-o"></i>
<span class="label label-success">4</span>
</a>
<ul class="dropdown-menu">
<li class="header">You have 4 messages</li>
<li>
<!-- inner menu: contains the actual data -->
<ul class="menu">
<li><!-- start message -->
<a href="#">
<div class="pull-left">
<img src="{{ user.user.photo.url }}" class="img-circle" alt="User photo">
</div>
{% block pm_sender_cell %} <h4 class="mailbox-name">{{ message.obfuscated_sender|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}</h4>{% endblock %}
<small><i class="fa fa-clock-o"></i> 5 min</small>
<p>Message Excerpt</p>
</a>
</li><!-- end message -->
...
</ul>
</li>
<li class="footer">See All Messages</li>
</ul>
</li>
my question is how can i make django-postman tags work on all my pages not only in /messages/inbox
I'm using WebStorm with education purposes. I have used Vim, SublimeText and Brackets with emmet plugin and when I expand an expression it is automatically formatted. For example, if I write:
nav>ul>li*2>a.item>img.ico+p.txt
I get:
<nav>
<ul>
<li>
<a href="" class="item">
<img src="" alt="" class="ico">
<p class="txt"></p>
</a>
</li>
<li>
<a href="" class="item">
<img src="" alt="" class="ico">
<p class="txt"></p>
</a>
</li>
</ul>
</nav>
But in WebStorm I get:
<nav>
<ul>
<li><a href="" class="item"><img src="" alt="" class="ico">
<p class="txt"></p>
</a></li>
<li><a href="" class="item"><img src="" alt="" class="ico">
<p class="txt"></p>
</a></li>
</ul>
</nav>
Exists a configuration that I can do to get a formated code expanding an expression with emmet in WebStorm?
You can adjust the Code Style settings in Settings / Editor / Code Style / HTML.
In your case you would exclude a and img from Other / Inline elements, so they get a new line.
for passing the pagination of a site with python, i want to find the last page of a website.
i inspect the element of the page by firebug
<div class="pagination">
<ul>
<li>
<a>
<img src="/images" class="pagination-l">
</a>
</li>
<li style="float:left;">
<a id="toPage" title="A" class="page-number actif" href="/d">
1
</a>
</li>
<li style="float:left;">
<a id="toPage_0" title="A2" class="p" href="/ew">
2
</a>
</li>
<li style="float:left;">
<a id="toPage_1" title="A3" class="p3" href="/t3">
3
</a>
</li>
<li style="float:left;">...</li>
<li style="float:left;">
<a id="toPage_2" title="t" class="p" href="t2">
5
</a>
</li>
<li>
<a id="nextPage" title="next(2)" href="/test1">
<img src="test.png" class="pagination-r">
</a>
</li>
</ul>
</div>
Here the number that i want is 5
Use a combination of a parser and regex:
from bs4 import BeautifulSoup
import re
html = your_html_here
soup = BeautifulSoup(html, "html5lib")
links = soup.findAll('a', text=re.compile('^\s*\d+\s*$'))
number = links[-1].string.strip()
print number
# 5
See a demo on ideone.com
I´ve implemented the Foundation Off-Canvas Menu as a Multilevel Menu. When I use the original code example from the documentation, I´ve the problem, that the submenu isn´t working. It´s shown but it´s not formated (sub-levels not hidden) and the click event to open the submenu is also not triggered.
To me it looks like some parts are not compiled although I compile the whole foundation framework, not only specific modules.
Has anybody an idea where I can start searching? The other parts of the menu work great.
Here´s the HTML code:
<aside class="left-off-canvas-menu" aria-hidden="true">
<ul class="off-canvas-list">
<li><label>Navigationsmenü</label></li>
<li><i class="fa fa-shopping-cart"></i> Mein Warenkorb</li>
<li><i class="fa fa-arrow-right"></i> Zur Kasse</li>
<li><label>Mein Konto</label></li>
<li class="my-account">
<div class="avatar">
<img src="<?php echo "http://www.gravatar.com/avatar/" . md5( strtolower( trim( 'mail#mail.com' ) ) ) . "?s=100";?>" class="avatar" alt="Avatar" />
</div>
<div class="user">
<span class="title">John Doe</span>
<span class="email">email#email.com</span>
</div>
<div class="clearfix"></div>
<i class="fa fa-user"></i> Meine Daten ändern
</li>
<li><i class="fa fa-home"></i> Adressbuch bearbeiten</li>
<li><i class="fa fa-truck"></i> Meine Bestellungen</li>
<li><i class="fa fa-lock"></i> Passwort ändern</li>
<li><i class="fa fa-envelope"></i> E-Mail Adresse ändern</li>
<li><i class="fa fa-power-off"></i> Ausloggen</li>
<li><label>Produktkategorien</label></li>
<li class="has-submenu">Aktionen
<ul class="left-submenu">
<li class="back">Zurück</li>
<li><label>Level 1</label></li>
<li>Sonderangebote der Woche</li>
<li>Monatsaktionen</li>
<li>Spezialaktionen
<li>Maximal sparen</li>
</ul>
</li>
<li>Gutscheine</li>
<li class="has-submenu">Ernährung
<ul class="left-submenu">
<li class="back">Zurück</li>
<li><label>Level 1</label></li>
<li>Nahrungsergänzungsmittel</li>
<li>Vitamine & Mineralstoffe</li>
<li>Spezialnahrung
<li>Gesund abnehmen</li>
<li>Sportlernahrung</li>
</ul>
</li>
</ul>
</aside>
And that´s the SCSS file (app.scss):
#import "compass/css3/border-radius";
#import "compass/css3/box-shadow";
#import "settings";
#import "foundation";
Thanks,
Michael