Auto-disable button when sending email preview
This commit is contained in:
parent
29e023096b
commit
f17d7355e0
2 changed files with 4 additions and 5 deletions
tailbone/templates/settings/email
|
@ -1,4 +1,4 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
## -*- coding: utf-8; -*-
|
||||
<%inherit file="/master/view.mako" />
|
||||
|
||||
<%def name="head_tags()">
|
||||
|
@ -21,8 +21,9 @@
|
|||
|
||||
${parent.body()}
|
||||
|
||||
${h.form(url('email.preview'), name='send-email-preview')}
|
||||
${h.form(url('email.preview'), name='send-email-preview', class_='autodisable')}
|
||||
${h.csrf_token(request)}
|
||||
${h.hidden('email_key', value=instance['key'])}
|
||||
${h.link_to("Preview HTML", '{}?key={}&type=html'.format(url('email.preview'), instance['key']), id='preview-html', class_='button', target='_blank')}
|
||||
${h.link_to("Preview TXT", '{}?key={}&type=txt'.format(url('email.preview'), instance['key']), id='preview-txt', class_='button', target='_blank')}
|
||||
or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue