Add school dress rules tab in Management with tests.
This commit is contained in:
1 parent
c541156614
commit
aab0c00988
13 files changed
+724
-15
No files matched your search
@@ -112,6 +112,21 @@ public static class Appropriateness
|
||||
return false;
|
||||
}
|
||||
|
||||
if (rules.Color.Equals(ColorPolicies.WhiteTopBlackBottom, StringComparison.Ordinal))
|
||||
{
|
||||
if (def.Layers.Contains(ApparelLayers.Top, StringComparer.Ordinal)
|
||||
&& !color.Equals("White", StringComparison.Ordinal))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (def.Layers.Contains(ApparelLayers.Bottom, StringComparer.Ordinal)
|
||||
&& !color.Equals("Black", StringComparison.Ordinal))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user