"Fossies" - the Fresh Open Source Software Archive

Member "PURELIB/trac/admin/templates/admin_basics.html" (27 Aug 2019, 6098 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) 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 'admin.html'
   12 <!DOCTYPE html>
   13 <html>
   14   <head>
   15     <title>
   16       # block admintitle
   17       ${_("Basics")}
   18       # endblock admintitle
   19     </title>
   20   </head>
   21 
   22   <body>
   23     # block adminpanel
   24     <h2>${_("Basic Settings")}</h2>
   25 
   26     <div>
   27       <form class="mod" id="modbasic" method="post" action="#">
   28         ${jmacros.form_token_input()}
   29         <fieldset>
   30           <legend>${_("Project")}</legend>
   31           <div class="field">
   32             <label>${_("Name:")}<br />
   33               <input type="text" name="name" size="48" value="${project.name}" />
   34             </label>
   35           </div>
   36           <div class="field">
   37             <label>${_("URL:")}<br />
   38               <input type="text" name="url" size="48" value="${project.url}" />
   39             </label>
   40           </div>
   41           <div class="field">
   42             <label>${_("Description:")}<br />
   43               <textarea name="descr" class="trac-resizable" rows="3" cols="50">
   44 ${project.descr}</textarea>
   45             </label>
   46           </div>
   47           <div class="field">
   48             <label>${_("Default handler:")}<br />
   49               <select name="default_handler">
   50                 # if default_handler not in valid_default_handlers:
   51                 <option value="${default_handler}">${default_handler}</option>
   52                 # endif
   53                 # for handler in valid_default_handlers:
   54                 <option${{'selected': handler == default_handler,
   55                           'value': handler
   56                          }|htmlattr}>${handler}</option>
   57                 # endfor
   58               </select>
   59             </label>
   60             # if default_handler not in valid_default_handlers:
   61             <span class="hint">
   62               # trans default_handler
   63 
   64               ${default_handler} is not a valid IRequestHandler or is not enabled.
   65 
   66               # endtrans
   67             </span>
   68             # endif
   69           </div>
   70         </fieldset>
   71         <fieldset>
   72           <legend>${_("Localization")}</legend>
   73           <div class="field">
   74             <label>${_("Default timezone:")}<br />
   75               <select name="default_timezone">
   76                 <option value="">${_("Server's local time zone")}</option>
   77                 # for tzname in timezones:
   78                 <option${{'selected': tzname == default_timezone,
   79                           'value': tzname
   80                          }|htmlattr}>${tzname}</option>
   81                 # endfor
   82               </select>
   83             </label>
   84             # if not has_pytz:
   85             <span class="hint">
   86               # trans
   87 
   88               Install pytz for a complete list of timezones.
   89 
   90               # endtrans
   91             </span>
   92             # endif
   93           </div>
   94           <div class="field">
   95             <label>${_("Default language:")}<br />
   96               <select${{'disabled': not languages,
   97                         'title': _('Translations are currently unavailable')
   98                                  if not languages,
   99                         'name': 'default_language'
  100                        }|htmlattr}>
  101                 <option value="">${_("Browser's language")}</option>
  102                 # for locale, language in languages:
  103                 <option${{'selected': locale == default_language,
  104                           'value': locale
  105                          }|htmlattr}>${language}</option>
  106                 # endfor
  107               </select>
  108             </label>
  109             # if not has_babel:
  110             <span class="hint">
  111               # trans
  112 
  113               Install Babel for extended language support.
  114 
  115               # endtrans
  116             </span>
  117             # endif
  118             # if has_babel and not languages:
  119             <span class="hint">
  120               # trans
  121 
  122               Message catalogs have not been compiled.
  123 
  124               # endtrans
  125             </span>
  126             # endif
  127           </div>
  128           <div class="field">
  129             <label>${_("Default date format:")}<br />
  130               <select name="default_date_format">
  131                 <option value="">${_("Browser's language")}</option>
  132                 <option${{'selected': default_date_format == 'iso8601',
  133                           'value': 'iso8601'
  134                          }|htmlattr}>${_("ISO 8601 format")}</option>
  135               </select>
  136             </label>
  137             # if not has_babel:
  138             <span class="hint">
  139               # trans
  140 
  141               Install Babel for localized date formats.
  142 
  143               # endtrans
  144             </span>
  145             # endif
  146           </div>
  147           <div class="field">
  148             <label>${_("Default time format:")}<br />
  149               <select name="default_dateinfo_format">
  150                 <option${{'selected': default_dateinfo_format == 'relative',
  151                           'value': 'relative'
  152                          }|htmlattr}>${_("Relative format")}</option>
  153                 <option${{'selected': default_dateinfo_format == 'absolute',
  154                           'value': 'absolute'
  155                          }|htmlattr}>${_("Absolute format")}</option>
  156               </select>
  157             </label>
  158           </div>
  159         </fieldset>
  160         <div class="buttons">
  161           <input type="submit" value="${_('Apply changes')}" />
  162         </div>
  163       </form>
  164 
  165       # call(note, page) jmacros.wikihelp('TracIni'):
  166       #   trans note, page
  167 
  168       ${note} See ${page} for help on configuration options.
  169 
  170       #   endtrans
  171       # endcall
  172     </div>
  173     # endblock adminpanel
  174   </body>
  175 
  176 </html>