Skip to content

Commit

Permalink
fix: removed sensors_to_show from assetForm
Browse files Browse the repository at this point in the history
Signed-off-by: joshuaunity <[email protected]>
  • Loading branch information
joshuaunity committed Oct 28, 2024
1 parent 8989953 commit 7e727b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion flexmeasures/ui/crud/assets/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class AssetForm(FlaskForm):
render_kw={"placeholder": "--Click the map or enter a longitude--"},
)
attributes = StringField("Other attributes (JSON)", default="{}")
sensors_to_show = StringField("Sensors to show (JSON)", default="[]")
production_price_sensor_id = SelectField(
"Production price sensor", coerce=int, validate_choice=False
)
Expand Down
2 changes: 1 addition & 1 deletion flexmeasures/ui/templates/crud/asset.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ <h3>Edit {{ asset.name }}</h3>
</div>

<div class="form-group">
{{ asset_form.sensors_to_show.label(class="col-sm-3 control-label") }}
<label for="sensors_to_show" class="col-sm-6 control-label">Sensor Graphs</label>

<div class="col-md-6">
<button class="btn btn-primary" type="button" data-bs-toggle="modal" data-bs-target="#sensorsToShowForm">
Expand Down

0 comments on commit 7e727b4

Please sign in to comment.