-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added clickable/highlighted tables #57
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,7 @@ $nav-width-desktops: 200px; | |
$nav-width-widescreens: $nav-width-desktops; | ||
|
||
$light-gray: #f8f8f8; | ||
$light-green: #ddffdd; | ||
$light-green: #ddffdd; | ||
|
||
// XXX: I dont know if this looks good or not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this comment. |
||
$table-hover: rgba(200,200,200,0.1); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,3 +55,11 @@ $break-xlarge: 1200px; | |
-moz-border-radius: $radius; | ||
border-radius: $radius; | ||
} | ||
|
||
@mixin hover() { | ||
.ng-scope:hover { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this only applies to ng-scope, we should make the mixin name more descriptive. |
||
cursor: pointer; | ||
cursor: hand; | ||
background-color: $table-hover; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,14 +26,15 @@ | |
<td colspan="<%= fields.length + 1 %>">No <%= name %> available.</td> | ||
</tr> | ||
<tr data-ng-repeat="item in <%= model %><%= ".slice(0, #{limit})" if !local_assigns[:limit].nil? %><%= " | orderBy:#{model}Predicate:#{model}Reverse" if local_assigns[:sortable] %>" | ||
<%= defined?(rowhref) && raw("data-click-href='#{rowhref}'") %> > | ||
<%= defined?(rowHref) && raw("data-click-href='#{rowHref}'") %> | ||
<%= defined?(rowModule) && raw("data-ng-click=" + rowModule) %> > | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a TODO explaining that we should investigate this weird behavior. |
||
<% fields.each do |field| %> | ||
<td class="<%= field[:class] %>"><%= raw field[:content] %></td> | ||
<% end %> | ||
<td class="actions align-right"> | ||
<% actions.each do |action| %> | ||
<a data-ng-href="<%= action[:href] %>" data-ng-click="<%= raw(action[:click]) %>" | ||
class="pure-button pure-button-small <%= action[:class] %>" <%= raw action[:attrs] %> > | ||
class="pure-button pure-button-small <%= action[:class] %>" <%= raw action[:attrs] %> eat-click> | ||
<i class="<%= action[:icon] %> icon-large"></i> | ||
</a> | ||
<% end %> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
:locals => { | ||
:name => 'data', | ||
:model => "client.#{field[:id]}.value", | ||
:rowModule => "editInField('#{field[:id]}',$index)", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rowModal, though I'd actually prefer rowClick |
||
:fields => [ | ||
{ | ||
:name => field[:type].first[:name], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary line break.