ziplantil / DescentMissionArchive

PHP web application for storing and searching Descent and Overload missions
MIT License
2 stars 2 forks source link

Hide empty fields on Mission page #3

Open SiriusTR opened 3 years ago

SiriusTR commented 3 years ago

Most missions, at least at first, will not have "Version", "Players" or "Number of levels" filled out. There are a couple options I can think of that would look better:

  1. Hide fields that have no data
  2. Show a placeholder value, e.g. "Unknown" or "No data"
ghost commented 3 years ago

IIRC, none of these fields cannot actually be left empty by the uploader (leaving them empty is only possible by manually editing the DB), but I would need to check whether that is the case.

ghost commented 3 years ago

This is the "upload mission" page for reference; the version field has a default value 1.0 and the level/player count are number inputs which cannot be left empty. image

SiriusTR commented 3 years ago

So, we might be better off figuring out how to fill in these fields for imported levels than leaving them off the page.

ziplantil commented 5 months ago

Pretty much exactly three years later: I do not think there is any way to get that for imported levels without the DMDB data or manually adding it to each mission.