Source

cmsplugin-googlesearch / cmsplugin_googlesearch / templates / plugins / cmsplugin_googlesearch / googlesearch_plugin.html

{% load cache cms_tags i18n %}
    <div class="googlesearch-plugin{% if css %} {{ css }}{% endif %}">
        <form action="{{ redirect }}" method="post">
            <style type="text/css">
                @import url(http://www.google.com/cse/api/branding.css);
            </style>
            <div class="cse-branding-logo">
                <img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" />
            </div>
            <div class="cse-branding-text">
                Custom Search
            </div>
            {% comment %} very basic django form here, sine we are redirecting anyway {% endcomment %}
            {% for field in form %}
                <div class="form-left">
                    {{ field.label_tag }}{% if field.field.required %}<span class="form-required">*</span>{% endif %}
                </div>
                <div class="form-right">
                    {{ field }}
                </div>
                <div class="help_text">{{ field.help_text }}</div>
            {% endfor %}
            <div class="gsc-branding-text">powered by</div>
            <div class="gsc-branding-img-noclear"><img src="http://www.google.com/uds/css/small-logo.png" class="gsc-branding-img-noclear"></div>
            <input type="submit" class="button" value="{% trans "Search" %}">
        </form>
    </div>