Created
January 7, 2015 14:45
-
-
Save lenagroeger/1a7c079ce2afff460697 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="dd-name"> | |
| <p class="close-button" data-el="Drug_<%= d.id %>"><span></span></p> | |
| <h2><%= d.drugname %></h2> | |
| <% if (d.categories.length > 0) { %> | |
| <h4> Drug <%= categories.length == 1 ? "Class" : "Classes" %>: | |
| <% $.each(d.categories, function(index, value){ %> | |
| <span><%= value.name %></span> | |
| <% })%></h4> | |
| <% } %> | |
| <% if (d.desc) { %> | |
| <p><%= d.desc %></p><p><a href="<%= d.url %>">More about this drug »</a></p> | |
| <% } %> | |
| </div> | |
| <div class="payments"> | |
| <% if (d.total_sum >0) { %> | |
| <div class="totals"> | |
| <p class="p-title">General Payments <span>(Excluding Royalties)</span></p> | |
| <div class="p-item center-item"><h2><%= numeral(d.total_sum).format('$0,000.0a') %></h2><span class="mini-label">spent in total</span></div> | |
| <div class="p-item"> | |
| <p><span><%= numeral(d.total_count).format('0,000') %></span> <%= d.total_count > 1 ? "payments" : "payment" %> <br> averaging <span><%= numeral(d.total_sum/d.total_count).format('$0,000') %> </span> each </p> | |
| </div> | |
| <% } else { %> | |
| <div class="totals no-payments"> | |
| <p class="p-title">General Payments <span>(Excluding Royalties)</span></p> | |
| <div class="p-item center-item"><h2>None</h2></div> | |
| <% } %> | |
| </div> | |
| <% if (d.royalty_sum >0) { %> | |
| <div class="totals"> | |
| <p class="p-title">Royalty Payments</p> | |
| <div class="p-item center-item"><h2><%= numeral(d.royalty_sum).format('$0,000.0a') %></h2><span class="mini-label">spent in total</span></div> | |
| <div class="p-item"> | |
| <p><span><%= numeral(d.royalty_cnt).format('0,000') %></span> <%= d.royalty_cnt > 1 ? "payments" : "payment" %> <br> averaging <span><%= numeral(d.royalty_sum/d.royalty_cnt).format('$0,000') %> </span> each </p> | |
| </div> | |
| <% } else { %> | |
| <div class="totals no-payments"> | |
| <p class="p-title">Royalty Payments</p> | |
| <div class="p-item center-item"><h2>None</h2></div> | |
| <% } %> | |
| </div> | |
| <% if (d.research_sum >0) { %> | |
| <div class="totals"> | |
| <p class="p-title">Research Payments</p> | |
| <div class="p-item center-item"><h2><%= numeral(d.research_sum).format('$0,000.0a') %></h2><span class="mini-label">spent in total</span></div> | |
| <div class="p-item"> | |
| <p><span><%= numeral(d.research_cnt).format('0,000') %></span> <%= d.research_cnt > 1 ? "payments" : "payment" %> <br> averaging <span><%= numeral(d.research_sum/d.research_cnt).format('$0,000') %> </span> each </p> | |
| </div> | |
| <% } else { %> | |
| <div class="totals no-payments"> | |
| <p class="p-title">Research Payments</p> | |
| <div class="p-item center-item"><h2>None</h2></div> | |
| <% } %> | |
| </div> | |
| </div> | |
| <div class="deets"> | |
| <h5>Drug Details</h5> | |
| <div class="dd-th"><p>Type of Payment</p><p>Total</p><p>Num. of Payments</p> </div> | |
| <div><p>Food and Beverage </p> <p><%= OP.isNil(d.meal_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.meal_cnt ,'0,000') %></p> </div> | |
| <div><p>Travel and Lodging </p> <p><%= OP.isNil(d.travel_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.travel_cnt ,'0,000') %></p> </div> | |
| <div><p>Education </p> <p><%= OP.isNil(d.education_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.education_cnt ,'0,000') %></p> </div> | |
| <div><p>Promotional Speaking </p> <p><%= OP.isNil(d.speaking_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.speaking_cnt ,'0,000') %></p> </div> | |
| <div><p>Consulting Fee </p> <p><%= OP.isNil(d.consulting_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.consulting_cnt ,'0,000') %></p> </div> | |
| <div><p>Gift </p> <p><%= OP.isNil(d.gift_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.gift_cnt ,'0,000') %></p> </div> | |
| <div><p>Honoraria </p> <p><%= OP.isNil(d.honoraria_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.honoraria_cnt ,'0,000') %></p> </div> | |
| <div><p>Nonaccredited Training </p> <p><%= OP.isNil(d.nonaccredited_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.nonaccredited_cnt,'0,000') %></p> </div> | |
| <div><p>Grant </p> <p><%= OP.isNil(d.grant_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.grant_cnt ,'0,000') %></p> </div> | |
| <div><p>Royalty or License </p> <p><%= OP.isNil(d.royalty_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.royalty_cnt ,'0,000') %></p> </div> | |
| <div><p>Space Rental or Facility Fees </p> <p><%= OP.isNil(d.facility_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.facility_cnt ,'0,000') %></p> </div> | |
| <div><p>Ownership or Investment Interest </p> <p><%= OP.isNil(d.investment_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.investment_cnt ,'0,000') %></p> </div> | |
| <div><p>Entertainment </p> <p><%= OP.isNil(d.entertainment_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.entertainment_cnt,'0,000') %></p> </div> | |
| <div><p>Accredited Training </p> <p><%= OP.isNil(d.accredited_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.accredited_cnt ,'0,000') %></p> </div> | |
| <div><p>Charitable Contribution </p> <p><%= OP.isNil(d.charitable_sum ,'$0,000a')%></p> <p><%= OP.isNil(d.charitable_cnt ,'0,000') %></p> </div> | |
| </div> | |
| <div class="deets expandable drug-detail"> | |
| <h5> <%= d.companies.length == 1 ? "Company" : "Companies" %> </h5> | |
| <p class="mini-label"> Making payments related to this device</p> | |
| <% if (d.companies.length > 0) { %> | |
| <% $.each(d.companies, function(index, value){ %> | |
| <p id="Company_<%= value.id %>" class="goto-card"><%= value.cleanname %></p> | |
| <% })%> | |
| <% } else { %> | |
| <br><p>None</p> | |
| <% } %> | |
| <% if (d.companies.length > 3) {%> | |
| <span class="expand-button" data-el="drug"></span> | |
| <% } %> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment