Commit 148e1c6c authored by Michal Čihař's avatar Michal Čihař

Integrate search into new layout

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 03369a13
......@@ -32,8 +32,8 @@
<div class="panel panel-primary">
<div class="panel-heading">{% trans "Strings to check" %}</div>
<div class="list-group">
<div class="panel-body">
<div class="list-group">
{% for c in object.get_translation_checks %}
<a class="list-group-item" href="{{ object.get_translate_url }}?type={{ c.0 }}"><span class="badge">{{ c.2 }}</span>{{ c.1 }}</a>
{% endfor %}
......@@ -41,6 +41,19 @@
</div>
</div>
<form action="{{ object.get_translate_url }}" method="GET">
<div class="panel panel-primary">
<div class="panel-heading">{% trans "Search" %}</div>
<div class="panel-body">
{{ search_form.as_p }}
</div>
<div class="panel-footer">
<input type="submit" value="{% trans "Search" %}" class="button" />
</div>
</div>
</form>
</div>
<div class="col-md-6">
......@@ -112,7 +125,6 @@
<div class="tabs" id="translation-tabs">
<ul>
<li><a href="#search">{% trans "Search" %}</a></li>
<li><a href="#files">{% trans "Files" %}</a></li>
{% if autoform %}
<li><a href="#auto">{% trans "Automatic translation" %}</a></li>
......@@ -125,13 +137,6 @@
<li><a href="{% url 'view_activity_translation' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}">{% trans "Activity" %}</a></li>
</ul>
<div id="search">
<form action="{{ object.get_translate_url }}" method="GET">
{{ search_form.as_p }}
<input type="submit" value="{% trans "Search" %}" class="button" />
</form>
</div>
<div id="files">
<h3>{% trans "Download" %}</h3>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment