trac-ticketlinks / trac / admin / templates / admin_enums.html

cmlenz 9652c61 




cboos b088676 
cmlenz 9652c61 






cboos b088676 
cmlenz 9652c61 
cmlenz 2157af0 
cboos db21b72 
cmlenz 9652c61 
cboos b088676 
cmlenz 9652c61 



jruigrok 13a2850 

cmlenz 9652c61 




cboos db21b72 
cmlenz 9652c61 
rblank 521caa8 
cmlenz 9652c61 



jruigrok 13a2850 
cmlenz 9652c61 




cboos db21b72 
cmlenz 9652c61 























jruigrok 13a2850 

cmlenz 9652c61 




rblank 29b0682 



cmlenz 9652c61 










<!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:i18n="http://genshi.edgewall.org/i18n"
      xmlns:py="http://genshi.edgewall.org/">
  <xi:include href="admin.html" />
  <head>
    <title>$label_plural</title>
  </head>

  <body>
    <h2 i18n:msg="label_plural">Manage $label_plural</h2>

    <py:choose test="view">
      <form py:when="'detail'" class="mod" id="modenum" method="post" action="">
        <fieldset>
          <legend i18n:msg="label_singular">Modify $label_singular</legend>
          <div class="field">
            <label>Name: <input type="text" name="name" value="${enum.name}" /></label>
          </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="addenum" method="post" action="">
          <fieldset>
            <legend i18n:msg="label_singular">Add $label_singular</legend>
            <div class="field">
              <label>Name:<input type="text" name="name" id="name"/></label>
            </div>
            <div class="buttons">
              <input type="submit" name="add" value="${_('Add')}"/>
            </div>
          </fieldset>
        </form>

        <py:choose>
          <form py:when="enums" id="enumtable" method="post" action="">
            <table class="listing" id="enumlist">
              <thead>
                <tr><th class="sel">&nbsp;</th>
                  <th>Name</th><th>Default</th><th>Order</th>
                </tr>
              </thead>
              <tbody>
                <tr py:for="enum in enums">
                  <td><input type="checkbox" name="sel" value="${enum.name}" /></td>
                  <td><a href="${panel_href(enum.name)}">${enum.name}</a></td>
                  <td class="default">
                    <input type="radio" name="default" value="${enum.name}"
                           checked="${enum.name==default or None}" />
                  </td>
                  <td class="default">
                    <select name="value_${enum.value}">
                      <option py:for="other in enums"
                              selected="${other.value==enum.value or None}">${other.value}</option>
                    </select>
                  </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="help">
              You can remove all items from this list to completely hide this
              field from the user interface.
            </p>
            <p class="help" py:if="type=='priority'">
              <b>Note:</b> The order of priorities determines the coloring of entries
              in the ticket queries and reports.
            </p>
          </form>

          <p py:otherwise="" class="help">
            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>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.