mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-30 17:43:44 +00:00
Dropdown for shared item category
This commit is contained in:
1 parent
600c843149
commit
208f2f41bd
1 file changed
+11
-2
+11
-2
@@ -361,8 +361,17 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
||||
extraFields += '<br>' + \
|
||||
editTextField(translate['Type of shared item. eg. hat'] + ':',
|
||||
'itemType', '', '', True)
|
||||
catStr = translate['Category of shared item. eg. clothing']
|
||||
extraFields += editTextField(catStr + ':', 'category', '', '', True)
|
||||
# catStr = translate['Category of shared item. eg. clothing']
|
||||
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 += \
|
||||
editNumberField(translate['Duration of listing in days'],
|
||||
|
||||
Reference in new issue
Block a user