<div class="sidebar">
  <% if @patient %>
    <%= render(partial: 'card', locals: { patient: @patient }) unless @patient.new_record? %>
  <% else %>
    <div class="filters">
      <div style="margin: 0px 0px 6px 0px">
        <%= form_tag patients_path, method: 'get', enforce_utf8: false do %>
          <%= search_field_tag :search, params[:search], size: 23, results: 5,
            autocorrect: 'off', placeholder: t('.search_patients') %>
        <% end %>
      </div>
    </div>
  <% end %>

  <% if @recent %>
    <div class="panel" id="recent">
      <div class="caption"><%= t('.recent_patients') %></div>
      <ul>
        <%= render partial: 'shared/recent_patients',
          collection: @recent, as: :patient, cached: true %>
      </ul>
    </div>
  <% end %>
</div>

<div class="sidebar">
  <% if @patient %>
    <%= render(partial: 'card', locals: { patient: @patient }) unless @patient.new_record? %>
  <% else %>
    <div class="filters">
      <div style="margin: 0px 0px 6px 0px">
        <%= form_tag patients_path, method: 'get', enforce_utf8: false do %>
          <%= search_field_tag :search, params[:search], size: 23, results: 5,
            autosave: "search_#{current_user.username}", autocorrect: 'off', placeholder: t('.search_patients') %>
        <% end %>
      </div>
    </div>
  <% end %>

  <% if @recent %>
    <div class="panel" id="recent">
      <div class="caption"><%= t('.recent_patients') %></div>
      <ul>
        <%= render partial: 'shared/recent_patients',
          collection: @recent, as: :patient, cached: true %>
      </ul>
    </div>
  <% end %>
</div>

Add functionality to the recent searches button
Add functionality to the recent searches button

In Safari:

    <input type="search" results=5 autosave="unique" name="search">
