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

f2e824
f2e824
f2e824
f2e824
f2e824
f2e824
f2e824
 
f2e824
 

New Milestone

f2e824
 
f2e824
 

Edit Milestone

f2e824
 
f2e824
 

Delete Milestone

f2e824
 
f2e824
 

Milestone

f2e824
 
f2e824
f2e824
 
f2e824
  <script type="text/javascript">
f2e824
    addEvent(window, 'load', function() {
f2e824
      document.getElementById('name').focus();
f2e824
    });
f2e824
  </script>
f2e824
  <form id="edit" action="<?cs var:milestone.href ?>" method="post">
f2e824
   <input type="hidden" name="id" value="<?cs var:milestone.name ?>" />
f2e824
   <input type="hidden" name="action" value="edit" />
f2e824
   
f2e824
    <label>Name of the milestone:
f2e824
    
f2e824
      var:milestone.name ?>" /></label>
f2e824
   
f2e824
   <fieldset>
f2e824
    <legend>Schedule</legend>
f2e824
    <label>Due:
f2e824
     
f2e824
       var:len(milestone.date_hint) ?>" value="
f2e824
       var:milestone.due_date ?>" title="Format: " />
f2e824
     Format: 
f2e824
    </label>
f2e824
    
f2e824
     <label>
f2e824
      
f2e824
        if:milestone.completed ?> checked="checked" />
f2e824
      Completed:
f2e824
     </label>
f2e824
     <label>
f2e824
      
f2e824
        var:len(milestone.date_hint) ?>" value="
f2e824
        alt:milestone.completed_date ?>
f2e824
         var:milestone.datetime_now ?>
f2e824
        /alt ?>" title="Format: 
f2e824
        var:milestone.datetime_hint ?>" />
f2e824
      Format: 
f2e824
     </label>
f2e824
     if:len(milestones) ?>
f2e824
     
f2e824
     
f2e824
            onclick="enableControl('target', this.checked)"/>
f2e824
     <label>
f2e824
      Retarget associated open tickets to milestone
f2e824
      <select id="target" name="target">
f2e824
       <option value="">None</option>
f2e824
       each:name = milestones ?>
f2e824
       <option></option>
f2e824
       /each ?>
f2e824
      </select>
f2e824
     </label>
f2e824
     /if ?>
f2e824
     <script type="text/javascript">
f2e824
       var completed = document.getElementById("completed");
f2e824
       var retarget = document.getElementById("retarget");
f2e824
       var enableCompletedDate = function() {
f2e824
         enableControl("completeddate", completed.checked);
f2e824
         enableControl("retarget", completed.checked);
f2e824
         enableControl("target", completed.checked && retarget.checked);
f2e824
       };
f2e824
       addEvent(window, "load", enableCompletedDate);
f2e824
       addEvent(completed, "click", enableCompletedDate);
f2e824
     </script>
f2e824
    
f2e824
   </fieldset>
f2e824
   
f2e824
    <fieldset class="iefix">
f2e824
     <label for="description">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
    </fieldset>
f2e824
   
f2e824
   
f2e824
    
f2e824
     ?><input type="submit" value="Add milestone" />
f2e824
    else
f2e824
     ?><input type="submit" value="Submit changes" />
f2e824
    /if ?>
f2e824
    <input type="submit" name="cancel" value="Cancel" />
f2e824
   
f2e824
   
f2e824
     var:htdocs_location ?>js/wikitoolbar.js"></script>
f2e824
  </form>
f2e824
 
f2e824
  <form action="<?cs var:milestone.href ?>" method="post">
f2e824
   <input type="hidden" name="id" value="<?cs var:milestone.name ?>" />
f2e824
   <input type="hidden" name="action" value="delete" />
f2e824
   

Are you sure you want to delete this milestone?

f2e824
   
f2e824
       onclick="enableControl('target', this.checked)"/>
f2e824
   <label for="target">Retarget associated tickets to milestone</label>
f2e824
   <select name="target" id="target">
f2e824
    <option value="">None</option>
f2e824
     each:other = milestones ?>
f2e824
      <option></option>
f2e824
     /if ?>
f2e824
   </select>
f2e824
   
f2e824
    <input type="submit" name="cancel" value="Cancel" />
f2e824
    <input type="submit" value="Delete milestone" />
f2e824
   
f2e824
  </form>
f2e824
 
f2e824
 
f2e824
  
f2e824
   

f2e824
    if:milestone.completed_date ?>
f2e824
     Completed  ago ()
f2e824
    elif:milestone.due_date ?>
f2e824
     if:milestone.late ?>
f2e824
       late
f2e824
     else ?>
