Created
February 9, 2015 14:29
-
-
Save DeskWOW/d1e5b8f0546d62c1c037 to your computer and use it in GitHub Desktop.
How to modify your single email widget to allow previewing new form code -- https://your-site.desk.com/customer/widget/emails/new?ticket[labels_new]=preview
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if ticket.labels_new == "preview" %} | |
This is where your new form's code would go. | |
{% else %} | |
<div class="customer_widget" id="customer_widget_main"> | |
<div class="inside_title" style="font-size:25px"><img src= | |
"http://www.ebookconversion.biz/images/coffeecup_logo_banner_b.jpg"></div> | |
<div class="inside_desc"> | |
CONTACT BOOKNOOK.BIZ NOW! | |
</div> | |
<div class="customer_inner_widget"> | |
{% if current_user.is_guest %} | |
<div class="input"> | |
<span class="form_label">First name:</span> <input class="default l" id= | |
"customer_first_name" name="customer[first_name]" type="text"> | |
</div> | |
<div class="input"> | |
<span class="form_label">Last name:</span><br> | |
<input class="default l" id="customer_last_name" name= | |
"customer[last_name]" type="text"> | |
</div> | |
<div class="input"> | |
<span class="form_label">Your email address:</span> {{ interaction_email | |
}} | |
</div>{% endif %} | |
<div class="input"> | |
<span class="form_label">Subject:</span> {{ email_subject }} | |
</div> | |
<div class="input"> | |
<span class="form_label">Tell us what you need:</span> {{ email_body }} | |
</div> | |
<div class="input"> | |
<span class="form_label">Book Title:</span> {{ ticket_custom_book_title | |
}} | |
</div> | |
<div class='input'> | |
<span class='form_label'>File Attachment - one file only (under 20MB in | |
size). If you need to send more than one file, tell us in your message | |
and we'll send you a link for multiple file upload:</span> {{ | |
file_attachment }} | |
</div>{{hidden_parameters }} {{ submit_button }} {{ interaction_info }} | |
</div><!--customer_inner_widget--> | |
</div><!--customer_widget_main--> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment