Changeset 445


Ignore:
Timestamp:
10/08/10 20:59:29 (13 years ago)
Author:
misc
Message:
  • move the whole form to change the language in the template
Location:
trunk/root/templates/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/templates/includes/header.tt

    r427 r445  
    2222<div id="header"> 
    2323    <p id="title"><b>Epoll:</b> [% l('Web voting system') %]</p> 
    24         <form style="float: right" action="[% c.uri_for('/', c.req.path) %]" method="POST"> 
    25         [% INCLUDE 'includes/locale_select.tt' %] 
    26         <input type="submit"> 
    27         </form> 
     24    [% INCLUDE 'includes/locale_select.tt' %] 
    2825    <p id="menu" style="clear: both;"> 
    2926    <a href="[% c.uri_for('/') %]">[% l('Welcome') %]</a> :: 
  • trunk/root/templates/includes/locale_select.tt

    r434 r445  
    11<!-- $Id$ --> 
     2<form style="float: right" action="[% c.uri_for('/', c.req.path) %]" method="POST"> 
     3 
    24[% langs = [ 'fr', 'de' ] %] 
    35<select name="[% varname || 'locale' %]"> 
     
    79[% END %] 
    810</select> 
     11        <input type="submit" value="[% l('Change language') %]"> 
     12        </form> 
Note: See TracChangeset for help on using the changeset viewer.