-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add switch, radio input and file upload support for settings form #6
base: dev
Are you sure you want to change the base?
Conversation
@dvitcompte Some parts of your code are indented with tabs and not spaces. You forgot the method's visibility. Can you make sure that all your code is PSR-2? Thanks. @rGaillard Can you take a look? Seems ok to me but I want to be sure since we have some uploads possibility. Thx. |
Hello! I also fixed the indent in the settings.json file here (826fe58) Thanks for the feedback! Regards, |
Hello, still no review for this pull request? |
Hi @dvitcompte, Sorry for the delay, I think it's time to get back to this module :) I have a few questions/remarks:
@rGaillard Can you take a look at Thanks. |
Hello @Scritik , I'm preparing commits to add support for select field, and tabs (only for PS16 & PS17) Regards |
Thank you! I will take a look at it asap. While select can be interesting, please do not make tabs if they are not compatible 1.5. I don't think it is really useful by the way, yes the form can be long but the choices are generally quite simple. Thanks! |
Hello, I was wondering the same about tabs, but as PS16 and 17 are the most used and more and more shops are updated to PS17 or PS16. And for example my Minimalist Pro template has 29 options : 12 only for all socials networks, 8 for colors. I thought that classifying them by theme would be a good idea. instead in my settings form :) settings.json has been updated with an example of select field in email-templates-sdk project. Regards |
Yes they are the most used but this module is compatible with the 1.5 for now. And by the way, 12 social networks? Don't you think it's a little bit too much for merchants? ;) |
Hello, there are "only" 8 socials networks ;), a multilang field to add a custom title, 2 fields to add a custom social network, the last is to select the position of this block in the email. This is the most advanced module and others are more simple. |
8 seems more reasonable :) |
I started to test your PR and I found an issue. If I have a file input in the form and I edit the template, the file is not saved, and I need to upload a file every time! A solution is to save the value like the other values, and if no file is uploaded, you get the saved value and use it instead of the empty value. |
add switch, radio input and file upload support for settings form.
I'm not sure if file upload process contains all needed verifications (file size fo example).
Tested on ps 1.6
settings.json updated in email-templates-sdk for example