<?php
/*
 *	location: admin/view
 */
?>
{{ header }}{{ column_left }}
<div id="content">
	<div class="page-header">
		<div class="container-fluid">
			<div class="form-inline pull-right">
				<a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a>
			</div>
			<h1>{{ heading_title }} {{ version }}</h1>
			<ul class="breadcrumb">
				{% for breadcrumb in breadcrumbs %}
				<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
				{% endfor %}
			</ul>
		</div>
	</div>
	<div class="container-fluid">
		{% if error %}
		<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> {{ error }}
			<button type="button" class="close" data-dismiss="alert">&times;</button>
		</div>
		{% endif %}
		{% if success %}
		<div class="alert alert-success"><i class="fa fa-exclamation-circle"></i> {{ success }}
			<button type="button" class="close" data-dismiss="alert">&times;</button>
		</div>
		{% endif %}
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">{{ text_edit }}</h3>
			</div>
			<div class="panel-body">
				<div class="login">
					<div class="logo">Shopunity</div>
					<p class="description">
						Welcome to the most advance module manager in opencart community. 
						When becoming a member of Shopunity, you get access to many cool 
						features such as: automatic install, store update, module update 
						notification, subscribtion to commercial extensions and more. Now 
						managing your modules is as simple as pushing a button.
					</p>
					
					<form action="{{ action_connect }}" method="post">
						{% for key, value in store_info %}
							<input type="hidden" name="{{ key }}" value="{{ value }}"/>
						{% endfor %}
						<button class="btn btn-success btn-lg"><span class="fa fa-plug"></span> Connect to <strong>Shopunity</strong></button>
					</form>
					{% if extensions %}
					<style>
						.extension-thumb .pull-right{
							display:none;
						}
					</style>
					<br/><br/><br/><br/>
					<h1>What are you waiting for?</h1>
					<h3>These are just some of the free modules that are waiting for you inside.</h3>
					<br/>
					<div class="row row-clear" style="max-width:1200px; display:inline-block">
						{% for extension in extensions %}
							<div class="col-md-3 col-sm-6">
                                {% include 'extension/d_shopunity/extension_thumb.twig' with extension %}
							</div>
						{% endfor %}
					</div>
					{% endif %}
				</div>
			</div>
		</div>
	</div>
</div>

{{ footer }}