Blame Identity/Webenv/App/Trac/templates/newticket.cs

f2e824
f2e824
f2e824
<script type="text/javascript">
f2e824
addEvent(window, 'load', function() { document.getElementById('summary').focus()}); 
f2e824
</script>
f2e824
f2e824
f2e824
f2e824
f2e824

Create New Ticket

f2e824
f2e824
f2e824
  var:trac.href.newticket ?>#preview">
f2e824
 
f2e824
  
f2e824
   <label for="reporter">Your email or username:</label>
f2e824
   
f2e824
     var:newticket.reporter ?>" />
f2e824
  
f2e824
 
f2e824
 
f2e824
  <label for="summary">Short summary:</label>
f2e824
  
f2e824
    var:newticket.summary ?>"/>
f2e824
 
f2e824
 if:len(newticket.fields.type.options) ?>
f2e824
  
<label for="type">Type:</label>
f2e824
   call:hdf_select(newticket.fields.type.options, 'type',
f2e824
                   newticket.type, 0) ?>
f2e824
  
f2e824
 /if ?>
f2e824
 
f2e824
  <label for="description">Full description (you may use 
f2e824
    var:$trac.href.wiki ?>/WikiFormatting">WikiFormatting here):</label>
f2e824
  <textarea id="description" name="description" class="wikitext" rows="10" cols="78">
f2e824
</textarea>
f2e824
  if:newticket.description_preview ?>
f2e824
   <fieldset id="preview">
f2e824
    <legend>Description Preview</legend>
f2e824
    
f2e824
   </fieldset>
f2e824
  /if ?>
f2e824
 
f2e824
f2e824
 <fieldset id="properties">
f2e824
  <legend>Ticket Properties</legend>
f2e824
  <input type="hidden" name="action" value="create" />
f2e824
  <input type="hidden" name="status" value="new" />
f2e824
  
f2e824
  each:field = newticket.fields ?>
f2e824
   if:!field.skip ?>
f2e824
    set:num_fields = num_fields + 1 ?>
f2e824
   /if ?>
f2e824
  /each ?>
f2e824
   each:field = newticket.fields ?>
f2e824
    if:!field.skip ?>
f2e824
     if:fullrow && idx % 2 ?>
f2e824
     
f2e824
       if:field.type != 'radio' ?><label for="<?cs var:name(field) ?>">
f2e824
       /if ?>:
f2e824
       if:field.type != 'radio' ?></label>
f2e824
     <td<?cs if:fullrow ?> colspan="3">
f2e824
      if:field.type == 'text' ?>
f2e824
        var:name(field) ?>" name="
f2e824
        var:name(field) ?>" value="" />
f2e824
      elif:field.type == 'select' ?>
f2e824
        var:name(field) ?>" name="">
f2e824
        if:field.optional ?><option></option>
f2e824
        each:option = field.options ?>
f2e824
         if:option == newticket[name(field)] ?> selected="selected">
f2e824
         var:option ?></option>
f2e824
        /each ?></select>
f2e824
      elif:field.type == 'checkbox' ?>
f2e824
        var:name(field) ?>" />
f2e824
        var:name(field) ?>" name="
f2e824
        var:name(field) ?>" value="1"
f2e824
        if:newticket[name(field)] ?> checked="checked" />
f2e824
      elif:field.type == 'textarea' ?>
f2e824
        var:name(field) ?>" name="
f2e824
        var:name(field) ?>"
f2e824
        if:field.height ?> rows=""
f2e824
        if:field.width ?> cols="">
f2e824
        var:newticket[name(field)] ?></textarea>
f2e824
      elif:field.type == 'radio' ?>
f2e824
       each:option = field.options ?><label>
f2e824
         var:name(field) ?>" name="
f2e824
         var:name(field) ?>" value=""
f2e824
         if:ticket[name(field)] == option ?> checked="checked" /> 
f2e824
         var:option ?></label> 
f2e824
       /each ?>
f2e824
      /if ?>
f2e824
     if:idx % 2 || fullrow ?>
f2e824
      if:idx < num_fields - 1 ?>
f2e824
      /if ?>
f2e824
     elif:idx == num_fields - 1 ?>
f2e824
     /if ?>
f2e824
    /if ?>
f2e824
   /each ?>
f2e824
  
f2e824
 </fieldset>
f2e824
f2e824
 
f2e824
   var:htdocs_location ?>js/wikitoolbar.js"></script>
f2e824
f2e824
 

f2e824
  <label>
f2e824
    if:newticket.attachment ?> checked="checked" />
f2e824
    I have files to attach to this ticket
f2e824
  </label>
f2e824
 

f2e824
 /if ?>
f2e824
f2e824
 
f2e824
  <input type="submit" name="preview" value="Preview" accesskey="r" /> 
f2e824
  <input type="submit" value="Submit ticket" />
f2e824
 
f2e824
</form>
f2e824
f2e824
f2e824
 Note: See 
f2e824
   var:trac.href.wiki ?>/TracTickets">TracTickets for help on using tickets.
f2e824
f2e824
f2e824
f2e824