<h1>{{@page_data['title']}}</h1>
<form name="tables_form" action="/tables/add" method="POST">
  <input type="hidden" name="id" value="{{@table['id']}}">
  <input type="hidden" name="room" value="{{@table['room']}}">
  <input type="hidden" name="x" value="{{@table['x']}}">
  <input type="hidden" name="y" value="{{@table['y']}}">
  <table>
    <tr>
      <td>
        Название стола*
      </td>
      <td>
        <input type="text" required="true" name="title" value="{{@table['title']}}">
      </td>
    </tr>
    <tr>
      <td colspan="2" align="center">
        * обязательное поле
      </td>
    </tr>
    <tr>
      <td colspan="2" align="center">
        <input type="submit" value="Сохранить">
        <check if="{{@table['id']>0}}">
        <input type="button" value="Переместить" name="dinner_table_move">
        <a href="/messages/continue?uri={{urlencode("/tables/delete?id=".@table['id'])}}" class="show_window">
          <input type="button" value="Удалить">
        </a>
        </check>
      </td>
    </tr>
  </table>
</form>
