Skip to content
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

Refactoring: PHP 7.1, Bootstrap3/4 Renderers #8

Merged
merged 13 commits into from
May 7, 2018
Merged

Refactoring: PHP 7.1, Bootstrap3/4 Renderers #8

merged 13 commits into from
May 7, 2018

Conversation

mabar
Copy link
Contributor

@mabar mabar commented Apr 15, 2018

@f3l1x Code is ready for review.

Note to self: Documentation is needed.

@f3l1x f3l1x changed the title Just a few changes :) Refactoring: PHP 7.1, Bootstrap3/4 Renderers Apr 16, 2018
@contributte contributte deleted a comment from coveralls Apr 16, 2018
@f3l1x
Copy link
Member

f3l1x commented Apr 16, 2018

Thank you @mabar. Could you also update ruleset.xml to force tabs (https://github.com/contributte/console/blob/master/ruleset.xml#L16-L22). Thanks.

@f3l1x f3l1x added this to the v0.2 milestone Apr 16, 2018
@f3l1x
Copy link
Member

f3l1x commented Apr 18, 2018

@aleswita
Copy link
Member

aleswita commented Apr 19, 2018

Hi @mabar
what you think about addons option for Bootstrap 4 from this repository: https://github.com/aleswita/FormRenderer/blob/master/src/BootstrapV4Renderer.php#L176

Example:
vystrizek

@mabar
Copy link
Contributor Author

mabar commented Apr 19, 2018

@f3l1x I am not sure why error log cannot be fetched, it worked at least before last commit (ruleset.xml)

@aleswita I am not big fan of form renderers at all as they don't fit well in MVC architecture, but we can add addons support too.
There are same nice improvements in your code, I will integrate them later 😃

@f3l1x
Copy link
Member

f3l1x commented Apr 19, 2018

Could you guys collaborate together? @aleswita + @mabar?

@f3l1x
Copy link
Member

f3l1x commented May 7, 2018

@mabar Please use latest ninjify/qa (you know) and finish this PR to be merged ;-) Thanks.

ruleset.xml Outdated
<?xml version="1.0"?>
<ruleset name="Contributte">
<!-- Extending rulesets -->
<rule ref="vendor/ninjify/coding-standard/ruleset.xml"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use contributte.xml instead of ruleset.xml ;-) It force tabs.

use Nette\Forms\Controls;
use Nette\Forms\Form;
use Nette\Forms\Rendering\DefaultFormRenderer;
use function mb_strpos;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, drop use functions. We've discussed it on Slack. You know.

@f3l1x f3l1x merged commit 8d40423 into contributte:master May 7, 2018
@f3l1x
Copy link
Member

f3l1x commented May 7, 2018

Awesome, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants