Skip to content

Commit 8ca4759

Browse files
author
Thomas Scherz
committed
Updates forms for Bootstrap5
1 parent a3f6252 commit 8ca4759

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

app/views/change_requests/_form.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434

3535
<div class="field">
3636
<%= form.label :authentication_needed %>
37-
<%= form.check_box :authentication_needed, :class => "form-control" %>
37+
<%= form.check_box :authentication_needed%>
3838
</div><br/>
3939

4040
<div class="field">
4141
<%= form.label :custom_error_pages %>
42-
<%= form.check_box :custom_error_pages, :class => "form-control" %>
42+
<%= form.check_box :custom_error_pages%>
4343
</div><br/>
4444

4545
<div class="field">
@@ -49,7 +49,7 @@
4949

5050
<div class="field">
5151
<%= form.label :change_completed %>
52-
<%= form.check_box :change_completed, :class => "form-control" %>
52+
<%= form.check_box :change_completed%>
5353
</div><br/>
5454

5555
<div class="field">

app/views/hosting_environments/_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
<% end %>
1414

1515
<div class="field">
16-
<%= form.label :title %>
16+
<%= form.label :title, class: 'text-white' %>
1717
<%= form.text_field :title, :class => "form-control" %>
1818
</div><br/>
1919

2020
<div class="field">
21-
<%= form.label :description %>
21+
<%= form.label :description, class: 'text-white' %>
2222
<%= form.text_field :description, :class => "form-control" %>
2323
</div>
2424
<br/><br/>

app/views/software_records/_form.html.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@
2424
<%= form_with(model: software_record, local: true) do |form| %>
2525
<ul class="nav nav-tabs" id="softwareRecordTab" role="tablist">
2626
<li class="nav-item">
27-
<a class="nav-link active" id="general-tab" data-bs-toggle="tab" href="#general" role="tab" aria-controls="general"
27+
<a class="nav-link active text-white" id="general-tab" data-bs-toggle="tab" href="#general" role="tab" aria-controls="general"
2828
aria-selected="true">General</a>
2929
</li>
3030
<li class="nav-item">
31-
<a class="nav-link" id="server-environment-tab" data-bs-toggle="tab" href="#server-environment" role="tab" aria-controls="server-environment"
31+
<a class="nav-link text-white" id="server-environment-tab" data-bs-toggle="tab" href="#server-environment" role="tab" aria-controls="server-environment"
3232
aria-selected="false">Server Environment</a>
3333
</li>
3434
<li class="nav-item">
35-
<a class="nav-link" id="change-management-tab" data-bs-toggle="tab" href="#change-management" role="tab" aria-controls="change-management"
35+
<a class="nav-link text-white" id="change-management-tab" data-bs-toggle="tab" href="#change-management" role="tab" aria-controls="change-management"
3636
aria-selected="false">Change Management</a>
3737
</li>
3838
<li class="nav-item">
39-
<a class="nav-link" id="upgrade-history-tab" data-bs-toggle="tab" href="#upgrade-history" role="tab" aria-controls="upgrade-history"
39+
<a class="nav-link text-white" id="upgrade-history-tab" data-bs-toggle="tab" href="#upgrade-history" role="tab" aria-controls="upgrade-history"
4040
aria-selected="false">Upgrade History</a>
4141
</li>
4242
<li class="nav-item">
43-
<a class="nav-link" id="maintenance-log-tab" data-bs-toggle="tab" href="#maintenance-log" role="tab" aria-controls="maintenance-log"
43+
<a class="nav-link text-white" id="maintenance-log-tab" data-bs-toggle="tab" href="#maintenance-log" role="tab" aria-controls="maintenance-log"
4444
aria-selected="false">Maintenance Log</a>
4545
</li>
4646
</ul>

app/views/software_records/_form_maintenance_log.html.erb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,37 +29,37 @@
2929

3030
<div class="mb-3">
3131
<%= form.label :upgrade_available %>
32-
<%= form.check_box :upgrade_available, :class => "form-control" %>
32+
<%= form.check_box :upgrade_available %>
3333
</div>
3434

3535
<div class="mb-3">
3636
<%= form.label :vulnerabilities_reported %>
37-
<%= form.check_box :vulnerabilities_reported, :class => "form-control" %>
37+
<%= form.check_box :vulnerabilities_reported%>
3838
</div>
3939

4040
<div class="mb-3">
4141
<%= form.label :vulnerabilities_fixed %>
42-
<%= form.check_box :vulnerabilities_fixed, :class => "form-control" %>
42+
<%= form.check_box :vulnerabilities_fixed%>
4343
</div>
4444

4545
<div class="mb-3">
4646
<%= form.label :bug_fixes %>
47-
<%= form.check_box :bug_fixes, :class => "form-control" %>
47+
<%= form.check_box :bug_fixes%>
4848
</div>
4949

5050
<div class="mb-3">
5151
<%= form.label :new_features %>
52-
<%= form.check_box :new_features, :class => "form-control" %>
52+
<%= form.check_box :new_features%>
5353
</div>
5454

5555
<div class="mb-3">
5656
<%= form.label :breaking_changes %>
57-
<%= form.check_box :breaking_changes, :class => "form-control" %>
57+
<%= form.check_box :breaking_changes %>
5858
</div>
5959

6060
<div class="mb-3">
6161
<%= form.label :end_of_life %>
62-
<%= form.check_box :end_of_life, :class => "form-control" %>
62+
<%= form.check_box :end_of_life %>
6363
</div>
6464

6565
<div class="mb-3">

app/views/software_types/_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
</div>
1313
<% end %>
1414
<div class="mb-3">
15-
<%= form.label :title, 'Software Type' %>
15+
<%= form.label :title, 'Software Type', class: 'text-white' %>
1616
<%= form.text_field :title, :class => "form-control" %>
1717
</div>
1818

1919
<div class="mb-3">
20-
<%= form.label :description %>
20+
<%= form.label :description, class: 'text-white' %>
2121
<%= form.text_area :description, :class => "form-control" %>
2222
</div>
2323

app/views/statuses/_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
<% end %>
1414

1515
<div class="field">
16-
<%= form.label :title %>
16+
<%= form.label :title, class: 'text-white' %>
1717
<%= form.text_field :title, :class => "form-control" %>
1818
</div><br/>
1919

2020
<div class="field">
21-
<%= form.label :status_type %>
21+
<%= form.label :status_type, class: 'text-white' %>
2222
<% if component.eql?("new") %>
2323
<%= form.select :status_type, options_for_select(['Design', 'Production', 'Decommissioned', 'Development', 'Other'], :selected=>"Design"),
2424
{}, {:class => "form-control"} %>

app/views/vendor_records/_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
</div>
1313
<% end %>
1414
<div class="mb-3">
15-
<%= form.label :title, 'Name' %>
15+
<%= form.label :title, 'Name', class: 'text-white' %>
1616
<%= form.text_field :title, :class => "form-control" %>
1717
</div>
1818

1919
<div class="mb-3">
20-
<%= form.label :description %>
20+
<%= form.label :description, class: 'text-white' %>
2121
<%= form.text_area :description, :class => "form-control" %>
2222
</div>
2323
<br/>

0 commit comments

Comments
 (0)