web/views/basecomponents.py
changeset 5819 1017163825c7
parent 5478 c52124b7a00e
child 5854 b49f58a320e6
equal deleted inserted replaced
5818:6d8c479fcd98 5819:1017163825c7
    57         req = self._cw
    57         req = self._cw
    58         self.w(u'''<div id="rqlinput" class="%s">
    58         self.w(u'''<div id="rqlinput" class="%s">
    59           <form action="%s">
    59           <form action="%s">
    60 <fieldset>
    60 <fieldset>
    61 <input type="text" id="rql" name="rql" value="%s"  title="%s" tabindex="%s" accesskey="q" class="searchField" />
    61 <input type="text" id="rql" name="rql" value="%s"  title="%s" tabindex="%s" accesskey="q" class="searchField" />
    62 <input type="submit" value="" class="rqlsubmit" tabindex="%s" />
       
    63 </fieldset>
    62 </fieldset>
    64 ''' % (not self.cw_propval('visible') and 'hidden' or '',
    63 ''' % (not self.cw_propval('visible') and 'hidden' or '',
    65        self._cw.build_url('view'), xml_escape(rql), req._('full text or RQL query'), req.next_tabindex(),
    64        self._cw.build_url('view'), xml_escape(rql), req._('full text or RQL query'), req.next_tabindex()))
    66         req.next_tabindex()))
       
    67         if self._cw.search_state[0] != 'normal':
    65         if self._cw.search_state[0] != 'normal':
    68             self.w(u'<input type="hidden" name="__mode" value="%s"/>'
    66             self.w(u'<input type="hidden" name="__mode" value="%s"/>'
    69                    % ':'.join(req.search_state[1]))
    67                    % ':'.join(req.search_state[1]))
    70         self.w(u'</form></div>')
    68         self.w(u'</form></div>')
    71 
    69