{% extends 'admin/master.html' %}
{% import 'admin/lib.html' as lib with context %}
{% import 'admin/static.html' as admin_static with context%}

{% block head %}
    {{ super() }}
    <link href="{{ admin_static.url(filename='admin/css/bootstrap3/rediscli.css') }}" rel="stylesheet">
{% endblock %}

{% block body %}
<div class="console">
  <div class="console-container">
  </div>
  <div class="console-line">
    <form action="#">
      <input type="text"></input>
    </form>
  </div>
</div>
{% endblock %}

{% block tail %}
  {{ super() }}
  <script src="{{ admin_static.url(filename='admin/js/rediscli.js') }}"></script>
  <script language="javascript">
    $(function() {
      var redisCli = new RedisCli({{ url_for('.execute_view')|tojson }});
    });
  </script>
{% endblock %}
