Skip to content

Commit

Permalink
example powertag dropdown [WIP] (#1558)
Browse files Browse the repository at this point in the history
* example powertag dropdown

* remove npm-debug.log

* dropdown shows with param potter
  • Loading branch information
shelbyfirebaugh authored and jywarren committed Aug 4, 2017
1 parent 8c76814 commit 96126c2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/views/tag/_advanced_tagging.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Dropdown
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
<li><a href="#" onClick="addTag('style:fancy')">Make it ~Fancy~</a></li>
</ul>
</div>
5 changes: 5 additions & 0 deletions app/views/tag/_tagging.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ $(function () {
<input name="remote" type="hidden" value="true" />
<div class="input-group col-md-6">
<span class="input-group-addon"><i class="fa fa-tags"></i></span>

<% if params[:potter] %>
<%= render partial: 'tag/advanced_tagging' %>
<% end %>

<input autocomplete="off" class="tag-input form-control" name="name" type="text" placeholder="<%= t('tag._tagging.enter_tags') %>" data-provide="typeahead" />
</div>
<script>
Expand Down

0 comments on commit 96126c2

Please sign in to comment.