Skip to content

Commit

Permalink
Use bootstrap styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kryzhovnik committed May 24, 2015
1 parent cf1883b commit 5942587
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/views/rails_admin/main/_form_tag_list.html.haml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
= form.send field.view_helper, field.method_name, field.html_attributes
= form.send field.view_helper, field.method_name, field.html_attributes.reverse_merge({ value: field.form_value, class: 'form-control', required: field.required})
24 changes: 14 additions & 10 deletions app/views/rails_admin/main/_tag_list_with_suggestions.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= form.send field.view_helper, field.method_name, field.html_attributes
= form.send field.view_helper, field.method_name, field.html_attributes.reverse_merge({ value: field.form_value, class: 'form-control', required: field.required})

- tag_suggestions(field, :length => 5, :order => { :count => :desc }).each do |tag|
= link_to tag, '#', :class => 'tag_suggestion', :data => { :input_id => form.dom_id(field) }
Expand Down Expand Up @@ -26,12 +26,16 @@
});
});

%style
:sass
.tag_suggestion
color: #777
border-bottom: 1px dotted #b94a48
&:hover
color: #aaa
border-bottom: 1px dotted #953b39
text-decoration: none
:sass
.tag_list_type
input
display: inline-block
margin-right: 10px
.tag_suggestion
margin-right: 5px
border-bottom: 1px dotted #b94a48
color: #777
&:hover
color: #aaa
border-bottom: 1px dotted #953b39
text-decoration: none

0 comments on commit 5942587

Please sign in to comment.