mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-13 11:59:35 -06:00
Switch to sentence case for filter pill text
This commit is contained in:
parent
edbcea817c
commit
9d60342ec7
@ -25,76 +25,76 @@ FORM_FIELD_LOOKUPS = {
|
|||||||
forms.BooleanField: [],
|
forms.BooleanField: [],
|
||||||
forms.NullBooleanField: [],
|
forms.NullBooleanField: [],
|
||||||
forms.CharField: [
|
forms.CharField: [
|
||||||
('exact', _('Is')),
|
('exact', _('is')),
|
||||||
('n', _('Is Not')),
|
('n', _('is not')),
|
||||||
('ic', _('Contains')),
|
('ic', _('contains')),
|
||||||
('isw', _('Starts With')),
|
('isw', _('starts with')),
|
||||||
('iew', _('Ends With')),
|
('iew', _('ends with')),
|
||||||
('ie', _('Equals (case-insensitive)')),
|
('ie', _('equals (case-insensitive)')),
|
||||||
('regex', _('Matches Pattern')),
|
('regex', _('matches pattern')),
|
||||||
('iregex', _('Matches Pattern (case-insensitive)')),
|
('iregex', _('matches pattern (case-insensitive)')),
|
||||||
(MODIFIER_EMPTY_TRUE, _('Is Empty')),
|
(MODIFIER_EMPTY_TRUE, _('is empty')),
|
||||||
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')),
|
(MODIFIER_EMPTY_FALSE, _('is not empty')),
|
||||||
],
|
],
|
||||||
forms.IntegerField: [
|
forms.IntegerField: [
|
||||||
('exact', _('Is')),
|
('exact', _('is')),
|
||||||
('n', _('Is Not')),
|
('n', _('is not')),
|
||||||
('gt', _('Greater Than (>)')),
|
('gt', _('greater than (>)')),
|
||||||
('gte', _('At Least (≥)')),
|
('gte', _('at least (≥)')),
|
||||||
('lt', _('Less Than (<)')),
|
('lt', _('less than (<)')),
|
||||||
('lte', _('At Most (≤)')),
|
('lte', _('at most (≤)')),
|
||||||
(MODIFIER_EMPTY_TRUE, _('Is Empty')),
|
(MODIFIER_EMPTY_TRUE, _('is empty')),
|
||||||
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')),
|
(MODIFIER_EMPTY_FALSE, _('is not empty')),
|
||||||
],
|
],
|
||||||
forms.DecimalField: [
|
forms.DecimalField: [
|
||||||
('exact', _('Is')),
|
('exact', _('is')),
|
||||||
('n', _('Is Not')),
|
('n', _('is not')),
|
||||||
('gt', _('Greater Than (>)')),
|
('gt', _('greater than (>)')),
|
||||||
('gte', _('At Least (≥)')),
|
('gte', _('at least (≥)')),
|
||||||
('lt', _('Less Than (<)')),
|
('lt', _('less than (<)')),
|
||||||
('lte', _('At Most (≤)')),
|
('lte', _('at most (≤)')),
|
||||||
(MODIFIER_EMPTY_TRUE, _('Is Empty')),
|
(MODIFIER_EMPTY_TRUE, _('is empty')),
|
||||||
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')),
|
(MODIFIER_EMPTY_FALSE, _('is not empty')),
|
||||||
],
|
],
|
||||||
forms.DateField: [
|
forms.DateField: [
|
||||||
('exact', _('Is')),
|
('exact', _('is')),
|
||||||
('n', _('Is Not')),
|
('n', _('is not')),
|
||||||
('gt', _('After')),
|
('gt', _('after')),
|
||||||
('gte', _('On or After')),
|
('gte', _('on or after')),
|
||||||
('lt', _('Before')),
|
('lt', _('before')),
|
||||||
('lte', _('On or Before')),
|
('lte', _('on or before')),
|
||||||
(MODIFIER_EMPTY_TRUE, _('Is Empty')),
|
(MODIFIER_EMPTY_TRUE, _('is empty')),
|
||||||
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')),
|
(MODIFIER_EMPTY_FALSE, _('is not empty')),
|
||||||
],
|
],
|
||||||
forms.ModelChoiceField: [
|
forms.ModelChoiceField: [
|
||||||
('exact', _('Is')),
|
('exact', _('is')),
|
||||||
('n', _('Is Not')),
|
('n', _('is not')),
|
||||||
(MODIFIER_EMPTY_TRUE, _('Is Empty')),
|
(MODIFIER_EMPTY_TRUE, _('is empty')),
|
||||||
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')),
|
(MODIFIER_EMPTY_FALSE, _('is not empty')),
|
||||||
],
|
],
|
||||||
ColorField: [
|
ColorField: [
|
||||||
('exact', _('Is')),
|
('exact', _('is')),
|
||||||
('n', _('Is Not')),
|
('n', _('is not')),
|
||||||
(MODIFIER_EMPTY_TRUE, _('Is Empty')),
|
(MODIFIER_EMPTY_TRUE, _('is empty')),
|
||||||
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')),
|
(MODIFIER_EMPTY_FALSE, _('is not empty')),
|
||||||
],
|
],
|
||||||
TagFilterField: [
|
TagFilterField: [
|
||||||
('exact', _('Has These Tags')),
|
('exact', _('has these tags')),
|
||||||
('n', _('Does Not Have These Tags')),
|
('n', _('does not have these tags')),
|
||||||
(MODIFIER_EMPTY_TRUE, _('Is Empty')),
|
(MODIFIER_EMPTY_TRUE, _('is empty')),
|
||||||
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')),
|
(MODIFIER_EMPTY_FALSE, _('is not empty')),
|
||||||
],
|
],
|
||||||
forms.ChoiceField: [
|
forms.ChoiceField: [
|
||||||
('exact', _('Is')),
|
('exact', _('is')),
|
||||||
('n', _('Is Not')),
|
('n', _('is not')),
|
||||||
(MODIFIER_EMPTY_TRUE, _('Is Empty')),
|
(MODIFIER_EMPTY_TRUE, _('is empty')),
|
||||||
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')),
|
(MODIFIER_EMPTY_FALSE, _('is not empty')),
|
||||||
],
|
],
|
||||||
forms.MultipleChoiceField: [
|
forms.MultipleChoiceField: [
|
||||||
('exact', _('Is')),
|
('exact', _('is')),
|
||||||
('n', _('Is Not')),
|
('n', _('is not')),
|
||||||
(MODIFIER_EMPTY_TRUE, _('Is Empty')),
|
(MODIFIER_EMPTY_TRUE, _('is empty')),
|
||||||
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')),
|
(MODIFIER_EMPTY_FALSE, _('is not empty')),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user