"Fossies" - the Fresh Open Source Software Archive

Member "PURELIB/trac/ticket/templates/ticket_workflow.html" (27 Aug 2019, 1676 Bytes) of package /windows/misc/Trac-1.4.win32.exe:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {#  Copyright (C) 2015 Edgewall Software
    2 
    3   This software is licensed as described in the file COPYING, which
    4   you should have received as part of this distribution. The terms
    5   are also available at https://trac.edgewall.org/wiki/TracLicense.
    6 
    7   This software consists of voluntary contributions made by many
    8   individuals. For the exact contribution history, see the revision
    9   history and logs, available at https://trac.edgewall.org/.
   10 #}
   11 
   12 {#
   13 Arguments:
   14  - hidden: render hidden input elements
   15 #}
   16 <script>
   17   jQuery(function($) {
   18     /* only enable control elements for the currently selected action */
   19     var actions = $("#action input[name='action']");
   20     function updateActionFields() {
   21       actions.each(function () {
   22         $(this).siblings().find("*[id]").enable($(this).checked());
   23         $(this).siblings().filter("*[id]").enable($(this).checked());
   24       });
   25     }
   26     actions.click(updateActionFields);
   27     updateActionFields();
   28   });
   29 </script>
   30 # if hidden:
   31 #   for key, label, controls, hints in action_controls if key == action:
   32 <input type="hidden" name="action" value="${action}" />
   33 #   endfor
   34 # elif action_controls:
   35 <fieldset id="action">
   36   <legend>${_("Action")}</legend>
   37   # for key, label, controls, hints in action_controls:
   38   <div>
   39     <input type="radio" id="action_${key}" name="action"${
   40          {'value': key,
   41           'checked': key == action
   42          }|htmlattr}/>
   43     <label for="action_${key}">${label}</label>
   44     ${controls}
   45     # for hint in hints:
   46     <span class="hint">${hint}</span>
   47     # endfor
   48   </div>
   49   # endfor
   50 </fieldset>
   51 # endif
   52 ## jinjacheck: "script input fieldset" OK