Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{% extends "templates/dashboard.volt" %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Select Image</h1>
</div>
{# pagination #}
{% for item in page.items %}
<div class="col-lg-3 col-md-4 col-xs-6">
<a class="thumbnail" href="#">
<img class="img-responsive" src="../albums_images/{{ item.Images.name }}" alt="">
<form method="post" action="{{ url('image/editImageAlbum') }}">
<input type="hidden" name="image_name" value="{{ item.Images.id }}">
<input class="btn-group btn-success btn-group-justified" type="submit" value="Edit">
</form>
<form method="post" action="{{ url('image/destroyImageAlbum') }}">
<input type="hidden" name="image_name" value="{{ item.Images.id }}">
<input type="hidden" name="image_name_id" value="{{ item.Images.name }}">
<input class="btn-group btn-danger btn-group-justified" type="submit" value="Destroy">
</form>
</a>
</div>
{% endfor %}
</div>
<br/>
<ul class="pager">
{% for index in 1..page.total_pages %}
<li>{{ link_to("image/selectImageAlbum?page=" ~ index, index) }}</li>
{% endfor %}
</ul>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.