|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
New Milestone
|
|
|
4c79b5 |
|
|
|
4c79b5 |
Edit Milestone
|
|
|
4c79b5 |
|
|
|
4c79b5 |
Delete Milestone
|
|
|
4c79b5 |
|
|
|
4c79b5 |
Milestone
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
<script type="text/javascript">
|
|
|
4c79b5 |
addEvent(window, 'load', function() {
|
|
|
4c79b5 |
document.getElementById('name').focus();
|
|
|
4c79b5 |
});
|
|
|
4c79b5 |
</script>
|
|
|
4c79b5 |
<form id="edit" action="<?cs var:milestone.href ?>" method="post">
|
|
|
4c79b5 |
<input type="hidden" name="id" value="<?cs var:milestone.name ?>" />
|
|
|
4c79b5 |
<input type="hidden" name="action" value="edit" />
|
|
|
4c79b5 |
|
|
|
4c79b5 |
<label>Name of the milestone:
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:milestone.name ?>" /></label>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
<fieldset>
|
|
|
4c79b5 |
<legend>Schedule</legend>
|
|
|
4c79b5 |
<label>Due:
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:len(milestone.date_hint) ?>" value="
|
|
|
4c79b5 |
var:milestone.due_date ?>" title="Format: " />
|
|
|
4c79b5 |
Format:
|
|
|
4c79b5 |
</label>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
<label>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if:milestone.completed ?> checked="checked" />
|
|
|
4c79b5 |
Completed:
|
|
|
4c79b5 |
</label>
|
|
|
4c79b5 |
<label>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:len(milestone.date_hint) ?>" value="
|
|
|
4c79b5 |
alt:milestone.completed_date ?>
|
|
|
4c79b5 |
var:milestone.datetime_now ?>
|
|
|
4c79b5 |
/alt ?>" title="Format:
|
|
|
4c79b5 |
var:milestone.datetime_hint ?>" />
|
|
|
4c79b5 |
Format:
|
|
|
4c79b5 |
</label>
|
|
|
4c79b5 |
if:len(milestones) ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
onclick="enableControl('target', this.checked)"/>
|
|
|
4c79b5 |
<label>
|
|
|
4c79b5 |
Retarget associated open tickets to milestone
|
|
|
4c79b5 |
<select id="target" name="target">
|
|
|
4c79b5 |
<option value="">None</option>
|
|
|
4c79b5 |
each:name = milestones ?>
|
|
|
4c79b5 |
<option></option>
|
|
|
4c79b5 |
/each ?>
|
|
|
4c79b5 |
</select>
|
|
|
4c79b5 |
</label>
|
|
|
4c79b5 |
/if ?>
|
|
|
4c79b5 |
<script type="text/javascript">
|
|
|
4c79b5 |
var completed = document.getElementById("completed");
|
|
|
4c79b5 |
var retarget = document.getElementById("retarget");
|
|
|
4c79b5 |
var enableCompletedDate = function() {
|
|
|
4c79b5 |
enableControl("completeddate", completed.checked);
|
|
|
4c79b5 |
enableControl("retarget", completed.checked);
|
|
|
4c79b5 |
enableControl("target", completed.checked && retarget.checked);
|
|
|
4c79b5 |
};
|
|
|
4c79b5 |
addEvent(window, "load", enableCompletedDate);
|
|
|
4c79b5 |
addEvent(completed, "click", enableCompletedDate);
|
|
|
4c79b5 |
</script>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
</fieldset>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
<fieldset class="iefix">
|
|
|
4c79b5 |
<label for="description">Description (you may use
|
|
|
4c79b5 |
var:trac.href.wiki ?>/WikiFormatting">WikiFormatting here):</label>
|
|
|
4c79b5 |
<textarea id="description" name="description" class="wikitext" rows="10" cols="78">
|
|
|
4c79b5 |
</textarea>
|
|
|
4c79b5 |
</fieldset>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
?><input type="submit" value="Add milestone" />
|
|
|
4c79b5 |
else
|
|
|
4c79b5 |
?><input type="submit" value="Submit changes" />
|
|
|
4c79b5 |
/if ?>
|
|
|
4c79b5 |
<input type="submit" name="cancel" value="Cancel" />
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:htdocs_location ?>js/wikitoolbar.js"></script>
|
|
|
4c79b5 |
</form>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
<form action="<?cs var:milestone.href ?>" method="post">
|
|
|
4c79b5 |
<input type="hidden" name="id" value="<?cs var:milestone.name ?>" />
|
|
|
4c79b5 |
<input type="hidden" name="action" value="delete" />
|
|
|
4c79b5 |
Are you sure you want to delete this milestone?
|
|
|
4c79b5 |
|
|
|
4c79b5 |
onclick="enableControl('target', this.checked)"/>
|
|
|
4c79b5 |
<label for="target">Retarget associated tickets to milestone</label>
|
|
|
4c79b5 |
<select name="target" id="target">
|
|
|
4c79b5 |
<option value="">None</option>
|
|
|
4c79b5 |
each:other = milestones ?>
|
|
|
4c79b5 |
<option></option>
|
|
|
4c79b5 |
/if ?>
|
|
|
4c79b5 |
</select>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
<input type="submit" name="cancel" value="Cancel" />
|
|
|
4c79b5 |
<input type="submit" value="Delete milestone" />
|
|
|
4c79b5 |
|
|
|
4c79b5 |
</form>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if:milestone.completed_date ?>
|
|
|
4c79b5 |
Completed ago ()
|
|
|
4c79b5 |
elif:milestone.due_date ?>
|
|
|
4c79b5 |
if:milestone.late ?>
|
|
|
4c79b5 |
late
|
|
|
4c79b5 |
else ?>
|
|
|
4c79b5 |
Due in
|
|
|
4c79b5 |
/if ?> ()
|
|
|
4c79b5 |
else ?>
|
|
|
4c79b5 |
No date set
|
|
|
4c79b5 |
/if ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
with:stats = milestone.stats ?>
|
|
|
4c79b5 |
if:#stats.total_tickets > #0 ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:#stats.percent_closed ?>%">
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:milestone.queries.closed_tickets ?>" title="
|
|
|
4c79b5 |
var:#stats.closed_tickets ?> of
|
|
|
4c79b5 |
var:#stats.total_tickets ?> ticket
|
|
|
4c79b5 |
if:#stats.total_tickets != #1 ?>s closed">
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:#stats.percent_active ?>%">
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:milestone.queries.active_tickets ?>" title="
|
|
|
4c79b5 |
var:#stats.active_tickets ?> of
|
|
|
4c79b5 |
var:#stats.total_tickets ?> ticket
|
|
|
4c79b5 |
if:#stats.total_tickets != #1 ?>s active">
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
%
|
|
|
4c79b5 |
|
|
|
4c79b5 |
Closed tickets:
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:stats.closed_tickets ?>
|
|
|
4c79b5 |
Active tickets:
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:stats.active_tickets ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
/if ?>
|
|
|
4c79b5 |
/with ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
<form id="stats" action="" method="get">
|
|
|
4c79b5 |
<fieldset>
|
|
|
4c79b5 |
<legend>
|
|
|
4c79b5 |
<label for="by">Ticket status by</label>
|
|
|
4c79b5 |
<select id="by" name="by" onchange="this.form.submit()">
|
|
|
4c79b5 |
each:group = milestone.stats.available_groups ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if:milestone.stats.grouped_by == group.name ?> selected="selected"
|
|
|
4c79b5 |
/if ?>></option>
|
|
|
4c79b5 |
/each ?></select>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
</legend>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:milestone.stats.grouped_by ?>">
|
|
|
4c79b5 |
each:group = milestone.stats.groups ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:group.queries.all_tickets ?>">
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:#group.percent_total * #80 / #milestone.stats.max_percent_total ?>%">
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:#group.percent_closed ?>%">
|
|
|
4c79b5 |
var:group.queries.closed_tickets ?>" title="
|
|
|
4c79b5 |
var:group.closed_tickets ?> of
|
|
|
4c79b5 |
var:group.total_tickets ?> ticket
|
|
|
4c79b5 |
if:group.total_tickets != #1 ?>s closed">
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
var:#group.percent_active ?>%">
|
|
|
4c79b5 |
var:group.queries.active_tickets ?>" title="
|
|
|
4c79b5 |
var:group.active_tickets ?> of
|
|
|
4c79b5 |
var:group.total_tickets ?> ticket
|
|
|
4c79b5 |
if:group.total_tickets != 1 ?>s active">
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
/
|
|
|
4c79b5 |
var:group.total_tickets ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
/each ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
</fieldset>
|
|
|
4c79b5 |
</form>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if:trac.acl.MILESTONE_MODIFY || trac.acl.MILESTONE_DELETE ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if:trac.acl.MILESTONE_MODIFY ?>
|
|
|
4c79b5 |
<form method="get" action="">
|
|
|
4c79b5 |
<input type="hidden" name="action" value="edit" />
|
|
|
4c79b5 |
if:milestone.id_param ?>
|
|
|
4c79b5 |
<input type="hidden" name="id" value="<?cs var:milestone.name ?>" />
|
|
|
4c79b5 |
/if ?>
|
|
|
4c79b5 |
<input type="submit" value="Edit milestone info" accesskey="e" />
|
|
|
4c79b5 |
</form>
|
|
|
4c79b5 |
/if ?>
|
|
|
4c79b5 |
if:trac.acl.MILESTONE_DELETE ?>
|
|
|
4c79b5 |
<form method="get" action="">
|
|
|
4c79b5 |
<input type="hidden" name="action" value="delete" />
|
|
|
4c79b5 |
if:milestone.id_param ?>
|
|
|
4c79b5 |
<input type="hidden" name="id" value="<?cs var:milestone.name ?>" />
|
|
|
4c79b5 |
/if ?>
|
|
|
4c79b5 |
<input type="submit" value="Delete milestone" />
|
|
|
4c79b5 |
</form>
|
|
|
4c79b5 |
/if ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
/if ?>
|
|
|
4c79b5 |
/if ?>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
Note: See
|
|
|
4c79b5 |
var:trac.href.wiki ?>/TracRoadmap">TracRoadmap for help on using the roadmap.
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|