Ignore:
Timestamp:
23 Jan 2020, 12:25:29 (5 years ago)
Author:
Henrik Bettermann
Message:

Provide components for file uploads in the applicants section.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantdisplaypage.pt

    r15502 r15943  
    3636          <tal:password replace="view/hasPassword" />
    3737      </td>
    38     <tr>
     38    </tr>
     39    <tal:files>
     40      <tr>
     41        <td class="separator" colspan=2>
     42          Files
     43        </td>
     44      </tr>
     45      <tr>
     46        <td colspan=2>
     47          <span tal:replace="structure view/file_links" />
     48        </td>
     49      </tr>
     50    </tal:files>
    3951  </tbody>
    4052</table>
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt

    r15502 r15943  
    4343          <span tal:replace="view/max_upload_size">10 KB</span>
    4444      </tr>
     45
     46      <tal:files>
     47        <tr tal:repeat="filename view/additional_files">
     48          <td class="fieldname">
     49            <span tal:replace="python:filename[0]">FILENAME</span>
     50          </td>
     51          <td>
     52            <p tal:condition="python:view.file_exists(filename[1])">
     53              <a tal:attributes="href python:filename[1]"i18n:translate="">
     54                Download pdf file
     55              </a>
     56            </p>
     57            <div class="input-group half">
     58              <div class="input-group-btn">
     59                <div class="btn btn-default btn-file">
     60                  Select&hellip;
     61                <input type="file" tal:attributes="name python:filename[1]" />
     62                </div>
     63              </div>
     64              <input type="text" class="form-control" readonly>
     65            </div>
     66            <span i18n:translate="">
     67              PDF files only. Max. file size:
     68            </span>
     69            <span tal:replace="view/max_file_upload_size">10 KB</span>
     70          </td>
     71        </tr>
     72      </tal:files>
     73
    4574      <tr tal:condition="view/manage_applications">
    4675        <td class="fieldname" i18n:translate="">Password:</td>
Note: See TracChangeset for help on using the changeset viewer.