Add Form.mobile
flag and set link button styles accordingly
This commit is contained in:
parent
046a70c5f6
commit
ff7341d272
2 changed files with 7 additions and 2 deletions
|
@ -80,7 +80,11 @@ ${h.csrf_token(request)}
|
|||
<input type="reset" value="Reset" />
|
||||
% endif
|
||||
% if getattr(form, 'show_cancel', True):
|
||||
${h.link_to("Cancel", form.cancel_url, class_='cancel button{}'.format(' autodisable' if form.auto_disable_cancel else ''))}
|
||||
% if form.mobile:
|
||||
${h.link_to("Cancel", form.cancel_url, class_='ui-btn ui-corner-all')}
|
||||
% else:
|
||||
${h.link_to("Cancel", form.cancel_url, class_='cancel button{}'.format(' autodisable' if form.auto_disable_cancel else ''))}
|
||||
% endif
|
||||
% endif
|
||||
</div>
|
||||
% endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue