-
-
Notifications
You must be signed in to change notification settings - Fork 572
Expand file tree
/
Copy path_form.html.erb
More file actions
36 lines (33 loc) · 1.33 KB
/
_form.html.erb
File metadata and controls
36 lines (33 loc) · 1.33 KB
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
<%= simple_form_for @partner_group, html: {class: 'form-horizontal'} do |f| %>
<section class="content">
<div class="container-fluid">
<div class="row">
<!-- left column -->
<div class="col-md-12">
<!-- jquery validation -->
<div class="card card-primary">
<!-- /.card-header -->
<!-- form start -->
<div class="card-body w-1/2">
<%= f.input :name, label: "Name", wrapper: :input_group do %>
<span class="input-group-text"><i class="fa fa-user"></i></span>
<%= f.input_field :name, class: "form-control" %>
<% end %>
<div class='mt-3'>
<h2 class='text-bold'>Which Item Categories Can They Request?</h2>
<label class='text-sm text-red-600'l>This controls which item categories members of this group can request!</label>
<%= f.association :item_categories, collection: @item_categories, as: :check_boxes, label: '' %>
</div>
</div>
<!-- /.card-body -->
<div class="card-footer">
<%= submit_button(submit_btn_options) %>
</div>
</div>
<!-- /.card -->
</div>
</div>
<!-- /.row -->
</div><!-- /.container-fluid -->
</section>
<% end %>