Use <p> consistently for form alerts
This commit is contained in:
parent
0ddb1364bc
commit
4ad1c4cb86
2 changed files with 3 additions and 3 deletions
|
|
@ -11,10 +11,10 @@
|
||||||
<% if @user and @user.errors.any? %>
|
<% if @user and @user.errors.any? %>
|
||||||
<% @user.errors.each do |error| %>
|
<% @user.errors.each do |error| %>
|
||||||
<% if error.attribute == :email and error.type == :invalid %>
|
<% if error.attribute == :email and error.type == :invalid %>
|
||||||
<div class="alert alert-warning mb-4"><%= _("Email is not a valid email address.") %></div>
|
<p class="alert alert-warning mb-4"><%= _("Email is not a valid email address.") %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if error.attribute == :email and error.type == :taken %>
|
<% if error.attribute == :email and error.type == :taken %>
|
||||||
<div class="alert alert-warning mb-4"><%= _("An account already exists for %{email}.") % { email: @user.email } %></div>
|
<p class="alert alert-warning mb-4"><%= _("An account already exists for %{email}.") % { email: @user.email } %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h3 class="mb-3"><%= _("Add candidate") %></h3>
|
<h3 class="mb-3"><%= _("Add candidate") %></h3>
|
||||||
<% if @vote.candidates.empty? %>
|
<% if @vote.candidates.empty? %>
|
||||||
<div class="alert alert-primary mb-4"><%= _("This vote has no candidates yet. Add a first candidate.") %></div>
|
<p class="alert alert-primary mb-4"><%= _("This vote has no candidates yet. Add a first candidate.") %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<form action="/votes/<%= @vote.secure_id %>/candidates" method="post">
|
<form action="/votes/<%= @vote.secure_id %>/candidates" method="post">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue