twig template engine manage alert box delete

<a href=”{{ path(‘admin_manageuser_delete’, {‘deleteid’: users.id}) }}” onclick=”return confirm(‘are u sure?’)”>delete</a>

 

<a href=”{{ path(‘admin_manageuser_edit’, { ‘editid’: users.id }) }}”>Edit</a> |

 

paging

<tr>
{%if totalpage >0 %}
<td colspan=”5″>
<table align=”center”>
<tr>

{% for i in 1.. totalpage%}
{%if loop.first %}
<td><a href=”{{path(‘admin_manageuser_homepage’,{ ‘page’: currentpage-1 })}}”>Previous</a></td>
{%endif%}
<td {%if currentpage==loop.index%}>
<a href=”{{path(‘admin_manageuser_homepage’,{ ‘page’: loop.index })}}”>{{loop.index}}</a></td>

{%if loop.last%}
<td><a href=”{{path(‘admin_manageuser_homepage’,{ ‘page’: currentpage+1 })}}”>Next</a></td>
{%endif%}
{%endfor%}

</tr>
</table>
</td>
{%endif%}
</tr>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s