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

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

Create New Ticket

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

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

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