<%page args="element, widgetstyle" />
<%namespace file="../_helpers.html" import="wireElementEvents"/>


    <div id="item-${element['elementName'] | h}" class="${element['class'] if 'class' in element else '' | h} widget" ${widgetstyle}>
        % if 'label' in element:
            <label for="${element['elementName'] | h}_id">${_(element['label'])}</label>
        % endif
        % if 'helpText' in element:
            <p class="helpText">${_(element['helpText'])}</p>
        % endif
        <div>
            <div class="widgeterror"><form:error name="${element["elementName"]}"/></div>
            <input id="${element['elementName'] | h}_id" type="file" \
                class="${element['class'] if 'class' in element else '' | h}" \
                name="${element["elementName"] | h}" \
                />
            % if 'exampleText' in element:
                <p class="exampleText"><em>${_(element['exampleText']) | extract_help_links }</em></p>
            % endif    
        </div>
    </div>
