"Fossies" - the Fresh Open Source Software Archive

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


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as 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) 2006-2014 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 # extends 'layout.html'
   12 <!DOCTYPE html>
   13 <html>
   14   <head>
   15     <title>
   16     # block title
   17     #   set is_query = report.sql.startswith('query:')
   18     #   set new_report = action == 'new' and not is_query
   19     #   if new_report:
   20     ${_("Create New Report")}
   21     #   else:
   22     ${_("Edit Report {%(id)s} %(title)s", id=report.id, title=report.title)}
   23     #   endif
   24     ${ super() }
   25     # endblock title
   26     </title>
   27     # block head
   28     ${ super() }
   29     <script>
   30       jQuery(function($) {
   31         $("#description").autoPreview("${href.wiki_render()}", {
   32             realm: "report", id: "${report.id}"
   33           }, $("#preview").showOnPreview());
   34       });
   35     </script>
   36     # endblock head
   37   </head>
   38 
   39   <body>
   40     # block content
   41     #   set is_query = report.sql.startswith('query:')
   42     #   set new_report = action == 'new' and not is_query
   43     #   set new_query = action == 'new' and is_query
   44     <div id="content" class="report edit">
   45       <h1>
   46         # if new_report:
   47         ${_("New Report")}
   48         # elif new_query:
   49         ${_("New Query")}
   50         # else:
   51         ${report.title}
   52         # endif
   53       </h1>
   54       <form id="edit_report" method="post" action="${href.report(report.id)}">
   55         <fieldset>
   56           <legend>
   57             # if new_report:
   58             ${_("Create Report:")}
   59             # elif new_query:
   60             ${_("Create Query:")}
   61             # elif is_query:
   62             ${_("Modify Query:")}
   63             # else:
   64             ${_("Modify Report:")}
   65             # endif
   66           </legend>
   67           ${jmacros.form_token_input()}
   68           <input type="hidden" name="action" value="${action}"/>
   69           <div class="field">
   70             <label for="title">${_("Title:")}</label>
   71             <input type="text" id="title" name="title"
   72                    class="trac-fullwidth trac-autofocus"
   73                    value="${report.title}"/>
   74           </div>
   75           <div class="field">
   76             <label for="description">${_("Description:")}</label>
   77             <textarea id="description" name="description" rows="10" cols="78"
   78                       class="wikitext trac-fullwidth trac-resizable">
   79 ${report.description}</textarea>
   80             <label for="description" class="trac-textarea-hint">
   81               # trans wikiformatting = jmacros.wikiformatting_link()
   82 
   83               You may use ${wikiformatting} here.
   84 
   85               # endtrans
   86             </label>
   87           </div>
   88           <div id="preview" class="trac-content trac-draft" style="display:none">
   89           </div>
   90           <div class="field">
   91             # if error:
   92             <div class="system-message">
   93               <strong>${_("Error:")}</strong> ${error}
   94             </div>
   95             # endif
   96             <label for="query">${_("Query:")}</label>
   97             <textarea id="query" name="query" rows="20" cols="78"
   98                       class="trac-fullwidth trac-resizable">
   99 ${report.sql}</textarea>
  100             <label for="query" class="trac-textarea-hint">
  101               # set trac_query
  102               <a tabindex="42" href="${href.wiki('TracQuery')
  103                                        + '#QueryLanguage'}">TracQuery</a>
  104               # endset
  105               # set query_prefix
  106               <code>query:</code>
  107               # endset
  108               # trans query_prefix, trac_query
  109 
  110               Can be either SQL or, if starting with ${query_prefix},
  111               a ${trac_query} expression.
  112 
  113               # endtrans
  114             </label>
  115           </div>
  116         </fieldset>
  117         <div class="buttons">
  118           <input type="submit" class="trac-disable-on-submit"
  119                  value="${_('Save query') if is_query else _('Save report')}"/>
  120           <input type="submit" name="cancel" value="${_('Cancel')}"/>
  121         </div>
  122       </form>
  123 
  124       # call(note, page) jmacros.wikihelp('TracReports'):
  125       #   trans note, page
  126 
  127       ${note} See ${page} for help on using and creating reports.
  128 
  129       #   endtrans
  130       # endcall
  131     </div>
  132     ${ super() }
  133     # endblock content
  134   </body>
  135 </html>