mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 15:05:26 +08:00
Dropdown menu works, need to add backend code for the second button
This commit is contained in:
parent
0f4dadefa9
commit
9b640c5df8
1 changed files with 23 additions and 29 deletions
|
@ -50,22 +50,8 @@
|
|||
</div>
|
||||
|
||||
<div id="import-export-protocols" class="btn-group" role="group">
|
||||
<a class="btn btn-default btn-open-file" <%= can_import_protocols(@current_team) ? 'data-action="import"' : 'disabled="disabled"' %>>
|
||||
<span class="glyphicon glyphicon-import"></span>
|
||||
<span class="hidden-xs"> <%= t("protocols.index.import") %></span>
|
||||
<input type="file" value="" accept=".eln" data-role="import-file-input"
|
||||
data-team-id="<%= @current_team.id %>"
|
||||
data-type="<%= @type %>" data-import-url="<%= import_protocols_path %>"
|
||||
<%= 'disabled="disabled"' unless can_import_protocols(@current_team) %>>
|
||||
</a>
|
||||
<a class="btn btn-default" data-action="export" data-export-url="<%= export_protocols_path() %>">
|
||||
<span class="glyphicon glyphicon-export"></span>
|
||||
<span class="hidden-xs"> <%= t("protocols.index.export") %></span>
|
||||
</a>
|
||||
<!-- </div> -->
|
||||
|
||||
<!--<div class="btn-group"> -->
|
||||
<a class="btn btn-default btn-open-file" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="#"><span class="glyphicon glyphicon-import"></span><span class="hidden-xs"> <%= "Import protocol" %></span></a>
|
||||
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
|
||||
|
@ -87,6 +73,14 @@
|
|||
</li>
|
||||
|
||||
</ul>
|
||||
<a class="btn btn-default" data-action="export" data-export-url="<%= export_protocols_path() %>">
|
||||
<span class="glyphicon glyphicon-export"></span>
|
||||
<span class="hidden-xs"> <%= t("protocols.index.export") %></span>
|
||||
</a>
|
||||
<!-- </div> -->
|
||||
|
||||
<!--<div class="btn-group"> -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="btn-group" role="group">
|
||||
|
|
Loading…
Reference in a new issue