mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-28 11:57:37 +00:00
Clarify explorer text, have secret values present managed in password inputs
This commit is contained in:
parent
659f85eaa0
commit
c60add3474
@ -251,7 +251,7 @@ def _assemble_html(responses, resource, querydict):
|
||||
yield json.dumps(querydict, separators=(',', ': '),
|
||||
indent=4, sort_keys=True)
|
||||
yield '<hr>'
|
||||
yield 'Only values that have their'
|
||||
yield 'Only fields that have their boxes checked will have their '
|
||||
yield 'respective values honored by the confluent server.<hr>'
|
||||
yield '<input type="hidden" name="restexplorerop" value="update">'
|
||||
yield '<input type="hidden" name="restexplorerhonorkey" value="">'
|
||||
|
@ -26,13 +26,17 @@ class ConfluentMessage(object):
|
||||
label = key
|
||||
value = ''
|
||||
note = ''
|
||||
type = 'text'
|
||||
if 'value' in val:
|
||||
value = val['value']
|
||||
if 'note' in val:
|
||||
note = '(' + val['note'] + ')'
|
||||
if val['note'] == 'Encrypted':
|
||||
type = 'password'
|
||||
value = 'dummyvalue'
|
||||
snippet += label + ":" + \
|
||||
'<input type="text" name="%s" value="%s">%s' % (
|
||||
key, value, note)
|
||||
'<input type="%s" name="%s" value="%s">%s' % (
|
||||
type, key, value, note)
|
||||
snippet += '<input type="checkbox" name="restexplorerhonorkey" '
|
||||
snippet += 'value="%s">' % (key)
|
||||
return snippet
|
||||
|
Loading…
x
Reference in New Issue
Block a user