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

Latte\CompileException in paginator when Latte is in strict mode #1100

Closed
Libig opened this issue Sep 15, 2023 · 2 comments · Fixed by #1136
Closed

Latte\CompileException in paginator when Latte is in strict mode #1100

Libig opened this issue Sep 15, 2023 · 2 comments · Fixed by #1136

Comments

@Libig
Copy link

Libig commented Sep 15, 2023

[ERROR]      ./src/Components/DatagridPaginator/templates/data_grid_paginator.latte:12:2    
Unexpected '{else}', expecting </a> for element started on line 11 at column 3 (on line 12 at column 2)
@chemix
Copy link
Member

chemix commented May 21, 2024

I can prepare pull request with this fix, are you ok with that @f3l1x

	{capture $firstButton}
		<i n:block = "icon-arrow-left" class="{$iconPrefix}arrow-left"></i> {='ublaboo_datagrid.previous'|translate}
	{/capture}

	{if $paginator->isFirst()}
		<a class="first btn btn-sm {$btnSecondaryClass} disabled">{$firstButton}</a>
	{else}
		<a class="btn btn-sm {$btnSecondaryClass} ajax" href="{$link('page!', ['page' => $paginator->page - 1])}" rel="prev">{$firstButton}</a>
	{/if}

@chemix
Copy link
Member

chemix commented May 21, 2024

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

Successfully merging a pull request may close this issue.

2 participants