Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Commit

Permalink
add team search input
Browse files Browse the repository at this point in the history
  • Loading branch information
szpyxlwoni committed Dec 6, 2012
1 parent 490476c commit a70a948
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/views/teams/index.html.slim
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- content_for :javascript_includes do
= javascript_include_tag 'teams'
- content_for :menu_items do
li
= link_to 'add team', '#add_new', class: 'fancybox'
Expand All @@ -17,13 +19,15 @@ div id="add_new" style="display:none;"
div.form-actions
= form.submit 'Create', class: 'btn'
div style="overflow:hidden;margin-bottom:1em"
div.btn-group style="float:right;"
div.btn-group style="float:left;"
-if @sortby
a.btn.btn-primary href='/teams?sortby=CreateDate' Create Date
a.btn href='/teams' Team Name
a.btn.btn-primary href='/teams?sortby=CreateDate' Create Date
-else
a.btn href='/teams?sortby=CreateDate' Create Date
a.btn.btn-primary href='/teams' Team Name
a.btn href='/teams?sortby=CreateDate' Create Date
div.btn-group style="float:right;"
input.span2.search-query id="show-filter" type="text" placeholder="search"

- @memberships.each do |membership|
a href="/teams/#{membership.team_slug}"
Expand Down

0 comments on commit a70a948

Please sign in to comment.