diff --git a/ereuse_devicehub/inventory/forms.py b/ereuse_devicehub/inventory/forms.py index 90b900f5..1e641f32 100644 --- a/ereuse_devicehub/inventory/forms.py +++ b/ereuse_devicehub/inventory/forms.py @@ -1745,6 +1745,16 @@ class UserTrustsForm(FlaskForm): self._unic = len(self._devices) < 2 return self._unic + def dhids_all_devices(self): + self.unic() + return ", ".join([x.dhid for x in self._devices][1:]) + + def dhid_base(self): + self.unic() + if not self._devices: + return '' + return self._devices[0].dhid + def show(self): if not self.snapshot or not self.device: return False diff --git a/ereuse_devicehub/templates/inventory/snapshot_detail.html b/ereuse_devicehub/templates/inventory/snapshot_detail.html index c3a91cec..efba84d4 100644 --- a/ereuse_devicehub/templates/inventory/snapshot_detail.html +++ b/ereuse_devicehub/templates/inventory/snapshot_detail.html @@ -100,14 +100,21 @@
- This action cannot be undone. +
+ Please be certain, once you confirm this step there is no going back.
+
+ All the updates that have the {{ form.device.dhid }} device will become new devices and
+ you will not be able to do any update over these devices.
- This action cannot be undone. +
+ Please be certain, once you confirm there is no going back.
+
+ All the devices {{ form.dhids_all_devices() }}
+ will be deleted and the device {{ form.dhid_base() }} will be set as the device base.
+ After this change you will be able to update this device.