BiologicalRecordsCentre / UKBMS-online

Issue tracking for UKBMS online recording site
2 stars 0 forks source link

Hide 'reliability' field on Drupal8 input-data form #131

Closed DavidRoy closed 4 years ago

DavidRoy commented 4 years ago

https://test-ukbms8.pantheonsite.io/input-data

Field for ‘reliability’ to be hidden on form as only for admin use reli

Gary-van-Breda commented 4 years ago

How is this field going to be used?

DavidRoy commented 4 years ago

As a flag for admin to use when transect walks don't meet the criteria - e.g. when the weather criteria were not met.

Can the flag be hidden from general users but available to those with admin access?

DavidRoy commented 4 years ago

@Gary-van-Breda can the reliability field be hidden on the current live site: https://www.ukbms.org/mydata/input-data

Ideally as soon as possible now the scheme has started up again and we don't want to confuse recorders

Gary-van-Breda commented 4 years ago

I've left the attribute attached to the survey, but made it so that it is restricted to the "Unknown" sample method: this has removed it from the data entry page.
This attribute was present only on the Transect survey, not either of the WCBS ones.

DavidRoy commented 4 years ago

Thanks. Will this affect the data import for survey = 'UKBMS Transect' where this attribute is needed?

DavidRoy commented 4 years ago

I linked the attribute back to the 'Transect' survey to enable imports. Will revert when done.

Gary-van-Breda commented 4 years ago

Done on Drupal 8 version of the form. Deployed to Test. Permission set so that normal recorders can see it, but branch managers and admin users etc can. I was having some problems with the performance of the page, so a couple of updated reports have been deployed. Also have tweaked the CSS so that the checkbox is not overlayed on the label.

DavidRoy commented 4 years ago

thanks

IanMiddlebrook commented 4 years ago

Hi @DavidRoy @Gary-van-Breda

If this 'reliable visit' box is going to remain on the live site for the time being (for transect data entry), could it at least have a note for recorders to ignore it?

I'm getting a few queries about this field now that we're back in action.

Thanks, Ian

Gary-van-Breda commented 4 years ago

@BirenRathod Can we have the following file unzipped and deployed into the iform/client_helpers/prebuilt_forms directory on the Live Drupal7 UKBMS site?

ukbms_sectioned_transects_input_sample.zip

Thanks

BirenRathod commented 4 years ago

@Gary-van-Breda It has gone one live.

Gary-van-Breda commented 4 years ago

Live UKBMS configured to hide the reliability attribute for all but people with "region coordinator" permission

IanMiddlebrook commented 4 years ago

Thanks @Gary-van-Breda , As far as I can see, the 'reliable visit' box is only seen by 'Admin' users on the live site (which is ideal). On the Drupal 8 version it can be seen by Admin and Branch Co-ordinators. Branch Co-ordinators don't need to see this box.

BW, Ian

Gary-van-Breda commented 4 years ago

Now switched to Admin only on D8 version

IanMiddlebrook commented 4 years ago

Thanks