Location: PHPKode > projects > Blandware AtLeap Lite - CMS on PHP > atleaplite/smarty/templates/resource/createUpdate.tpl
{* Smarty template *}

{assign var="fieldCycleName" value="resources"}

{include file="form_errors.tpl"}

<form {$form.attributes}>
<table cellpadding="0" cellspacing="0" border="0" class="modificationTable">
    {if $form.file}
    <tr>
        <th>
            {$form.file.label}
        </th>
        <td>
            {$form.file.html}
        </td>
    </tr>
    {else}
    <tr>
        <th>
            {message key='resource.form.file'}
        </th>
        <td>
            {message key='resource.message.alreadyUploaded'}
        </td>
    </tr>
    {/if}
    <tr>
        <th>
            {$form.fileName.label}
        </th>
        <td>
            {$form.fileName.html}
        </td>
    </tr>
    <tr>
        <th>
            {$form.title.label}
        </th>
        <td>
            {$form.title.html}
        </td>
    </tr>
    <tr>
        <th>
            {$form.download.label}
        </th>
        <td>
            {$form.download.html}
        </td>
    </tr>
    <tr>
        <th>
            {$form.published.label}
        </th>
        <td>
            {$form.published.html}
        </td>
    </tr>
    <tr>
        <th>
            {$form.publicationDate.label}
        </th>
        <td>
            {$form.publicationDate.html}
        </td>
    </tr>
    <tr>
        <th>
            {$form.expirationDate.label}
        </th>
        <td>
            {$form.expirationDate.html}
        </td>
    </tr>
</table>

{if $imageFileName}
    <img src="image.php?fileName={$imageFileName}&size=thumbnail&rnd={random}">
    <br>
{/if}

{$form.submit.html}
{$form.cancel.html}
{$form.back.html}
</form>
{include file="bottom_buttons.tpl"}
{include file="bottom_links.tpl"}
Return current item: Blandware AtLeap Lite - CMS on PHP