Open acorbi opened 7 years ago
@Alex, to show the extra / detailed information has never done before, but it is similar to the responsive function of the datatable that you saw.
@Huyeng thanks for your comment. I will work on it today, will keep you informed.
@acorbi @Huyeng -- this is great! Looking forward to seeing result.
@prustar If I recall properly, we agreed that the logic should group laws considering both the status and the relations between them.
In general lines, we will be able to develop, test and deploy this once the underlying data (relations) is there. I would therefore wait to implement this until that is the case.
@acorbi -- there are two aspects here:
The use case is the following:
On the laws pages, users find entries on the table that are actually amendments and revisions of the same law. The fact that these laws are related can be programatically determined by looking at certain metadata fields on them (status and relations). These records should optimally appear represented together in the same row. Ideally, users should be able to expand/collapse the row in order to see all versions of the same law. The most actual law (status = active) should be the highlighted one, the rest should be exposed when the user expands the row.
@Huyeng I recall seeing a row on one of the tables (in one of the profiles probably) where the user could expand/collapse the row to see more information. Do you have some hints for me on how to implement this? I am thinking on using https://datatables.net/examples/api/row_details.html for implementing this, what do you think?