mirror of https://gitlab.com/bashrc2/epicyon
Dropdown for shared item category
parent
600c843149
commit
208f2f41bd
|
@ -361,8 +361,17 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
||||||
extraFields += '<br>' + \
|
extraFields += '<br>' + \
|
||||||
editTextField(translate['Type of shared item. eg. hat'] + ':',
|
editTextField(translate['Type of shared item. eg. hat'] + ':',
|
||||||
'itemType', '', '', True)
|
'itemType', '', '', True)
|
||||||
catStr = translate['Category of shared item. eg. clothing']
|
# catStr = translate['Category of shared item. eg. clothing']
|
||||||
extraFields += editTextField(catStr + ':', 'category', '', '', True)
|
themesDropdown += ' <select id="themeDropdown" ' + \
|
||||||
|
'name="category" class="theme">'
|
||||||
|
categoryTypes = ("food", "clothes", "tool")
|
||||||
|
for category in categoryTypes:
|
||||||
|
translatedCategory = "food"
|
||||||
|
if translate.get(category):
|
||||||
|
translatedCategory = translate[category]
|
||||||
|
themesDropdown += ' <option value="' + \
|
||||||
|
category + '">' + \
|
||||||
|
translatedCategory + '</option>'
|
||||||
extraFields += '<br>'
|
extraFields += '<br>'
|
||||||
extraFields += \
|
extraFields += \
|
||||||
editNumberField(translate['Duration of listing in days'],
|
editNumberField(translate['Duration of listing in days'],
|
||||||
|
|
Loading…
Reference in New Issue