{% load i18n %}
{% load url from future %}

<div class="clearfix">
  <form id="tail_length" action="{% url 'horizon:project:databases:logs:console' instance_id filename %}" class="form-inline pull-right">
    <label for="tail_length_select">{% trans "Log Length" %}</label>
    <input class="span1" type="text" name="length" value="{{ log_length }}" />
    <label for="publish_check">{% trans "Publish" %}</label>
    <input type="checkbox" name="publish" value="publish" {{ publish }}>
    <button class="btn btn-default btn-sm btn-primary always-enabled" type="submit">{% trans "Go" %}</button>
    <a href="{% url 'horizon:project:databases:detail' instance_id %}" class="btn btn-default btn-sm pull-right secondary">{% trans "Return to Log List" %}</a>
    <a href="{% url 'horizon:project:databases:logs:download_log' instance_id filename %}" class="btn btn-default btn-sm pull-right">{% trans "Download" %}</a>
    <a href="{% url 'horizon:project:databases:logs:full_log' instance_id filename %}" class="btn btn-default btn-sm pull-right" target="_blank">{% trans "View Full Log" %}</a>
  </form>
</div>
<br>

<pre class="logs">
  {{ log_contents }}
</pre>

{% load i18n %}
{% load url from future %}

<div class="col-sm-12">
  <div class="clearfix">
    <form id="tail_length" action="{% url 'horizon:project:databases:logs:console' instance_id filename %}" class="form-inline pull-right">
      <label for="tail_length_select">{% trans "Log Length" %}</label>
      <input class="span1" type="text" name="length" value="{{ log_length }}" />
      <label for="publish_check">{% trans "Publish" %}</label>
      <input type="checkbox" name="publish" value="publish" {{ publish }}>
      <button class="btn btn-default btn-sm btn-primary always-enabled" type="submit">{% trans "Go" %}</button>
      <a href="{% url 'horizon:project:databases:detail' instance_id %}" class="btn btn-default btn-sm pull-right secondary">{% trans "Return to Log List" %}</a>
      <a href="{% url 'horizon:project:databases:logs:download_log' instance_id filename %}" class="btn btn-default btn-sm pull-right">{% trans "Download" %}</a>
      <a href="{% url 'horizon:project:databases:logs:full_log' instance_id filename %}" class="btn btn-default btn-sm pull-right" target="_blank">{% trans "View Full Log" %}</a>
    </form>
  </div>
  <br>

  <pre class="logs">
    {{ log_contents }}
  </pre>
</div>

Fix formatting of detail log page
Fix formatting of detail log page

The formatting when used in the plugin requires the form to be
wrapped in a <div>.  This change does not change the way the form
is rendered when run as standard horizon.

Change-Id: Iad63501dcf878757cae8c1138113342fdd2e1ff7
