<div align="center" style="width: auto">
    <table class="grid" style="width: 500px">
        <tr><th class="even" colspan=2>
            {$Title} {* [{foreach key=FieldName item=FieldValue from=$PrimaryKeyMap name=PrimaryKeys}{$FieldName}: {$FieldValue}{if !$smarty.foreach.PrimaryKeys.last}; {/if}{/foreach}] *}
        </th></tr>
        {if $Grid->GetErrorMessage() != ''}
        <tr><td class="odd grid_error_row" colspan=4>
            <div class="grid_error_message grid_message">
            <strong>{$Captions->GetMessageString('ErrorsDuringDeleteProcess')}</strong><br><br>
            {$Grid->GetErrorMessage()}
            </div>
        </td></tr>
        {/if}
{section name=RowGrid loop=$ColumnCount}
        <tr class="{if $smarty.section.RowGrid.index is even}even{else}odd{/if}"{if $RowCssStyles[$smarty.foreach.RowsGrid.index] != ''} style="{$RowCssStyles[$smarty.foreach.RowsGrid.index]}"{/if}>
            <td class="odd" style="padding-left:20px;"><b>{$Columns[$smarty.section.RowGrid.index]->GetCaption()}</b></td>
            <td class="even" style="padding-left:10px;">
                {$Row[$smarty.section.RowGrid.index]}
            </td>
        </tr>
{/section}
        <tr height="40" class="editor_buttons"><td colspan=2 align=center valign=middle>
            <form name="deleteform" style="margin: 0px; padding: 0px;" enctype="multipart/form-data" method="POST" action="{$Grid->GetEditPageAction()}">
{foreach key=HiddenValueName item=HiddenValue from=$HiddenValues}   
                <input type="hidden" name="{$HiddenValueName}" value="{$HiddenValue}" />
{/foreach}
                <input class="sm_button" type="submit" value="{$Captions->GetMessageString('Delete')}" />
                <input class="sm_button" type="button" value="{$Captions->GetMessageString('BackToList')}" onclick="window.location.href='{$Grid->GetReturnUrl()}'"/>
            </form>
        </td></tr>
    </table>
</div>
