Skip to content

Instantly share code, notes, and snippets.

View djcas9's full-sized avatar
🟣
Work

Dustin Willis Webber djcas9

🟣
Work
View GitHub Profile
<a class="round more" href="#" id="more" onclick="new Ajax.Request('/events/load_more?page=1', {asynchronous:true, evalScripts:true, parameters:'authenticity_token=' + encodeURIComponent('6m9xo+DNIioXptskyAn0OGF4pKi7eKtJhZhjpZ2pdPw=')}); return false;">more</a>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Snorby</title>
<script src="/javascripts/prototype.js?1245319226" type="text/javascript"></script>
<script src="/javascripts/effects.js?1245319226" type="text/javascript"></script>
<script src="/javascripts/dragdrop.js?1245319226" type="text/javascript"></script>
<script src="/javascripts/controls.js?1245319226" type="text/javascript"></script>
<script src="/javascripts/application.js?1245891139" type="text/javascript"></script>
<% for ticket in @report.tickets %>
<% fields_for "report[ticket_attributes][]", ticket do |ticket_form| %>
Company: <%= @clients = Client.find(:all, :order => "company_name")
collection_select("Company", "client_id", @clients, :id, :company_name ) %>
Ticket: <%= ticket_form.text_field :ticket_number %>
Status: <%= ticket_form.select :progress, ["Open", "In Progress", "Closed"], :multiple => false %>
<br />
<br />
<% remote_form_for [@post, Comment.new] do |f| %>
<p>
<!-- <%= f.text_field :name, :value => current_user.login %>
<%= f.text_field :email, :value => current_user.email %> -->
<%= f.label :body, "New Comment" %><br />
<%= f.text_area :body, :cols => 60, :rows => 10 %>
</p>
<br />
<p><%= f.submit "Add Comment" %></p>
<br />