Blame Artworks/Webenv/Trac/0.10.4/Modern/templates/newticket.cs

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

Create New Ticket

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

Alain Reguera Delgado 46de3c
  <label>
Alain Reguera Delgado 46de3c
    if:newticket.attachment ?> checked="checked" />
Alain Reguera Delgado 46de3c
    I have files to attach to this ticket
Alain Reguera Delgado 46de3c
  </label>
Alain Reguera Delgado 46de3c
 

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