- Issue created by @adamps
- 🇬🇧United Kingdom adamps
@jonathanshaw
I updated the "Default bundles" list in the IS to add info about fields. Please can you review? At the moment there are two pairs of identical ones, so we could potentially combine them.
- 🇬🇧United Kingdom jonathanshaw Stroud, UK
These provided bundles are to be helpful, customisation is expected, so let's not overinvest in them. Given that, yes to everything except:
Block staff access to create/edit declarations with evidence type "web".
Better:
- block staff access to create/edit evidence with type 'web'
- block staff access to edit a declaration whose owner is the declarant - 🇬🇧United Kingdom adamps
I'm seeing some very strange errors
For example
admin/gift-aid/evidence-type/add
givesThe "default" form handler of the "gift_aid_evidence_type" entity type specifies a non-existent class "Drupal\gift_aid\Form\Evidence\EvidenceTypeForm"
If I call
class_exists
fromdrush eval
it works. If I call it from a web-page it fails. If I randomly move the file to a different directory then it works.Similar for
admin/gift-aid/evidence/add/
@jonathanshaw Any chance you could try it on your own server when you get a chance please?
- 🇬🇧United Kingdom adamps
I have some doubts about usability. With inline-entity-form it could be good - staff ideally won't even notice there are 2 entities.
Without that it seems pretty bad. The evidence entity it hard/impossible to refer to or select. My current implementation has no fields for donor, no declared date, no "record type" because I realise that they would all be duplication of the declaration. Nor does it have a label, and I don't see any sensible way to create one.
Even with inline-entity-form, we are adding complexity. It could be quite a lot simpler if we just let staff upload any file that they like (in other words use a file field). I agree it's a bit of a hack. And it doesn't work so well with the self-declarations, but I guess we could add a different field for those (which doesn't need a form UI because they are generated in code).
So I don't have a clear suggestion, I'm just putting it out for discussion if you feel. I'll have a quick try with IEF.