Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing boolean reversal in CM for disabling services [#131197279] #690

Merged
merged 1 commit into from
Sep 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/catalog_manager/services/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
%tr
%th= f.label :disabled, t(:organization_form)[:disabled]
%td
= f.check_box :is_available, {:checked => !@service.is_available, disabled: !@service.organization.is_available }, false, true
= f.check_box :is_available, {:checked => @service.is_available, disabled: !@service.organization.is_available }
- if !@service.organization.is_available
%span
= disabled_parent(@service.organization)
Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog_manager/shared/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
%tr
%th= t(:organization_form)[:disabled]
%td
= f.check_box :is_available, {checked: !@organization.is_available, disabled: @organization.parent ? !@organization.parent.is_available : false }, false, true
= f.check_box :is_available, {checked: @organization.is_available, disabled: @organization.parent ? !@organization.parent.is_available : false }
- if @organization.parent && !@organization.parent.is_available
%span
= disabled_parent(@organization)
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ en:
ctrc_label: "Administrative Approvals"
default_statuses: "Default Statuses:"
description: "Description"
disabled: "Do not display in SPARC"
disabled: "Display in SPARC"
disabled_at: "Disabled at: %{disabled_parent}"
eap_id: 'EAP ID'
epic_info: "Epic Interface"
Expand Down