pbnl / ScoTooBo

A toolbox for scouts to organize their work
https://www.pbnl.de
4 stars 0 forks source link

Material objects #26

Open NKPmedia opened 7 years ago

NKPmedia commented 7 years ago

As a logged in user with the role "ROLE_elder" I want to be able to add a material object. I want to be able to set:

Every material object must have min. 3 offers.

A offer consists of:

I want to be able to set the offers while adding the material object. The material object should be reusable in different material requests.

I want that only I and a user with the role "ROLE_REMOVE_ALL_MATERIAL_OBJECTS" is able to remove my object. (symfony ACL) Also only users with the group "ROLE-elder" should be able to see the material object.

bone4 commented 7 years ago

symfony collection for offers: https://symfony.com/doc/current/form/form_collections.html https://symfony.com/doc/current/reference/forms/types/collection.html https://github.com/ninsuo/symfony-collection https://symfony-collection.fuz.org/symfony3/

connection between material and offers in MaterialOffers.MaterialId or in material.offers (array of collection) ? (change Doctrine entity)