<div class="filesupload-Result">
{{if groupArray.length > 0}}
<p>{{> ~loc('_ label.filesupload.newdocuments')}}{{colon /}}</p>
{{if namingInstruction}}
<p class="filesupload-NamingInstruction"><span class="filesupload-Label">{{> ~loc('_ label.phrase.naming')}}{{colon /}}</span> {{> namingInstruction}}</p>
{{/if}}
<ul class="filesupload-List">
    {{for groupArray}}
    <li>
        <p>
            <input name="group-{{: #index}}" value="{{> normalizedBasename}}" type="text" size="50" pattern="[\-\._a-z0-9]+" required>
            <br>
            <span class="filesupload-Extension">
            [{{for tmpFileArray ~lastIndex=(tmpFileArray.length - 1)}}
            .{{> extension}}
            {{if #index <  ~lastIndex}} / {{/if}}
            {{/for}}]
            </span>
        </p>
        <p>
            {{if tmpFileArray.length < 2}}
                {{> ~loc('_ label.global.uploadedfile')}}{{colon /}}
            {{else}}
                {{> ~loc('_ label.global.uploadedfiles')}}{{colon /}}
            {{/if}}
        {{for tmpFileArray ~lastIndex=(tmpFileArray.length - 1)}}
            <a href="{{: ~tmpPath(tmpFileName)}}" target="_blank">{{> originalBasename}}.{{> extension}}</a>{{if #index <  ~lastIndex}}, {{/if}}
        {{/for}}
        </p>
    </li>
    {{/for}}
</ul>
{{/if}}
{{if uploadErrorArray.length > 0}}
<p>{{> ~loc('_ label.filesupload.errorlist')}}{{colon /}}</p>
<ul class="filesupload-List">
    {{for uploadErrorArray}}
    <li>
        <p>
            <span class="global-ErrorMessage">{{> message.text}}</span>
        </p>
        <p>
            {{> ~loc('_ label.global.uploadedfile')}}{{colon /}} <a href="{{: ~tmpPath(tmpFile.tmpFileName)}}" target="_blank">{{> tmpFile.originalBasename}}.{{> tmpFile.extension}}</a>
        </p>
    </li>
    {{/for}}
</ul>
{{/if}}
</div>
