Commits

Roger Haase  committed 4307c3e

fix for 329 foobar theme crashes with jinja2.exceptions.UndefinedError

  • Participants
  • Parent commits f1a134e

Comments (0)

Files changed (1)

File MoinMoin/themes/foobar/templates/layout.html

     <div id="moin-search">
     {{ gen.form.open(search_form, id='moin-searchform', method='get', action=url_for('frontend.search')) }}
         {{ gen.input(search_form['q'], type='search', id='moin-search-query', size='40') }}
-        {{ gen.button(search_form['submit'], type='submit', id='moin-search-submit') }}
+        {{ forms.render_submit(search_form, id='moin-search-submit') }}
         {{ forms.render_errors(search_form) }}
     {{ gen.form.close() }}
     </div>