allegroplanet / allegro-planet

1 stars 1 forks source link

In Admin, configure GameFile category field as dropdown #46

Closed MarkOates closed 7 years ago

MarkOates commented 7 years ago

Problem

A GameFile must belong to one of several categories:

['MacOS binary', 'Win binary', 'Linux binary', 'Data files', 'Source files', 'Other']

In admin you have to input this value into a text input field, and there is no clue that it must be one of the types. Also, the error message only appears after you upload the file.

Solution

Use a dropdown that lists only the allowed values.

Before

ugh - game file allegro planet admin 2017-03-12 01-03-10

After

after - localhost 3000 admin game_file new 2017-03-12 01-01-49


fixes https://github.com/allegroplanet/allegro-planet/issues/42 cc @allefant