<%= form_with(model: ziyara) do |form| %>
  <% if ziyara.errors.any? %>
    <div style="color: red">
      <h2><%= pluralize(ziyara.errors.count, "error") %> prohibited this ziyara from being saved:</h2>

      <ul>
        <% ziyara.errors.each do |error| %>
          <li><%= error.full_message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div>
    <%= form.label :name, style: "display: block" %>
    <%= form.text_field :name %>
  </div>

  <div>
    <%= form.submit %>
  </div>
<% end %>
