diff --git a/app/assets/javascripts/app/controllers/users.js.coffee b/app/assets/javascripts/app/controllers/users.js.coffee index 7a11e4bd5..de080c635 100644 --- a/app/assets/javascripts/app/controllers/users.js.coffee +++ b/app/assets/javascripts/app/controllers/users.js.coffee @@ -1,4 +1,6 @@ class Index extends App.Controller + elements: + '.js-search' : 'searchInput' events: 'click [data-type="new"]': 'new' @@ -14,7 +16,7 @@ class Index extends App.Controller @html App.view('user')( head: 'Users' buttons: [ - { name: 'New User', 'data-type': 'new', class: 'primary' } + { name: 'New User', 'data-type': 'new', class: 'btn--success' } ] roles: App.Role.all() ) @@ -24,14 +26,14 @@ class Index extends App.Controller (e) => e.preventDefault() $(e.target).toggleClass('active') - term = @$('.search').val().trim() + term = @searchInput.val().trim() return if !term @delay( @search, 220, 'search' ) ) # start search - @$('.search').bind( 'keyup', (e) => - term = @$('.search').val().trim() + @searchInput.bind( 'keyup', (e) => + term = @searchInput.val().trim() return if !term return if term is @term @term = term diff --git a/app/assets/javascripts/app/views/user.jst.eco b/app/assets/javascripts/app/views/user.jst.eco index a04fedf87..cf6d9da72 100644 --- a/app/assets/javascripts/app/views/user.jst.eco +++ b/app/assets/javascripts/app/views/user.jst.eco @@ -1,24 +1,24 @@ -
-
-
-

<%- @T( @head ) %> <%- @T( 'Management' ) %>

-
-
- <% if @buttons: %> - <% for button in @buttons: %> - <%- @T( button.name ) %> - <% end %> - <% end %> -
+
+
+

<%- @T( @head ) %> <%- @T( 'Management' ) %>

- - - -
- <% for role in @roles: %> -
<%- @T(role.displayName() ) %>
+
+ <% if @buttons: %> + <% for button in @buttons: %> + <%- @T( button.name ) %> + <% end %> <% end %>
+
-
-
\ No newline at end of file +
+ +
<%- @T('Filter') %>:
+
+ <% for role in @roles: %> +
<%- @T(role.displayName() ) %>
+ <% end %> +
+
+ +
\ No newline at end of file diff --git a/app/assets/stylesheets/zzz.css.erb b/app/assets/stylesheets/zzz.css.erb index ab388708a..a59ec7f82 100644 --- a/app/assets/stylesheets/zzz.css.erb +++ b/app/assets/stylesheets/zzz.css.erb @@ -438,8 +438,17 @@ textarea, border-radius: 3px; transition: none; box-shadow: none; + outline: none; } + input[type=text]:focus, + input[type=password]:focus, + input[type=email]:focus, + textarea:focus { + border-color: hsl(200,71%,59%); + box-shadow: 0 0 0 3px hsl(201,62%,90%); + } + .form-control:focus, .tokenfield.focus { box-shadow: none; @@ -624,8 +633,8 @@ ol.tabs li { } .tab { - height: 39px; - padding: 9px; + height: 40px; + padding: 10px 20px; text-align: center; border-right: 1px solid rgba(0,8,14,.08); cursor: pointer; @@ -3447,6 +3456,23 @@ footer { [contenteditable] > .placeholder { color: #999; } + +.userSearch { + margin-bottom: 20px; +} + +.userSearch-label { + margin: 0 10px 0 20px; +} + +.userSearch .tab:not(.active) { + background: white; +} + +.userSearch .tabs { + margin: 0; +} + /* ----------------