Skip to content

Commit

Permalink
Updates forms for Bootstrap5
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Scherz committed Nov 4, 2024
1 parent a3f6252 commit 8ca4759
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions app/views/change_requests/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@

<div class="field">
<%= form.label :authentication_needed %>
<%= form.check_box :authentication_needed, :class => "form-control" %>
<%= form.check_box :authentication_needed%>
</div><br/>

<div class="field">
<%= form.label :custom_error_pages %>
<%= form.check_box :custom_error_pages, :class => "form-control" %>
<%= form.check_box :custom_error_pages%>
</div><br/>

<div class="field">
Expand All @@ -49,7 +49,7 @@

<div class="field">
<%= form.label :change_completed %>
<%= form.check_box :change_completed, :class => "form-control" %>
<%= form.check_box :change_completed%>
</div><br/>

<div class="field">
Expand Down
4 changes: 2 additions & 2 deletions app/views/hosting_environments/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
<% end %>

<div class="field">
<%= form.label :title %>
<%= form.label :title, class: 'text-white' %>
<%= form.text_field :title, :class => "form-control" %>
</div><br/>

<div class="field">
<%= form.label :description %>
<%= form.label :description, class: 'text-white' %>
<%= form.text_field :description, :class => "form-control" %>
</div>
<br/><br/>
Expand Down
10 changes: 5 additions & 5 deletions app/views/software_records/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@
<%= form_with(model: software_record, local: true) do |form| %>
<ul class="nav nav-tabs" id="softwareRecordTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="general-tab" data-bs-toggle="tab" href="#general" role="tab" aria-controls="general"
<a class="nav-link active text-white" id="general-tab" data-bs-toggle="tab" href="#general" role="tab" aria-controls="general"
aria-selected="true">General</a>
</li>
<li class="nav-item">
<a class="nav-link" id="server-environment-tab" data-bs-toggle="tab" href="#server-environment" role="tab" aria-controls="server-environment"
<a class="nav-link text-white" id="server-environment-tab" data-bs-toggle="tab" href="#server-environment" role="tab" aria-controls="server-environment"
aria-selected="false">Server Environment</a>
</li>
<li class="nav-item">
<a class="nav-link" id="change-management-tab" data-bs-toggle="tab" href="#change-management" role="tab" aria-controls="change-management"
<a class="nav-link text-white" id="change-management-tab" data-bs-toggle="tab" href="#change-management" role="tab" aria-controls="change-management"
aria-selected="false">Change Management</a>
</li>
<li class="nav-item">
<a class="nav-link" id="upgrade-history-tab" data-bs-toggle="tab" href="#upgrade-history" role="tab" aria-controls="upgrade-history"
<a class="nav-link text-white" id="upgrade-history-tab" data-bs-toggle="tab" href="#upgrade-history" role="tab" aria-controls="upgrade-history"
aria-selected="false">Upgrade History</a>
</li>
<li class="nav-item">
<a class="nav-link" id="maintenance-log-tab" data-bs-toggle="tab" href="#maintenance-log" role="tab" aria-controls="maintenance-log"
<a class="nav-link text-white" id="maintenance-log-tab" data-bs-toggle="tab" href="#maintenance-log" role="tab" aria-controls="maintenance-log"
aria-selected="false">Maintenance Log</a>
</li>
</ul>
Expand Down
14 changes: 7 additions & 7 deletions app/views/software_records/_form_maintenance_log.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,37 +29,37 @@

<div class="mb-3">
<%= form.label :upgrade_available %>
<%= form.check_box :upgrade_available, :class => "form-control" %>
<%= form.check_box :upgrade_available %>
</div>

<div class="mb-3">
<%= form.label :vulnerabilities_reported %>
<%= form.check_box :vulnerabilities_reported, :class => "form-control" %>
<%= form.check_box :vulnerabilities_reported%>
</div>

<div class="mb-3">
<%= form.label :vulnerabilities_fixed %>
<%= form.check_box :vulnerabilities_fixed, :class => "form-control" %>
<%= form.check_box :vulnerabilities_fixed%>
</div>

<div class="mb-3">
<%= form.label :bug_fixes %>
<%= form.check_box :bug_fixes, :class => "form-control" %>
<%= form.check_box :bug_fixes%>
</div>

<div class="mb-3">
<%= form.label :new_features %>
<%= form.check_box :new_features, :class => "form-control" %>
<%= form.check_box :new_features%>
</div>

<div class="mb-3">
<%= form.label :breaking_changes %>
<%= form.check_box :breaking_changes, :class => "form-control" %>
<%= form.check_box :breaking_changes %>
</div>

<div class="mb-3">
<%= form.label :end_of_life %>
<%= form.check_box :end_of_life, :class => "form-control" %>
<%= form.check_box :end_of_life %>
</div>

<div class="mb-3">
Expand Down
4 changes: 2 additions & 2 deletions app/views/software_types/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
</div>
<% end %>
<div class="mb-3">
<%= form.label :title, 'Software Type' %>
<%= form.label :title, 'Software Type', class: 'text-white' %>
<%= form.text_field :title, :class => "form-control" %>
</div>

<div class="mb-3">
<%= form.label :description %>
<%= form.label :description, class: 'text-white' %>
<%= form.text_area :description, :class => "form-control" %>
</div>

Expand Down
4 changes: 2 additions & 2 deletions app/views/statuses/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
<% end %>

<div class="field">
<%= form.label :title %>
<%= form.label :title, class: 'text-white' %>
<%= form.text_field :title, :class => "form-control" %>
</div><br/>

<div class="field">
<%= form.label :status_type %>
<%= form.label :status_type, class: 'text-white' %>
<% if component.eql?("new") %>
<%= form.select :status_type, options_for_select(['Design', 'Production', 'Decommissioned', 'Development', 'Other'], :selected=>"Design"),
{}, {:class => "form-control"} %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/vendor_records/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
</div>
<% end %>
<div class="mb-3">
<%= form.label :title, 'Name' %>
<%= form.label :title, 'Name', class: 'text-white' %>
<%= form.text_field :title, :class => "form-control" %>
</div>

<div class="mb-3">
<%= form.label :description %>
<%= form.label :description, class: 'text-white' %>
<%= form.text_area :description, :class => "form-control" %>
</div>
<br/>
Expand Down

0 comments on commit 8ca4759

Please sign in to comment.