-
Notifications
You must be signed in to change notification settings - Fork 352
/
Copy pathbootstrap_form_group_test.rb
654 lines (580 loc) · 26.3 KB
/
bootstrap_form_group_test.rb
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
require_relative "test_helper"
class BootstrapFormGroupTest < ActionView::TestCase
include BootstrapForm::ActionViewExtensions::FormHelper
setup :setup_test_fixture
test "changing the label text via the label option parameter" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label required" for="user_email">Email Address</label>
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, label: "Email Address")
end
test "changing the label text via the html_options label hash" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label required" for="user_email">Email Address</label>
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, label: { text: "Email Address" })
end
test "hiding a label" do
expected = <<~HTML
<div class="mb-3">
<label class="visually-hidden required" for="user_email">Email</label>
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, hide_label: true)
end
test "adding a custom label class via the label_class parameter" do
expected = <<~HTML
<div class="mb-3">
<label class="btn required" for="user_email">Email</label>
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, label_class: "btn")
end
test "adding a custom label class via the html_options label hash" do
expected = <<~HTML
<div class="mb-3">
<label class="btn required" for="user_email">Email</label>
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, label: { class: "btn" })
end
test "adding a custom label and changing the label text via the html_options label hash" do
expected = <<~HTML
<div class="mb-3">
<label class="btn required" for="user_email">Email Address</label>
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, label: { class: "btn", text: "Email Address" })
end
test "skipping a label" do
expected = <<~HTML
<div class="mb-3">
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, skip_label: true)
end
test "preventing a label from having the required class with :skip_required" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label" for="user_email">Email</label>
<input class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
HTML
assert_output(nil, "`:skip_required` is deprecated, use `:required: false` instead\n") do
assert_equivalent_html expected, @builder.text_field(:email, skip_required: true)
end
end
test "preventing a label from having the required class" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label" for="user_email">Email</label>
<input class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, required: false)
end
test "forcing a label to have the required class" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label required" for="user_comments">Comments</label>
<input class="form-control" id="user_comments" name="user[comments]" type="text" value="my comment" required="required" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:comments, required: true)
end
test "label as placeholder" do
expected = <<~HTML
<div class="mb-3">
<label class="visually-hidden required" for="user_email">Email</label>
<input required="required" class="form-control" id="user_email" placeholder="Email" name="user[email]" type="text" value="[email protected]" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, label_as_placeholder: true)
end
test "adding prepend text" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label required" for="user_email">Email</label>
<div class="input-group">
<span class="input-group-text">@</span>
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, prepend: "@")
end
test "adding append text" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label required" for="user_email">Email</label>
<div class="input-group">
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
<span class="input-group-text">.00</span>
</div>
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, append: ".00")
end
test "append and prepend button" do
prefix = '<div class="mb-3"><label class="form-label required" for="user_email">Email</label><div class="input-group">'
field = <<~HTML
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
HTML
button_src = link_to("Click", "#", class: "btn btn-secondary")
button_prepend = button_src
button_append = button_src
suffix = "</div></div>"
after_button = prefix + field + button_append + suffix
before_button = prefix + button_prepend + field + suffix
both_button = prefix + button_prepend + field + button_append + suffix
multiple_button = prefix + button_prepend + button_prepend + field + button_append + button_append + suffix
assert_equivalent_html after_button, @builder.text_field(:email, append: button_src)
assert_equivalent_html before_button, @builder.text_field(:email, prepend: button_src)
assert_equivalent_html both_button, @builder.text_field(:email, append: button_src, prepend: button_src)
assert_equivalent_html multiple_button, @builder.text_field(:email, append: [button_src] * 2, prepend: [button_src] * 2)
end
test "adding both prepend and append text" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label required" for="user_email">Email</label>
<div class="input-group">
<span class="input-group-text">$</span>
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
<span class="input-group-text">.00</span>
</div>
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, prepend: "$", append: ".00")
end
test "adding both prepend and append text with validation error" do
@user.email = nil
assert @user.invalid?
expected = <<~HTML
<form accept-charset="UTF-8" action="/users" class="new_user" id="new_user" method="post">
#{'<input name="utf8" type="hidden" value="✓"/>' unless ::Rails::VERSION::STRING >= '6'}
<div class="mb-3">
<label class="form-label required" for="user_email">Email</label>
<div class="input-group">
<span class="input-group-text">$</span>
<input required="required" class="form-control is-invalid" id="user_email" name="user[email]" type="text" />
<span class="input-group-text">.00</span>
<div class="invalid-feedback">can't be blank, is too short (minimum is 5 characters)</span>
</div>
</div>
</form>
HTML
assert_equivalent_html expected, bootstrap_form_for(@user) { |f| f.text_field :email, prepend: "$", append: ".00" }
end
test "help messages for default forms" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label required" for="user_email">Email</label>
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
<small class="form-text text-body-secondary">This is required</small>
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, help: "This is required")
end
test "help messages for horizontal forms" do
expected = <<~HTML
<div class="mb-3 row">
<label class="col-form-label col-sm-2 required" for="user_email">Email</label>
<div class="col-sm-10">
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
<small class="form-text text-body-secondary">This is required</small>
</div>
</div>
HTML
assert_equivalent_html expected, @horizontal_builder.text_field(:email, help: "This is required")
end
test "help messages to look up I18n automatically" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label" for="user_password">Password</label>
<input class="form-control" id="user_password" name="user[password]" type="text" value="secret" />
<small class="form-text text-body-secondary">A good password should be at least six characters long</small>
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:password)
end
test "help messages to look up I18n automatically using HTML key" do
I18n.backend.store_translations(:en, activerecord: {
help: {
user: {
password: {
html: "A <strong>good</strong> password should be at least six characters long"
}
}
}
})
expected = <<~HTML
<div class="mb-3">
<label class="form-label" for="user_password">Password</label>
<input class="form-control" id="user_password" name="user[password]" type="text" value="secret" />
<small class="form-text text-body-secondary">A <strong>good</strong> password should be at least six characters long</small>
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:password)
end
test "help messages to warn about deprecated I18n key" do
super_user = SuperUser.new(@user.attributes)
builder = BootstrapForm::FormBuilder.new(:super_user, super_user, self, {})
I18n.backend.store_translations(:en, activerecord: {
help: {
superuser: {
password: "A good password should be at least six characters long"
}
}
})
builder.stubs(:warn).returns(true)
builder.expects(:warn).at_least_once
builder.password_field(:password)
end
test "help messages to ignore translation when user disables help" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label" for="user_password">Password</label>
<input class="form-control" id="user_password" name="user[password]" type="text" value="secret" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:password, help: false)
end
test "form_group creates a valid structure and allows arbitrary html to be added via a block" do
output = @horizontal_builder.form_group :nil, label: { text: "Foo" } do
'<input class="form-control-plaintext" value="Bar">'.html_safe
end
expected = <<~HTML
<div class="mb-3 row">
<label class="col-form-label col-sm-2" for="user_nil">Foo</label>
<div class="col-sm-10">
<input class="form-control-plaintext" value="Bar">
</div>
</div>
HTML
assert_equivalent_html expected, output
end
test "form_group adds a spacer when no label exists for a horizontal form" do
output = @horizontal_builder.form_group do
'<input class="form-control-plaintext" value="Bar">'.html_safe
end
expected = <<~HTML
<div class="mb-3 row">
<div class="col-sm-10 offset-sm-2">
<input class="form-control-plaintext" value="Bar">
</div>
</div>
HTML
assert_equivalent_html expected, output
end
test "form_group renders the label correctly" do
output = @horizontal_builder.form_group :email, label: { text: "Custom Control" } do
'<input class="form-control-plaintext" value="Bar">'.html_safe
end
expected = <<~HTML
<div class="mb-3 row">
<label class="col-form-label col-sm-2 required" for="user_email">Custom Control</label>
<div class="col-sm-10">
<input class="form-control-plaintext" value="Bar">
</div>
</div>
HTML
assert_equivalent_html expected, output
end
test "form_group accepts class through options hash" do
output = @horizontal_builder.form_group :email, class: "mb-3 foo" do
'<input class="form-control-plaintext" value="Bar">'.html_safe
end
expected = <<~HTML
<div class="mb-3 foo row">
<div class="col-sm-10 offset-sm-2">
<input class="form-control-plaintext" value="Bar">
</div>
</div>
HTML
assert_equivalent_html expected, output
end
test "form_group accepts class through options hash without needing a name" do
output = @horizontal_builder.form_group class: "mb-3 foo" do
'<input class="form-control-plaintext" value="Bar">'.html_safe
end
expected = <<~HTML
<div class="mb-3 foo row">
<div class="col-sm-10 offset-sm-2">
<input class="form-control-plaintext" value="Bar">
</div>
</div>
HTML
assert_equivalent_html expected, output
end
test "form_group horizontal lets caller override .row" do
output = @horizontal_builder.form_group class: "mb-3 g-3" do
'<input class="form-control-plaintext" value="Bar">'.html_safe
end
expected = <<~HTML
<div class="mb-3 g-3">
<div class="col-sm-10 offset-sm-2">
<input class="form-control-plaintext" value="Bar">
</div>
</div>
HTML
assert_equivalent_html expected, output
end
test "form_group overrides the label's 'class' and 'for' attributes if others are passed" do
output = @horizontal_builder.form_group nil, label: { text: "Custom Control", add_class: "foo", for: "bar" } do
'<input class="form-control-plaintext" value="Bar">'.html_safe
end
expected = <<~HTML
<div class="mb-3 row">
<label class="foo col-form-label col-sm-2" for="bar">Custom Control</label>
<div class="col-sm-10">
<input class="form-control-plaintext" value="Bar">
</div>
</div>
HTML
assert_equivalent_html expected, output
end
test 'upgrade doc for form_group renders the "error" class and message correctly when object is invalid' do
@user.email = nil
assert @user.invalid?
output = @builder.form_group :email do
html = '<p class="form-control-plaintext">Bar</p>'.html_safe
unless @user.errors[:email].empty?
html << tag.div(@user.errors[:email].join(", "), class: "invalid-feedback",
style: "display: block;")
end
html
end
expected = <<~HTML
<div class="mb-3">
<p class="form-control-plaintext">Bar</p>
<div class="invalid-feedback" style="display: block;">can't be blank, is too short (minimum is 5 characters)</div>
</div>
HTML
assert_equivalent_html expected, output
end
test "upgrade doc for form_group renders check box correctly when object is invalid" do
@user.errors.add(:misc, "Must select one.")
output = bootstrap_form_for(@user) do |f|
f.form_group :email do
concat(f.radio_button(:misc, "primary school"))
concat(f.radio_button(:misc, "high school"))
concat(f.radio_button(:misc, "university", error_message: true))
end
end
expected = <<~HTML
<form accept-charset="UTF-8" action="/users" class="new_user" id="new_user" method="post">
#{'<input name="utf8" type="hidden" value="✓"/>' unless ::Rails::VERSION::STRING >= '6'}
<div class="mb-3">
<div class="form-check">
<input class="form-check-input is-invalid" id="user_misc_primary_school" name="user[misc]" type="radio" value="primary school"/>
<label class="form-check-label" for="user_misc_primary_school">Primary school</label>
</div>
<div class="form-check">
<input class="form-check-input is-invalid" id="user_misc_high_school" name="user[misc]" type="radio" value="high school"/>
<label class="form-check-label" for="user_misc_high_school">High school</label>
</div>
<div class="form-check">
<input class="form-check-input is-invalid" id="user_misc_university" name="user[misc]" type="radio" value="university"/>
<label class="form-check-label" for="user_misc_university">University</label>
<div class="invalid-feedback">Must select one.</div>
</div>
</div>
</form>
HTML
assert_equivalent_html expected, output
end
test "overrides the class of the wrapped form_group by a field" do
expected = <<~HTML
<div class="none-margin">
<label class="form-label" for="user_misc">Misc</label>
<input class="form-control" id="user_misc" name="user[misc]" type="search" />
</div>
HTML
assert_equivalent_html expected, @builder.search_field(:misc, wrapper_class: "none-margin")
end
test "overrides the class of the wrapped form_group by a field with errors" do
@user.email = nil
assert @user.invalid?
expected = <<~HTML
<div class="none-margin">
<div class="field_with_errors">
<label class="form-label required" for="user_email">Email</label>
</div>
<div class="field_with_errors">
<input required="required" class="form-control is-invalid" id="user_email" name="user[email]" type="email" />
</div>
<div class="invalid-feedback">can't be blank, is too short (minimum is 5 characters)</div>
</div>
HTML
output = @builder.email_field(:email, wrapper_class: "none-margin")
assert_equivalent_html expected, output
end
test "overrides the class of the wrapped form_group by a field with errors when bootstrap_form_for is used" do
@user.email = nil
assert @user.invalid?
output = bootstrap_form_for(@user) do |f|
f.text_field(:email, help: "This is required", wrapper_class: "none-margin")
end
expected = <<~HTML
<form accept-charset="UTF-8" action="/users" class="new_user" id="new_user" method="post">
#{'<input name="utf8" type="hidden" value="✓"/>' unless ::Rails::VERSION::STRING >= '6'}
<div class="none-margin">
<label class="form-label required" for="user_email">Email</label>
<input required="required" class="form-control is-invalid" id="user_email" name="user[email]" type="text" />
<div class="invalid-feedback">can't be blank, is too short (minimum is 5 characters)</div>
<small class="form-text text-body-secondary">This is required</small>
</div>
</form>
HTML
assert_equivalent_html expected, output
end
test "adds offset for form_group without label" do
output = @horizontal_builder.form_group do
@horizontal_builder.submit
end
expected = <<~HTML
<div class="mb-3 row">
<div class="col-sm-10 offset-sm-2">
<input class="btn btn-secondary" name="commit" type="submit" value="Create User" />
</div>
</div>
HTML
assert_equivalent_html expected, output
end
test "adds offset for form_group without label but specific label_col" do
output = @horizontal_builder.form_group label_col: "col-sm-5", control_col: "col-sm-8" do
@horizontal_builder.submit
end
expected = <<~HTML
<div class="mb-3 row">
<div class="col-sm-8 offset-sm-5">
<input class="btn btn-secondary" name="commit" type="submit" value="Create User" />
</div>
</div>
HTML
assert_equivalent_html expected, output
end
# TODO: What is this actually testing? Improve the test name
test "single form_group call in horizontal form should not be smash design" do
output = @horizontal_builder.form_group do
"Hallo"
end
output << @horizontal_builder.text_field(:email)
expected = <<~HTML
<div class="mb-3 row">
<div class="col-sm-10 offset-sm-2">Hallo</div>
</div>
<div class="mb-3 row">
<label class="col-form-label col-sm-2 required" for="user_email">Email</label>
<div class="col-sm-10">
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
</div>
HTML
assert_equivalent_html expected, output
end
test "adds data-attributes (or any other options) to wrapper" do
expected = <<~HTML
<div class="mb-3" data-foo="bar">
<label class="form-label" for="user_misc">Misc</label>
<input class="form-control" id="user_misc" name="user[misc]" type="search" />
</div>
HTML
assert_equivalent_html expected, @builder.search_field(:misc, wrapper: { data: { foo: "bar" } })
end
test "rendering without wrapper" do
expected = <<~HTML
<input required="required" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
HTML
assert_equivalent_html expected, @builder.text_field(:email, wrapper: false)
end
test "rendering without wrapper class" do
expected = <<~HTML
<div>
<label class="form-label" for="user_misc">Misc</label>
<input class="form-control" id="user_misc" name="user[misc]" type="search" />
</div>
HTML
assert_equivalent_html expected, @builder.search_field(:misc, wrapper: { class: false })
end
test "passing options to a form control get passed through" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label required" for="user_email">Email</label>
<input required="required" autofocus="autofocus" class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
</div>
HTML
assert_equivalent_html expected, @builder.text_field(:email, autofocus: true)
end
test "doesn't throw undefined method error when the content block returns nil" do
output = @builder.form_group :nil, label: { text: "Foo" } do
nil
end
expected = <<~HTML
<div class="mb-3">
<label class="form-label" for="user_nil">Foo</label>
</div>
HTML
assert_equivalent_html expected, output
end
test "custom form group layout option" do
expected = <<~HTML
<form accept-charset="UTF-8" action="/users" class="new_user" id="new_user" method="post">
#{'<input name="utf8" type="hidden" value="✓"/>' unless ::Rails::VERSION::STRING >= '6'}
<div class="mb-3 col-auto g-3">
<label class="form-label me-sm-2 required" for="user_email">Email</label>
<input required="required" class="form-control" id="user_email" name="user[email]" type="email" value="[email protected]" />
</div>
</form>
HTML
assert_equivalent_html expected, bootstrap_form_for(@user, layout: :horizontal) { |f| f.email_field :email, layout: :inline }
end
test "non-default column span on form is reflected in form_group" do
non_default_horizontal_builder = BootstrapForm::FormBuilder.new(:user, @user, self, layout: :horizontal,
label_col: "col-sm-3",
control_col: "col-sm-9")
output = non_default_horizontal_builder.form_group do
'<input class="form-control-plaintext" value="Bar">'.html_safe
end
expected = <<~HTML
<div class="mb-3 row">
<div class="col-sm-9 offset-sm-3">
<input class="form-control-plaintext" value="Bar">
</div>
</div>
HTML
assert_equivalent_html expected, output
end
test "non-default column span on form isn't mutated" do
frozen_horizontal_builder = BootstrapForm::FormBuilder.new(:user, @user, self, layout: :horizontal,
label_col: "col-sm-3".freeze,
control_col: "col-sm-9".freeze)
output = frozen_horizontal_builder.form_group { "test" }
expected = '<div class="mb-3 row"><div class="col-sm-9 offset-sm-3">test</div></div>'
assert_equivalent_html expected, output
end
test ":input_group_class should apply to input-group" do
expected = <<~HTML
<div class="mb-3">
<label class="form-label required" for="user_email">Email</label>
<div class="input-group input-group-lg">
<input required="required" class="form-control" id="user_email" name="user[email]" type="email" value="[email protected]" />
<input class="btn btn-primary" name="commit" type="submit" value="Subscribe" />
</div>
</div>
HTML
assert_equivalent_html expected, @builder.email_field(:email, append: @builder.primary("Subscribe"),
input_group_class: "input-group-lg")
end
end