Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic hardware configuration form #6

Open
Informatic opened this issue Apr 7, 2019 · 1 comment
Open

Dynamic hardware configuration form #6

Informatic opened this issue Apr 7, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@Informatic
Copy link
Contributor

Internally Hardware configuration part of sensor registration/settings form supports arbitrary number of sensors, but right now only 2 sets of fields are rendered. This needs a couple of lines of javascript to handle special button that'd dynamically clone one of the rows and replace -0- part of all name, id and for attributes of <input> fields with consecutive numbers.

Related code: https://github.com/opendata-stuttgart/meine-luftdaten-info/blob/c92728bfa7e91c6803b3ad3f88969b24bc20bcda/webapp/templates/sensor-settings-form.html#L29-L36

@ricki-z ricki-z added the enhancement New feature or request label Apr 19, 2019
@xek
Copy link

xek commented Oct 22, 2024

Looks like it's already addressed in #77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants