{{end}}
{{# add any dialogs needed for each card, we only need to include these if we are in edit mode}}
{{# custom cards include their dialog with the card HTML}}
{{if dbs.edit_mode}}
{{for w in widgets}}
{{if (w.type=='Device')}}
{{includefileraw Dashboards/Cards/Internal/card_device_dialogs.html}}
{{else if w.type=='Thermostat'}}
{{includefileraw Dashboards/Cards/Internal/card_thermostat_dialogs.html}}
{{else if w.type=='Media'}}
{{includefileraw Dashboards/Cards/Internal/card_media_dialogs.html}}
{{else if w.type=='Camera'}}
{{includefileraw Dashboards/Cards/Internal/card_camera_dialogs.html}}
{{end}}
{{end}}
{{end}}