Jump to content

onlyomaha

Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • First Name
    Shaun
  • Last Name
    Milfler

onlyomaha's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. So my left categories are dissapearing on phone. I've read alot about it here, but everyone suggest wrong thing that i need. My top horizontal menu is showing and showing it categories but only left cetagories block is dissapearing. I'll show some pictures for better understading, i need them to show somewhere on phone. 1st pic is default website. 2nd pic is downscaled so it shows how its on phone and missing categories. please help.
  2. So i have added this code to authentication.tpl <!DOCTYPE html> <html> <head> <style> button.accordion { background-color: #f6944b; color: white; cursor: pointer; padding: 18px; width: 100%; border: none; text-align: left; outline: none; font-size: 15px; transition: 0.4s; } button.accordion.active, button.accordion:hover { background-color: #f6944b; color: black; } div.panel { padding: 0 18px; background-color: white; max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; } </style> </head> <body> <button class="accordion">Juridiskām personām</button> <div class="panel"> <div class="account_creation"> <h3 class="page-subheading">{l s='Your company information'}</h3> <p class="form-group"> <label for="">{l s='Company'}</label> <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" /> </p> <div class="form-group"> <label for="my_field">{l s='Reģistrācijas numurs'}</label> <input id="my_field" class="form-control" name="my_field" type="text" value="{if isset($smarty.post.my_field)}{$smarty.post.my_field}{/if}" /> <span class="form_info">{l s='obligāts lauciņš priekš juridiskās personas'}</span> </div> <div class="form-group"> <label for="my_field">{l s='PVN maksātāja numurs:'}</label> <input id="my_field" class="form-control" name="my_field" type="text" value="{if isset($smarty.post.my_field)}{$smarty.post.my_field}{/if}" /> <span class="form_info">{l s='obligāts lauciņš priekš juridiskās personas'}</span> </div> <div class="form-group"> <label for="my_field">{l s='Bankas nosaukums:'}</label> <input id="my_field" class="form-control" name="my_field" type="text" value="{if isset($smarty.post.my_field)}{$smarty.post.my_field}{/if}" /> <span class="form_info">{l s='obligāts lauciņš priekš juridiskās personas'}</span> </div> <div class="form-group"> <label for="my_field">{l s='Bankas kods:'}</label> <input id="my_field" class="form-control" name="my_field" type="text" value="{if isset($smarty.post.my_field)}{$smarty.post.my_field}{/if}" /> <span class="form_info">{l s='obligāts lauciņš priekš juridiskās personas'}</span> </div> <div class="form-group"> <label for="my_field">{l s='Bankas konta numurs:'}</label> <input id="my_field" class="form-control" name="my_field" type="text" value="{if isset($smarty.post.my_field)}{$smarty.post.my_field}{/if}" /> <span class="form_info">{l s='obligāts lauciņš priekš juridiskās personas'}</span> </div> </div> </div> <script> var acc = document.getElementsByClassName("accordion"); var i; for (i = 0; i < acc.length; i++) { acc.onclick = function() { this.classList.toggle("active"); var panel = this.nextElementSibling; if (panel.style.maxHeight){ panel.style.maxHeight = null; } else { panel.style.maxHeight = panel.scrollHeight + "px"; } } } </script> </body> </html> It works fine as i wanted but i have problem, it refreshes page after 1 second and page goes 1 step back to entering email. Whats wrong with code? How to prevent it? please help
  3. http://image.prntscr.com/image/66d3dece7cf34e68ab587fc4031acac7.png I want to move it near the edge where header ends. No clue how to do it.
×
×
  • Create New...