added new options to admin community pannel

This commit is contained in:
CaramelKat
2020-05-17 02:28:53 -05:00
committed by Jay
parent 690ea28077
commit a817707a4e
2 changed files with 9 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ router.post('/new', upload.none(), async function (req, res, next) {
empathy_count: 0,
id: snowflake.nextId(),
has_shop_page: req.body.has_shop_page,
platform_id: req.body.platform_ID,
icon: req.body.icon,
title_ids: req.body.title_ids,
title_id: req.body.title_ids,

View File

@@ -113,6 +113,14 @@ router.get('/admin/communities/new', function (req, res) {
' <input type="radio" id="noShopPage" name="has_shop_page" value="0">\n' +
' <label for="noShopPage">False</label><br>\n' +
' \n' +
' Platform \n' +
' <input type="radio" id="WiiU" name="platform_ID" value="0">\n' +
' <label for="platform_ID">Wii U</label>\n' +
' <input type="radio" id="3DS" name="platform_ID" value="1">\n' +
' <label for="platform_ID">3DS</label>\n' +
' <input type="radio" id="Both" name="platform_ID" value="2">\n' +
' <label for="platform_ID">Both</label><br>\n' +
' \n' +
' <input type="submit" value="Submit">\n' +
'</form>\n' +
'\n' +