Skip to content
Snippets Groups Projects
Commit 6534f07e authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[databases] Fix de-collapsing of protocol panels

parent 033266f5
No related branches found
No related tags found
1 merge request!194Scheduler
...@@ -2,21 +2,21 @@ ...@@ -2,21 +2,21 @@
{% comment %} {% comment %}
* Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/ * Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/
* Contact: beat.support@idiap.ch * Contact: beat.support@idiap.ch
* *
* This file is part of the beat.web module of the BEAT platform. * This file is part of the beat.web module of the BEAT platform.
* *
* Commercial License Usage * Commercial License Usage
* Licensees holding valid commercial BEAT licenses may use this file in * Licensees holding valid commercial BEAT licenses may use this file in
* accordance with the terms contained in a written agreement between you * accordance with the terms contained in a written agreement between you
* and Idiap. For further information contact tto@idiap.ch * and Idiap. For further information contact tto@idiap.ch
* *
* Alternatively, this file may be used under the terms of the GNU Affero * Alternatively, this file may be used under the terms of the GNU Affero
* Public License version 3 as published by the Free Software and appearing * Public License version 3 as published by the Free Software and appearing
* in the file LICENSE.AGPL included in the packaging of this file. * in the file LICENSE.AGPL included in the packaging of this file.
* The BEAT platform is distributed in the hope that it will be useful, but * The BEAT platform is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. * or FITNESS FOR A PARTICULAR PURPOSE.
* *
* You should have received a copy of the GNU Affero Public License along * You should have received a copy of the GNU Affero Public License along
* with the BEAT platform. If not, see http://www.gnu.org/licenses/. * with the BEAT platform. If not, see http://www.gnu.org/licenses/.
{% endcomment %} {% endcomment %}
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<ul id="object-tabs" class="nav nav-tabs" role="tablist"> <ul id="object-tabs" class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a {% if not database.description %}title="No documentation available" {% endif %} href="#doc" role="tab" data-toggle="tab" aria-controls="doc">Documentation{% if not database.description %} <i class="fa fa-warning"></i>{% endif %}</a></li> <li role="presentation" class="active"><a {% if not database.description %}title="No documentation available" {% endif %} href="#doc" role="tab" data-toggle="tab" aria-controls="doc">Documentation{% if not database.description %} <i class="fa fa-warning"></i>{% endif %}</a></li>
<li role="presentation"><a href="#protocols" role="tab" data-toggle="tab" aria-controls="protocols">Protocols <span class="badge">{{ database.protocols.count }}</span></a></li> <li role="presentation"><a href="#protos" role="tab" data-toggle="tab" aria-controls="protos">Protocols <span class="badge">{{ database.protocols.count }}</span></a></li>
<li role="presentation"><a href="#sharing" role="tab" data-toggle="tab" aria-controls="sharing">Sharing</a></li> <li role="presentation"><a href="#sharing" role="tab" data-toggle="tab" aria-controls="sharing">Sharing</a></li>
</ul> </ul>
...@@ -92,11 +92,11 @@ ...@@ -92,11 +92,11 @@
{% endif %} {% endif %}
</div> </div>
<div role="tabpanel" class="tab-pane" id="protocols"> <div role="tabpanel" class="tab-pane" id="protos">
<div class="panel-group" id="protocol-accordion" role="tablist" aria-multiselectable="true"> <div class="panel-group" id="protocol-accordion" role="tablist" aria-multiselectable="true">
{% for protocol in database.protocols.all %} {% for protocol in database.protocols.all %}
{% with protocol.set_template_basename as name %} {% with protocol.name as name %}
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" role="tab" id="heading_{{ name }}"> <div class="panel-heading" role="tab" id="heading_{{ name }}">
<h4 class="panel-title"> <h4 class="panel-title">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment