summaryrefslogtreecommitdiff
path: root/skins/deltab/widgets/file.tmpl
blob: a255da92d250996aca71e5f8cf4722fef9403cfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!-- file -->
<tr>
    <td valign="top">
        <?% data.msg %?>
    </td>
    <td>
        <?% val = cgi.param(data.NAME) || data.def %?>
        <?% TRY %?>
            <?% USE File(reentities(val), root => reentities(realbin)) %?>
            <input style="width:395px;" size="<?% val.length + 3 %?>" type="text" name="<?% data.NAME %?>" value="<?% val %?>" />
        <?% CATCH File %?>
            <input style="width:395px;" size="<?% val.length + 3 %?>" type="text" name="<?% data.NAME %?>" value="<?% val %?>" class="error" /><br />
            <font class="error"><?% gettext("File '%s' does not exist!") | replace('%s',val)%?></font>
        <?% END %?>
    </td>
</tr>