docbrown/app/views/admin/badges/new.html.erb
Andy Zhao ebbbcee41a
[15-min-fix] Remove badge slug field b/c auto-gen by title (#13649)
* Make explicit that badge slug is auto generated

* Remove slug from new form

* Remove unused disabled form field

* Remove link and Crayonsify form

* Add badge's path
2021-05-05 13:49:43 -04:00

26 lines
852 B
Text

<h2 class="crayons-title mb-6">Create badge</h2>
<div class="crayons-card p-6">
<%= form_for [:admin, @badge], method: :post do |form| %>
<div class="form-group">
<%= form.label :title, "Title:" %>
<%= form.text_field :title, class: "form-control" %>
</div>
<div class="form-group">
<%= form.label :description, "Description:" %>
<%= form.text_field :description, class: "form-control" %>
</div>
<div class="form-group">
<%= form.label :badge_image, "Badge Image:" %>
<%= form.file_field :badge_image, class: "form-control" %>
</div>
<div class="form-group">
<%= form.label :credits_awarded, "Credits awarded:" %>
<%= form.text_field :credits_awarded, class: "form-control" %>
</div>
<%= submit_tag "Create Badge", class: "btn btn-primary" %>
<% end %>
</div>