* Apply fixes for axe issues This commit contains a handful of fixes for possible accessibility issues flagged by axe. I'm currently working through the rest of our admin interface and will break those changes into seperate commits due to the need for cleanup in some of the more complicated interfaces. * Fixup: typo in aria-label * Escape quotes
30 lines
876 B
Text
30 lines
876 B
Text
<main class="row">
|
|
<div class="col-12">
|
|
<h2>Create a Badge:</h2>
|
|
<%= form_for [:admin, @badge], method: :post do |form| %>
|
|
<div class="form-group">
|
|
<%= form.label :title %>
|
|
<%= form.text_field :title, class: "form-control" %>
|
|
</div>
|
|
<hr>
|
|
<div class="form-group">
|
|
<%= form.label :slug, "Slug:" %>
|
|
<%= form.text_field :slug, class: "form-control" %>
|
|
</div>
|
|
<hr>
|
|
<div class="form-group">
|
|
<%= form.label :description, "Description:" %>
|
|
<%= form.text_field :description, class: "form-control" %>
|
|
</div>
|
|
<hr>
|
|
<div class="form-group">
|
|
<%= form.label :badge_image, "Badge Image:" %>
|
|
<br>
|
|
<%= form.file_field :badge_image, class: "form-control" %>
|
|
<br>
|
|
</div>
|
|
<hr>
|
|
<%= submit_tag "Create Badge", class: "btn btn-primary float-right" %>
|
|
<% end %>
|
|
</div>
|
|
</main>
|