"Fossies" - the Fresh Open Source Software Archive

Member "roundup-2.0.0/share/roundup/templates/responsive/html/user.index.html" (26 Aug 2019, 3934 Bytes) of package /linux/www/roundup-2.0.0.tar.gz:


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 <tal:block metal:use-macro="templates/page/macros/frame">
    2 <title metal:fill-slot="head_title" i18n:translate="">User listing - <span
    3  i18n:name="tracker" tal:replace="config/TRACKER_NAME" /></title>
    4 <span metal:fill-slot="body_title" tal:omit-tag="python:1"
    5  i18n:translate="">User listing</span>
    6 <td class="content" metal:fill-slot="content">
    7 
    8 <span tal:condition="python:not (context.is_view_ok()
    9  or request.user.hasRole('Anonymous'))"
   10  i18n:translate="">You are not allowed to view this page.</span>
   11 
   12 <span tal:condition="python:not context.is_view_ok()
   13  and request.user.hasRole('Anonymous')"
   14  i18n:translate="">Please login with your username and password.</span>
   15 
   16 <div class='span8 offset2'>
   17   <form tal:condition="context/is_view_ok" method="get" name="itemSynopsis"
   18       tal:attributes="action request/classname" class='form-horizontal'>
   19 
   20     <fieldset tal:define="search_input templates/page/macros/search_input;">
   21       <legend>Search for users</legend>
   22       <div class='control-group'>
   23         <label class='control-label' for='username'>Username</label>
   24         <div class='controls' tal:define="name string:username">
   25           <input tal:attributes="value python:request.form.getvalue(name) or nothing;
   26             name name;
   27             id name"/>
   28         </div>
   29       </div>
   30       <div class='control-group'>
   31         <label class='control-label' for='realname'>Realname</label>
   32         <div class='controls' tal:define="name string:realname">
   33           <input tal:attributes="value python:request.form.getvalue(name) or nothing;
   34             name name;
   35             id name"/>
   36         </div>
   37       </div>
   38       <div class='form-actions'>
   39         <input class="btn btn-primary" type="submit" value="Search" i18n:attributes="value"/>
   40         <input type="hidden" name="@action" value="search"/>
   41       </div>
   42     </fieldset>
   43   </form>
   44 </div>
   45 
   46 <table width="100%" tal:condition="context/is_view_ok" class="table"
   47        tal:define="batch request/batch">
   48 <tr>
   49  <th i18n:translate="">Username</th>
   50  <th i18n:translate="">Real name</th>
   51  <th i18n:translate="">Organisation</th>
   52  <th i18n:translate="">Email address</th>
   53  <th i18n:translate="">Phone number</th>
   54  <th tal:condition="context/is_edit_ok" i18n:translate="">Retire</th>
   55 </tr>
   56 <tal:block repeat="user batch">
   57 <tr tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6//3]">
   58  <td>
   59   <a tal:attributes="href string:user${user/id}"
   60      tal:content="user/username">username</a>
   61  </td>
   62  <td tal:content="python:user.realname.plain() or default">&nbsp;</td>
   63  <td tal:content="python:user.organisation.plain() or default">&nbsp;</td>
   64  <td tal:content="python:user.address.email() or default">&nbsp;</td>
   65  <td tal:content="python:user.phone.plain() or default">&nbsp;</td>
   66  <td tal:condition="context/is_edit_ok">
   67   <a tal:attributes="href string:user${user/id}?@action=retire&@template=index"
   68    i18n:translate="">retire</a>
   69  </td>
   70 </tr>
   71 </tal:block>
   72  <tr tal:condition="batch">
   73   <th tal:attributes="colspan python:len(request.columns)">
   74    <table>
   75     <tr class="navigation">
   76      <th>
   77       <a tal:define="prev batch/previous" tal:condition="prev"
   78          tal:attributes="href python:request.indexargs_url(request.classname,
   79          {'@startwith':prev.first, '@pagesize':prev.size})"
   80          i18n:translate="">&lt;&lt; previous</a>
   81       &nbsp;
   82      </th>
   83      <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start"
   84      />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end"
   85      /> out of <span tal:replace="batch/sequence_length" i18n:name="total"
   86      /></th>
   87      <th>
   88       <a tal:define="next batch/next" tal:condition="next"
   89          tal:attributes="href python:request.indexargs_url(request.classname,
   90          {'@startwith':next.first, '@pagesize':next.size})"
   91          i18n:translate="">next &gt;&gt;</a>
   92       &nbsp;
   93      </th>
   94     </tr>
   95    </table>
   96   </th>
   97  </tr>
   98 
   99 </table>
  100 </td>
  101 
  102 
  103 
  104 </tal:block>