"Fossies" - the Fresh Open Source Software Archive

Member "PURELIB/tracopt/ticket/templates/ticket_delete.html" (27 Aug 2019, 4216 Bytes) of package /windows/misc/Trac-1.4.win-amd64.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) 2010-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 
   12 # extends 'layout.html'
   13 
   14 <!DOCTYPE html>
   15 <html>
   16   <head>
   17     <title>
   18       # block title
   19       #   if action == 'delete':
   20       #     trans id = ticket.id
   21 
   22       Delete Ticket #${id}
   23 
   24       #     endtrans
   25       #   else:
   26       #     trans num = cnum, id = ticket.id
   27 
   28       Delete comment ${num} on Ticket #${id}
   29 
   30       #     endtrans
   31       #   endif
   32       ${ super() }
   33       # endblock title
   34     </title>
   35   </head>
   36 
   37   <body>
   38     # block content
   39     <div id="content" class="ticket">
   40       # if action == 'delete':
   41       <h1>
   42         # set ticket_link
   43         <a href="${href.ticket(ticket.id)}">${
   44           _("Ticket #%(id)s", id=ticket.id)}</a>
   45         # endset
   46         # trans ticket = ticket_link
   47 
   48         Delete ${ticket}
   49 
   50         # endtrans
   51         <span class="status">(${ticket.status}{%
   52           if ticket.type %} ${ticket.type}{% endif %}{%
   53           if ticket.resolution %}: ${ticket.resolution}{% endif %})</span>
   54       </h1>
   55 
   56       #   with
   57       #     set can_append = false
   58       #     set preview_mode = false
   59       #     include 'ticket_box.html'
   60       #   endwith
   61 
   62       <form id="delete-confirm" action="" method="post">
   63         <div>
   64           ${jmacros.form_token_input()}
   65           <input type="hidden" name="action" value="delete"/>
   66           <p>
   67             <strong>
   68               ${_("Are you sure you want to delete this ticket?")}
   69             </strong>
   70             # with
   71             #   set comments = changes|selectattr('cnum')|list|count
   72             #   set attachments = changes|rejectattr('cnum')|list|count
   73             #   trans comments, attachments
   74 
   75               (comments: ${comments}, attachments: ${attachments})
   76 
   77             #   endtrans
   78             # endwith
   79             <br/>
   80           </p>
   81           # if attachments:
   82           <p>${_("The following attachments will also be deleted:")}</p>
   83           <ul>
   84             # for attachment in attachments:
   85             <li>
   86               <a href="${url_of(attachment.resource)}"
   87                  title="${_('View attachment')}">${attachment.filename}</a>
   88             </li>
   89             # endfor
   90           </ul>
   91           # endif
   92           <p><strong>${_("This is an irreversible operation.")}</strong></p>
   93         </div>
   94         <div class="buttons">
   95           <input type="submit" class="trac-disable-on-submit"
   96                  value="${_('Delete ticket')}"/>
   97           <input type="submit" name="cancel" value="${_('Cancel')}"/>
   98         </div>
   99       </form>
  100 
  101       # else:
  102       <h1>${_("Delete comment %(num)s on Ticket #%(id)s",
  103               num=cnum, id=ticket.id)}</h1>
  104 
  105         <div id="changelog">
  106           <div class="change">
  107             # with hide_buttons = true
  108             #   include 'ticket_change.html'
  109             # endwith
  110           </div>
  111         </div>
  112 
  113         <form id="edit" action="" method="post">
  114           <div>
  115             ${jmacros.form_token_input()}
  116             <input type="hidden" name="action" value="delete-comment"/>
  117             <input type="hidden" name="cnum" value="${cnum}"/>
  118             <input type="hidden" name="cdate" value="${cdate}"/>
  119             <p><strong>
  120                 ${_("Are you sure you want to delete this ticket comment?")}
  121             </strong></p>
  122             <p><strong>${_("This is an irreversible operation.")}</strong></p>
  123           </div>
  124           <div class="buttons">
  125             <input type="submit" class="trac-disable-on-submit"
  126                    value="${_('Delete comment')}"/>
  127             <input type="submit" name="cancel" value="${_('Cancel')}"/>
  128           </div>
  129         </form>
  130         # endif
  131     </div>
  132     ${ super() }
  133     # endblock content
  134   </body>
  135 </html>