HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/theflexguy_com_trac_trac/trac/admin/templates/admin_milestones.html
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">
  <xi:include href="admin.html" />
  <head>
    <title>Milestones</title>
  </head>

  <body>
    <h2>Manage Milestones</h2>

    <py:choose test="view">
      <form py:when="'detail'" class="mod" method="post" id="modifymilestone" action="">
        <fieldset>
          <legend>Modify Milestone:</legend>
          <div class="field">
            <label>Name:<br /> <input type="text" name="name" value="$milestone.name" /></label>
          </div>
          <div class="field">
            <label>Due:<br />
              <input type="text" id="duedate" name="duedate" size="${len(date_hint)}"
                value="${milestone.due and format_date(milestone.due)}" title="Format: $date_hint" />
              <em>Format: $date_hint</em>
            </label>
          </div>
          <div class="field">
            <label>
              <input type="checkbox" id="completed" name="completed"
                     checked="${milestone.completed or None}" />
              Completed:<br />
            </label>
            <label>
              <input type="text" id="completeddate" name="completeddate"
                     size="${len(datetime_hint)}"
                     value="${format_datetime(milestone.completed)}"
                     title="Format: $datetime_hint" />
              <em>Format: $datetime_hint</em>
            </label>
            <script type="text/javascript">
              jQuery(document).ready(function($) {
                function updateCompletedDate() {
                  $("#completeddate").enable($("#completed").checked());
                }
                $("#completed").click(updateCompletedDate);
                updateCompletedDate();
              });
            </script>
          </div>
          <div class="field">
            <fieldset class="iefix">
              <label for="description">
                Description (you may use <a tabindex="42" href="${href.wiki('WikiFormatting')}">WikiFormatting</a> here):
              </label>
              <p>
                <textarea id="description" name="description" class="wikitext" rows="6" cols="60">
${milestone.description}</textarea>
              </p>
            </fieldset>
          </div>
          <div class="buttons">
            <input type="submit" name="cancel" value="Cancel"/>
            <input type="submit" name="save" value="Save"/>
          </div>
        </fieldset>
      </form>

      <py:otherwise>

        <form class="addnew" id="addmilestone" method="post" action="">
          <fieldset>
            <legend>Add Milestone:</legend>
            <div class="field">
              <label>Name:<br />
                <input type="text" name="name" id="name" size="20" />
              </label>
            </div>
            <div class="field">
              <label>
                Due:<br />
                <input type="text" name="duedate" size="${len(date_hint)}"
                       title="Format: $date_hint" />
                <em>Format: $date_hint</em>
              </label>
            </div>
            <div class="buttons">
              <input type="submit" name="add" value="Add" />
            </div>
          </fieldset>
        </form>

        <py:choose>
          <form py:when="milestones" id="milestone_table" method="post" action="">
            <table class="listing" id="millist">
              <thead>
                <tr><th class="sel">&nbsp;</th>
                  <th>Name</th><th>Due</th><th>Completed</th><th>Default</th><th>Tickets</th>
                </tr>
              </thead>
              <tbody><tr py:for="(milestone, ticket_count) in milestones">
                <td>
                  <input type="checkbox" name="sel" value="$milestone.name" />
                </td>
                <td>
                  <a href="${panel_href(milestone.name)}">${milestone.name}</a>
                </td>
                <td><py:if test="milestone.due">
                  ${format_date(milestone.due)}
                </py:if></td>
                <td><py:if test="milestone.completed">
                  ${format_datetime(milestone.completed)}
                </py:if></td>
                <td class="default">
                  <input type="radio" name="default" value="$milestone.name"
                         checked="${milestone.name==default or None}" />
                </td>
                <td class="num">${ticket_count}</td>
              </tr></tbody>
            </table>
            <div class="buttons">
              <input type="submit" name="remove" value="Remove selected items" />
              <input type="submit" name="apply" value="Apply changes" />
            </div>
            <p class="hint">
              You can remove all items from this list to completely hide this
              field from the user interface.
            </p>
          </form>

          <p py:otherwise="" class="hint">
            As long as you don't add any items to the list, this field
            will remain completely hidden from the user interface.
          </p>
        </py:choose>
      </py:otherwise>
    </py:choose>
  </body>

</html>