sandstorm / crudforms Goto Github PK
View Code? Open in Web Editor NEWExtensible CRUD generator for Flow and Neos.
Home Page: https://www.sandstorm.de
Extensible CRUD generator for Flow and Neos.
Home Page: https://www.sandstorm.de
Currenty when kickstart the needed files it doesent show the $packageKey
in the generateCrudController
method.
This is caused by a /
which is in the getNamespaceBaseDirectory()
method:
When removing the /
the output looks as i would expect it:
I suspect the reason for this is that there is already a /
here. And therefore it could not resolve the path correctly.
CrudForms/Classes/Command/CrudGeneratorService.php
Lines 137 to 139 in fe9499f
Hey,
just started to play with this package. It seemed to work in the first place. I tried to create a new "element" and it failed with "Route not setup properly".
Which additional routes are required?
Thanks :-)
Would be great to have separate template files for Neos / BS4, which would make the generated fluid templates usable out of the box.
Eventually makes an optional parameter for the commandController necessary.
Currently there is no possibility to set a form field to Required from within the package. It is possible to add the field in the model with the NotEmpty
validator from Flow:
/**
* @Flow\Validate(type="NotEmpty")
*/
However, this does not look really nice afterwards for the editor:
What I was thinking about would be if I could set my field in the model to required
directly in the @CrudForms
annotation:
/**
* @CrudForms\FormField(label="Note Title", required=true)
* @var string
*/
protected $noteTitle;
Then we could add an if
condition to the respective editors (/Sandstorm.CrudForms/Resources/Private/Partials/CrudForms/Helpers/Editor
). And if the required
option is set to true
, a hint message is displayed in the backend.
I'm still thinking about how to implement this in the most useful way, or if I might have to implement it differently. If you have feedback, I'm happy about it.
Running functional tests breaks in the test compile step with:
[Semantical Error] The annotation "@Flow\CompileStatic" in method Sandstorm\CrudForms\Tests\Functional\Fixtures\Controller\AddressController::getEntityClassNameToRepositoryClassNameMapping() was never imported.
Did you maybe forget to add a "use" statement for this annotation?
Running functional tests breaks in the test compile step with:
[Semantical Error] The annotation "@Flow\CompileStatic" in method Sandstorm\CrudForms\Tests\Functional\Fixtures\Controller\AddressController::getEntityClassNameToRepositoryClassNameMapping() was never imported.
Did you maybe forget to add a "use" statement for this annotation?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.