8000 [TwigBridge] Foundation form layout integration by totophe · Pull Request #12587 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[TwigBridge] Foundation form layout integration #12587

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

Closed
wants to merge 5 commits into from
Closed

[TwigBridge] Foundation form layout integration #12587

wants to merge 5 commits into from

Conversation

totophe
Copy link
@totophe totophe commented Nov 27, 2014
Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
License MIT

As symfony integrate in its roots Bootstrap layout, why not also include Foundation layout? I think it's not a matters of including all the css frameworks in symfony but at least having two instead of one would be interesting to have a basic choice.

@hhamon told me I should create this PR :-D :-p ;-)

Jean-Christophe Cuvelier [Artack] added 2 commits November 27, 2014 14:45
@totophe totophe changed the title Foundation form layout integration [TwigBridge] Foundation form layout integration Nov 27, 2014
@fabpot
Copy link
Member
fabpot commented Jan 3, 2015

It's also a matter of maintaining the theme. Any @symfony/deciders willing to maintain it. Personally, I'm 👎

@Seldaek
Copy link
Member
Seldaek commented Jan 3, 2015

I'd 👍 as I believe Foundation is a better base for custom apps (more neutral default theme, less override rules needed in the CSS to achieve a custom look) while Bootstrap is better geared at rapid prototyping and I'd argue Symfony is probably still better at building sustainable custom apps than prototypes.

{{ date_pattern|replace({
'{{ year }}': '<div class="large-4 columns">' ~ form_widget(form.year) ~ '</div>',
'{{ month }}': '<div class="large-4 columns">' ~ form_widget(form.month) ~ '</div>',
'{{ day }}': '<div class="large-4 columns">' ~ form_widget(form.day) ~ '</div>',
Copy link
Member

Choose a reason for hiding this comment

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

wrong indentation here

@stof
Copy link
Member
stof commented Jan 18, 2015

The whitespace control is missing in this template to remove extra spaces (as done in the default theme)

@fabpot
Copy link
Member
fabpot commented Feb 10, 2015

@totophe Any news on this PR? Are you willing to finish it?

@totophe
Copy link
Author
totophe commented Feb 10, 2015

Yes, sorry, I was drawn into our sprints. I'll do that ASAP.

@totophe
Copy link
Author
totophe commented Feb 10, 2015

Hi, changes are made. Sorry @stof for the delay. I'll not procrastinate next time.

@FossPrime
Copy link

Would have saved me a some time had this been in the Twig bundle... Thank you!

@fabpot fabpot added the Ready label May 22, 2015
{%- endfor -%}
{% if form.parent %}</small>{% else %}</div>{% endif %}
{%- endif %}
{%- endblock form_errors %}
Copy link
Member

Choose a reason for hiding this comment

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

Missing EOL

Copy link
Author

Choose a reason for hiding this comment

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

Fixed

@nicolas-grekas
Copy link
Member

@totophe could you open a doc PR (see this one for the bootstrap theme: symfony/symfony-docs#4411)

@nicolas-grekas
Copy link
Member

👍 with some comments above

@totophe
Copy link
Author
totophe commented Jun 22, 2015

@nicolas-grekas I'll fix that asap (this week)

@nicolas-grekas
Copy link
Member

ping @totophe

@totophe
Copy link
Author
totophe commented Sep 18, 2015

Doc PR done: symfony/symfony-docs#5702 :-)

@javiereguiluz
Copy link
Member

To be consistent with our Bootstrap practice and to be future-proof, we should probably rename the Twig template to foundation_5_layout.html.twig

@totophe
Copy link
Author
totophe commented Sep 23, 2015

Here you go

@flobb
Copy link
flobb commented Sep 24, 2015

I'd 👍 Foundation make developement easier.

@fabpot
Copy link
Member
fabpot commented Sep 24, 2015

ping @symfony/deciders

@dunglas
Copy link
Member
dunglas commented Sep 24, 2015

Foundation is interesting and it looks like a good idea to have support for it in Symfony but as I don't often use it and will not help to maintain this theme I prefer abstention.

@xabbuh
Copy link
Member
xabbuh commented Sep 25, 2015

I am neither pro nor contra. The implementation looks good, but it would be good to have someone being able to maintain the theme. On the other hand, a form theme is not a real big deal and could probably live in the core nonetheless.

@fabpot
Copy link
Member
fabpot commented Sep 25, 2015

ok, let's merge it in 2.8. If we have too many bug reports and noone fixing them, we will still be able to deprecate it and remove it later on.

@fabpot
Copy link
Member
fabpot commented Sep 25, 2015

Thank you @totophe.

@fabpot fabpot closed this in 564f06b Sep 25, 2015
@totophe
Copy link
Author
totophe commented Sep 25, 2015

As I've proposed this feature, I'm willing to maintain it if any issue would occur.

xabbuh added a commit to symfony/symfony-docs that referenced this pull request Oct 3, 2015
This PR was squashed before being merged into the 2.8 branch (closes #5702).

Discussion
----------

Added a reference to the Foundation form theme

| Q | A |
|---|---|
| Doc fix? | no |
| New docs? | yes |
| Applies to | N/A |

See pull request: symfony/symfony#12587

Commits
-------

23c7798 Added a reference to the Foundation form theme
@fabpot fabpot mentioned this pull request Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants
0