Source

MyHost / src / templates / start.html

Full commit
{% extends "base.html" %}
{% load i18n %}
{% load widget_tweaks %}


{% block main_content %}
        <div class="span3">
            <div class="well sidebar-nav">
                <ul class="nav nav-list">
                    <li class="nav-header">Sidebar</li>
                    <li class="active"><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li class="nav-header">Sidebar</li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li class="nav-header">Sidebar</li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                </ul>
            </div><!--/.well -->
        </div><!--/span-->
        <div class="span9">
            <div class="hero-unit">
                <h1>MyHost</h1>
                <h3>
                     The OSRC host booking system.
                </h3>
                <p></p>
                <form class="well form-search{% if not host_found %} control-group error{% endif %}" action="{% url home %}" method="post">{% csrf_token %}
                        {{ form.search_string|attr:"type:search"|attr:"autofocus"|add_class:"input-medium search-query"|attr:"data-provide:typeahead" }}
                  <!-- input type="text" id="main-search" class="input-medium search-query" data-provide="typeahead" -->
                  <button type="submit" class="btn btn-primary btn-success"><i class="icon-search icon-white"></i></button>
                </form>


            </div>
        </div><!--/span-->
{% endblock %}

{% block js_bottom %}
    <script>
            var hosts = [{% for host in hosts %}'{{ host }}', {% endfor %}];
                // 'aaa', 'bbb', 'ccc'];
            $('#id_search_string').typeahead({
                source: hosts
            })
    </script>

{% endblock js_bottom %}
{% comment %}
{% endcomment %}