Add select dropdown to notification agents

* Change priority selections to dropdown
This commit is contained in:
Jonathan Wong 2015-10-11 22:36:00 -07:00
parent 9968f8b6dd
commit c12862ffba
2 changed files with 32 additions and 11 deletions

View file

@ -467,8 +467,9 @@ class PROWL(object):
{'label': 'Priority',
'value': self.priority,
'name': 'prowl_priority',
'description': 'Set the priority (-2,-1,0,1 or 2).',
'input_type': 'number'
'description': 'Set the priority.',
'input_type': 'select',
'select_options': {-2: -2, -1: -1, 0: 0, 1: 1, 2: 2}
}
]
@ -695,8 +696,9 @@ class NMA(object):
{'label': 'Priority',
'value': plexpy.CONFIG.NMA_PRIORITY,
'name': 'nma_priority',
'description': 'Set the priority (-2,-1,0,1 or 2).',
'input_type': 'number'
'description': 'Set the priority.',
'input_type': 'select',
'select_options': {-2: -2, -1: -1, 0: 0, 1: 1, 2: 2}
}
]
@ -913,8 +915,9 @@ class PUSHOVER(object):
{'label': 'Priority',
'value': self.priority,
'name': 'pushover_priority',
'description': 'Set the priority (-2,-1,0,1 or 2).',
'input_type': 'number'
'description': 'Set the priority.',
'input_type': 'select',
'select_options': {-2: -2, -1: -1, 0: 0, 1: 1, 2: 2}
},
{'label': 'Sound',
'value': self.sound,