Commits

xiaq committed ff77f6d

substitute forms.render_button with forms.render_submit

  • Participants
  • Parent commits 490c13d

Comments (0)

Files changed (2)

File MoinMoin/templates/forms.html

   <input type="hidden" name="{{ name }}" value="{{ value }}" />
 {% endmacro %}
 
-{% macro render_button(text) %}
-  <button type="submit">{{ text }}</button>
-{% endmacro %}
-
 {% macro render_submit(form) %}
   {{ gen.input(type='submit', value=form.submit_label, class='button', **kwargs) }}
 {% endmacro %}

File MoinMoin/templates/usersettings_forms.html

     {{ forms.render(form['locale']) }}
 </dl>
 {{ forms.render_hidden('part', 'personal') }}
-{{ forms.render_button(_("Save")) }}
+{{ forms.render_submit(form) }}
 {{ gen.form.close() }}
 {% endmacro %}
 
     {{ forms.render(form['password2']) }}
 </dl>
 {{ forms.render_hidden('part', 'password') }}
-{{ forms.render_button(_("Change password")) }}
+{{ forms.render_submit(form) }}
 {{ gen.form.close() }}
 {% endmacro %}
 
     {{ forms.render(form['email']) }}
 </dl>
 {{ forms.render_hidden('part', 'notification') }}
-{{ forms.render_button(_("Save")) }}
+{{ forms.render_submit(form) }}
 {{ gen.form.close() }}
 {% endmacro %}
 
     {{ forms.render(form['results_per_page']) }}
 </dl>
 {{ forms.render_hidden('part', 'ui') }}
-{{ forms.render_button(_("Save")) }}
+{{ forms.render_submit(form) }}
 {{ gen.form.close() }}
 {% endmacro %}
 
     {# TODO: find a good way to handle quicklinks #}
 </dl>
 {{ forms.render_hidden('part', 'navigation') }}
-{{ forms.render_button(_("Save")) }}
+{{ forms.render_submit(form) }}
 {{ gen.form.close() }}
 {% endmacro %}
 
     {{ forms.render(form['disabled']) }}
 </dl>
 {{ forms.render_hidden('part', 'options') }}
-{{ forms.render_button(_("Save")) }}
+{{ forms.render_submit(form) }}
 {{ gen.form.close() }}
 {% endmacro %}