_pool_form.slim 690 Bytes
- if current_user.errors.any?
  div = current_user.errors.full_messages.to_sentence
table.pools
  - pool.matches.each do |match|
    - bet = current_user.bets.find_or_initialize_by(match_id: match.id)
    = f.simple_fields_for :bets, bet, wrapper: false do|ff|
      tr
        td = l(match.date, format: :short)
        td = match.local
        td
          = ff.input_field :score_visit, placeholder: 'Score local', min: 0
          = ff.input :id, as: :hidden
          = ff.input :match_id, as: :hidden
        td = match.visit
        td = ff.input_field :score_local, placeholder: 'Score visit', min: 0
        td = bet.result ? "Your bet: #{bet.result_i18n.upcase}" : 'BET PENDING'