Ignore:
Timestamp:
15 Nov 2011, 07:21:29 (13 years ago)
Author:
Henrik Bettermann
Message:

Add passport picture uploader to student base data pages.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/baseeditpage.pt

    r6756 r7112  
    4040        </tr>
    4141      </tal:block>
     42      <tal:files content="structure provider:files" />
    4243    </tbody>
    4344  </table>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/basemanagepage.pt

    r6701 r7112  
    6161        </td>
    6262      </tr>
     63      <tal:files content="structure provider:files" />
    6364    </tbody>
    6465  </table>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/basepage.pt

    r6699 r7112  
    2323      </td>
    2424    <tr>
     25    <tal:files content="structure provider:files" />
    2526  </tbody>
    2627  <tfoot>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/imagedisplay.pt

    r7106 r7112  
    11<tr>
    22  <td class="label">
    3     <label i18n:translate="" tal:attributes="for viewlet/input_name">
     3    <label i18n:translate="">
    44        <span tal:replace="viewlet/label">FILENAME</span>
    55    </label>
     
    77  <td class="field">
    88    <span class="widget">
    9       <img tal:attributes="src viewlet/download_name" /><br />
     9      <img height="125px" tal:attributes="src viewlet/download_name" />
     10      <br />
    1011    </span>
    1112  </td>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/imageupload.pt

    r7106 r7112  
    77  <td class="field">
    88    <span class="widget">
    9       <img tal:attributes="src viewlet/download_name" /><br />
     9      <img align="middle" height="125px"
     10           tal:attributes="src viewlet/download_name" />
     11      <input type="submit" tal:condition="viewlet/file_exists"
     12       tal:attributes="id python:('delete_%s' % viewlet.input_name);
     13          name python:('delete_%s' % viewlet.input_name)"
     14       value="Delete" class="button" />
     15      <br /><br />
    1016      <input type="file" tal:attributes="name viewlet/input_name"/>
    11       <br />
     17      <input type="submit"
     18               tal:attributes="id python:('upload_%s' % viewlet.input_name);
     19                  name python:('upload_%s' % viewlet.input_name)"
     20               value="Upload" class="button" />
    1221      <span i18n:translate="">
    1322        Max. file size:
Note: See TracChangeset for help on using the changeset viewer.