f2e824
      Due in 
f2e824
     /if ?> ()
f2e824
    else ?>
f2e824
     No date set
f2e824
    /if ?>
f2e824
   

f2e824
   with:stats = milestone.stats ?>
f2e824
    if:#stats.total_tickets > #0 ?>
f2e824
     
f2e824
      
f2e824
      
f2e824
        var:#stats.percent_closed ?>%">
f2e824
        
f2e824
        var:milestone.queries.closed_tickets ?>" title="
f2e824
        var:#stats.closed_tickets ?> of 
f2e824
        var:#stats.total_tickets ?> ticket
f2e824
        if:#stats.total_tickets != #1 ?>s closed">
f2e824
      
f2e824
        var:#stats.percent_active ?>%">
f2e824
        
f2e824
        var:milestone.queries.active_tickets ?>" title="
f2e824
        var:#stats.active_tickets ?> of 
f2e824
        var:#stats.total_tickets ?> ticket
f2e824
        if:#stats.total_tickets != #1 ?>s active">
f2e824
      
f2e824
     
f2e824
     

%

f2e824
     
f2e824
      
Closed tickets:
f2e824
      
f2e824
        var:stats.closed_tickets ?>
f2e824
      
Active tickets:
f2e824
      
f2e824
        var:stats.active_tickets ?>
f2e824
     
f2e824
    /if ?>
f2e824
   /with ?>
f2e824
  
f2e824
  <form id="stats" action="" method="get">
f2e824
   <fieldset>
f2e824
    <legend>
f2e824
     <label for="by">Ticket status by</label>
f2e824
     <select id="by" name="by" onchange="this.form.submit()">
f2e824
     each:group = milestone.stats.available_groups ?>
f2e824
      
f2e824
        if:milestone.stats.grouped_by == group.name ?> selected="selected"
f2e824
        /if ?>></option>
f2e824
     /each ?></select>
f2e824
     
f2e824
    </legend>
f2e824
    
f2e824
      var:milestone.stats.grouped_by ?>">
f2e824
     each:group = milestone.stats.groups ?>
f2e824
      
f2e824
       
f2e824
         var:group.queries.all_tickets ?>">
f2e824
       
f2e824
        
f2e824
          var:#group.percent_total * #80 / #milestone.stats.max_percent_total ?>%">
f2e824
         
f2e824
          
f2e824
            var:#group.percent_closed ?>%">
f2e824
            var:group.queries.closed_tickets ?>" title="
f2e824
           var:group.closed_tickets ?> of 
f2e824
           var:group.total_tickets ?> ticket
f2e824
           if:group.total_tickets != #1 ?>s closed">
f2e824
          
f2e824
          
f2e824
            var:#group.percent_active ?>%">
f2e824
            var:group.queries.active_tickets ?>" title="
f2e824
           var:group.active_tickets ?> of 
f2e824
           var:group.total_tickets ?> ticket
f2e824
           if:group.total_tickets != 1 ?>s active">
f2e824
          
f2e824
         
f2e824
        
f2e824
        

/

f2e824
         var:group.total_tickets ?>

f2e824
       
f2e824
      
f2e824
     /each ?>
f2e824
    
f2e824
   </fieldset>
f2e824
  </form>
f2e824
  
f2e824
  if:trac.acl.MILESTONE_MODIFY || trac.acl.MILESTONE_DELETE ?>
f2e824
   
f2e824
    if:trac.acl.MILESTONE_MODIFY ?>
f2e824
     <form method="get" action="">
f2e824
      <input type="hidden" name="action" value="edit" />
f2e824
      if:milestone.id_param ?>
f2e824
       <input type="hidden" name="id" value="<?cs var:milestone.name ?>" />
f2e824
      /if ?>
f2e824
      <input type="submit" value="Edit milestone info" accesskey="e" />
f2e824
     </form>
f2e824
    /if ?>
f2e824
    if:trac.acl.MILESTONE_DELETE ?>
f2e824
     <form method="get" action="">
f2e824
      <input type="hidden" name="action" value="delete" />
f2e824
      if:milestone.id_param ?>
f2e824
       <input type="hidden" name="id" value="<?cs var:milestone.name ?>" />
f2e824
      /if ?>
f2e824
      <input type="submit" value="Delete milestone" />
f2e824
     </form>
f2e824
    /if ?>
f2e824
   
f2e824
  /if ?>
f2e824
 /if ?>
f2e824
f2e824
 
f2e824
  Note: See 
f2e824
    var:trac.href.wiki ?>/TracRoadmap">TracRoadmap for help on using the roadmap.
f2e824
 
f2e824
f2e824
f2e824