-
Notifications
You must be signed in to change notification settings - Fork 69
/
_listicle_fields.html.haml
36 lines (33 loc) · 1.04 KB
/
_listicle_fields.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.card.bg-light.mt-2
.card-body
.row
.col-md-6
.form-group
= f.label "Title"
= f.text_field :title, placeholder: 'Title', class: 'form-control'
.col-md-6
.form-group
= f.label "Credits"
= f.text_field :image_credits, placeholder: 'Image credits - should be a link in HTML or Markdown', class: 'form-control'
.row
.col-md-12
.form-group
= f.label "Body"
= f.text_area :body, placeholder: 'Body content - HTML or Markdown', class: 'form-control'
.row
.col-md-6
.form-group
= f.file_field :image
%span
min-width 726px
%label.index-image-select
<input type="radio" name="index_image_id" value="#{f.object.id}" class="index_image_#{f.object.id}">
Primary image
.col-md-6
%span
Order
.form-group
= f.number_field :list_order, placeholder: '1', min: 0, class: 'form-control'
= f.hidden_field :_destroy
%a.remove_fields
Remove