<!DOCTYPE html>
<html>
<head>
  <title>{{$form_name}}</title>
  {{$required_resources}}
  {{$R.styles}}
  <script>
  $(function() {
    $("input,textarea,select").bind("focus", function() {
      $(this).closest("form").find(".ts_field").removeClass("ts_field_row_selected");
      $(this).closest(".ts_field").addClass("ts_field_row_selected");
    });
    $(":text:visible:enabled:first").focus();
  });
  </script>
</head>
<body>
  <div class="ts_page" style="width:800px">
    <div class="ts_content">
