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