<%= form_for(proverb, class: 'form') do |f| %>

<div class="row">
    <div class="col-xs-8 col-xs-offset-2 text-center">
        <% if proverb.errors.any? %>
        <div id="error_explanation">
            <h2>Greška:
            </h2>
            <ul>
                <% proverb.errors.full_messages.each do |message| %>
                <li><%= message %></li>
                <% end %>
            </ul>
        </div>
        <% end %>
        <div class="form-group">

            <div class="field">
                <%= f.text_field :author_name, class: 'form-control', placeholder: 'Ime autora izreke', required: true %>
            </div>

            <div class="field">
                <%= f.email_field :user_email, class: 'form-control', placeholder: 'Vaša Email Adresa', required: true %>
            </div>

            <div class="field">
                <%= label_tag "Izreka" %>
                <%= f.text_area :quote, :rows => 5, class: 'form-control' %>
            </div>

            <div class="form-group">
                <%= f.submit "Dodaj izreku!" , class: 'btn btn_large btn-success' %>
            </div>
        </div>
        <% end %>
    </div>
</div>
