Skip to content

Instantly share code, notes, and snippets.

@leevigraham
Created July 11, 2010 14:35
Show Gist options
  • Save leevigraham/471591 to your computer and use it in GitHub Desktop.
Save leevigraham/471591 to your computer and use it in GitHub Desktop.
{if logged_in == FALSE}
<p class='alert' style="background:#fffced; margin-top:0">Please login before posting a new ticket.</p>
{embed="account/.form-login"}
{/if}
{if gv_get_r == 200}
<p class="msg success">Ticket created successfully and our developers have been alerted. Expect a response generally within 48 hrs with priority given to commercial addons.</p>
{/if}
{exp:channel:entry_form
channel="tickets"
return="{embed:return}"
status="open"
use_live_url="no"
include_jquery="no"
}
<!--
WTF. If I put this tag in it's meant to be replaced with JS - which by the way I don't want.
However it doesn't get replaced which is good, the tag remains but the js isn't added
{saef_javascript}
-->
<p class="note" style="margin-top:0">
Create a ticket below and one of the addon's developers will try and get back to you within 48 hrs (<em>commercial addons receive priority support</em>). Please provide as much detail about your issue, EE install and server environment.
</p>
<input type="hidden" name="entry_date" value="{entry_date}" />
<input type="hidden" name="field_id_45" value="Bug" />
<input type="hidden" name="field_id_49" value="Yes" />
<div class="col1">
<fieldset style="float:none">
<h3>1. Addon Details</h3>
<div class="select required" style="width:150px; float:left; clear:none; margin-right:30px;">
<label for="{embed:form_prefix}ticket_project">Addon:</label>
<em>* is required</em>
<select class="required" id="{embed:form_prefix}ticket_project" name="field_id_46">
{exp:channel:entries channel="addons" dynamic="off" nsm_sc_utils:load_item_data="y"}
<option
value="{entry_id}"
{if "{embed:entry_id}" == "{entry_id}"}selected="selected"{/if}
data-commercial="{if nsm_sc_utils:item:item_id}1{if:else}0{/if}"
>
{title}
</option>
{/exp:channel:entries}
</select>
</div>
<div class="text" style="width:75px; float:left; clear:none;">
<label for="{embed:form_prefix}ticket_project_version">Version:</label>
<input id="{embed:form_prefix}ticket_project_version" name="field_id_73" type="text" />
</div>
<div class="text required">
<label for="{embed:form_prefix}license_key">License Key: </label>
<em>* is required for commercial addons</em>
<p class="note">License keys can be found on your purchases page</p>
<input id="{embed:form_prefix}license_key" name="field_id_76" type="text" />
</div>
</fieldset>
<fieldset style="float:none">
<h3>2. Ticket details</h3>
<div class="text required">
<label for="{embed:form_prefix}title">Short description: </label>
<em>* is required</em>
<input class="required" id="{embed:form_prefix}title" name="title" type="text" />
</div>
<div class="textarea required">
<label for="{embed:form_prefix}ticket_details">Describe your issue:</label>
<em>* are required</em>
<div class="note">
<ol>
<li>Be as specific as possible</li>
<li>List any PHP errors outputted on the page</li>
<li>List any JS errors outputted in the console</li>
<li>If possible provide a url where the bug can be reviewed</li>
<li>Add a user story to illustrate your ticket</li>
<li>Code samples are welcomed</li>
</ol>
</div>
<textarea class="required" id="{embed:form_prefix}ticket_details" name="field_id_53" rows="16"></textarea>
</div>
{!-- div class="select required">
<label for="{embed:form_prefix}ticket_type">Ticket type:</label>
<em>* is required</em>
<select class="required" id="{embed:form_prefix}ticket_type" name="field_id_45">
<option value="Bug">Bug</option>
<option value="Feature request">Feature request</option>
</select>
</div --}
<div class="select required">
<label for="{embed:form_prefix}ticket_severity">Severity:</label>
<select id="{embed:form_prefix}ticket_severity" name="field_id_47">
<option value=""></option>
<option value="Trivial">Trivial</option>
<option value="Minor">Minor</option>
<option value="Major">Major</option>
<option value="Critical">Critical</option>
</select>
</div>
{!-- div class="select required">
<label for="{embed:form_prefix}ticket_private">Private?</label>
<p class="note">Private tickets are only be visible to project admins and you, the ticket author.</p>
<select class="required" id="{embed:form_prefix}ticket_private" name="field_id_49">
<option value="No">No</option>
<option value="Yes">Yes</option>
</select>
</div --}
</fieldset>
</div>
{!-- div class="select required">
<label for="{embed:form_prefix}ticket_assignee">Assigned to</label>
<select class="required" id="{embed:form_prefix}ticket_assignee" name="field_id_48">
</select>
</div --}
<div class="col2">
<fieldset>
<h3>3. ExpressionEngine environment</h3>
<div class="text">
<label for="{embed:form_prefix}ticket_ee_version">EE version and build number?</label>
<p class="note">Example: EE 2.0.1PB 20100215. Your EE version and build number can be found in the CP footer.</p>
<input id="{embed:form_prefix}ticket_ee_version" name="field_id_51" type="text" />
</div>
<div class="textarea">
<label for="{embed:form_prefix}ticket_installed_addons">Installed addons:</label>
<p class="note">Please list all of your installed addons including version numbers.</p>
<textarea id="{embed:form_prefix}ticket_installed_addons" name="field_id_54" rows="6"></textarea>
</div>
<div class="select required">
<label for="{embed:form_prefix}ticket_multiple_sites">Are you running multiple MSM sites?</label>
<select class="required" id="{embed:form_prefix}ticket_multiple_sites" name="field_id_55">
<option value="No">No</option>
<option value="Yes">Yes</option>
</select>
</div>
</fieldset>
<fieldset style="float:none">
<h3>4. Server Environment</h3>
<div class="textarea">
<label for="{embed:form_prefix}ticket_server">Server setup:</label>
<p class="note">What is your current server setup including PHP version?</p>
<textarea id="{embed:form_prefix}ticket_server" name="field_id_50" rows="6"></textarea>
</div>
{!-- div class="text">
<label for="{embed:form_prefix}ticket_php_error_log">Upload your PHP error log:</label>
<p class="note">Your PHP server error log may contain errors not displayed in the browser which are vital to debugging.</p>
<input id="{embed:form_prefix}ticket_php_error_log" name="field_id_51" type="file" />
</div --}
</fieldset>
</div>
<div class="actions">
<input type="submit" name="submit" value="Submit" />
</div>
{/exp:channel:entry_form}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment