#parse ("/includes/alert-anonymous.vm")
<form method="post" id="upload-attachments" action="doattachfile.action?pageId=$page.id" enctype="multipart/form-data">
    <div id="upload-files">
        <h3>
            $action.getText('attach.file')
        </h3>
        <ol>
            <li>
                <input type="file" name="file_0" size="50">
                <p class="stepdesc">$action.getText("attach.desc")</p>
            </li>
            #foreach ($count in [1..$max])
                <li class="hidden">
                    <input type="file" name="file_${count}" id="file_${count}" size="50">
                </li>
            #end
        </ol>
    </div>
    <div id="upload-comments">
        <h3>
            $action.getText('comment.name')
        </h3>
        <ol>
            <li>
                <input type="text" class="commentTextField" name="comment_0" value="" maxlength="255">
                <span class="smalltext">($action.getText('optional.name'))</span>
                <p class="stepdesc">$action.getText("comment.desc")</p>
            </li>
            #foreach ($count in [1..$max])
                <li class="hidden">
                    <input class="commentTextField" type="text" name="comment_${count}" value="" maxlength="255">
                </li>
            #end
        </ol>
    </div>
    <p class="hidden link">
        <a href="#">$action.getText('attach.more.files')</a>
    </p>
    #parse ("/pages/includes/captcha-form-elements.vm")
    <p class="submit button">
        #tag ("Submit" "name='confirm'" "value='attach.file.button'" "theme='notable'")
    </p>
</form>