Initial commit

This commit is contained in:
2011-09-28 03:37:39 -07:00
commit b1fbb339c2
373 changed files with 52305 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<!-- TinyMCE -->
<script type="text/javascript" src="/javascripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "simple"
});
</script>
<!-- /TinyMCE -->
<h1>Editing contract_template</h1>
<% form_for(@contract_template) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :name %><br />
<%= f.text_field :name %>
</p>
<p>
<%= f.label :boilerplate %><br />
<%= f.text_area :boilerplate %>
</p>
<p>
<%= f.submit 'Edit' %>
</p>
<% end %>
<%= link_to 'Back', contract_templates_path %>

View File

@@ -0,0 +1,22 @@
<h1>Listing contract_templates</h1>
<table>
<tr>
<th>Name</th>
<th>Boilerplate</th>
</tr>
<% @contract_templates.each do |contract_template| %>
<tr>
<td><%=h contract_template.name %></td>
<td><%= truncate(contract_template.boilerplate, :length => 1000) %></td>
<td><%= link_to 'Show', contract_template %></td>
<td><%= link_to 'Edit', edit_contract_template_path(contract_template) %></td>
<td><%= link_to 'Destroy', contract_template, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New contract_template', new_contract_template_path %>

View File

@@ -0,0 +1,29 @@
<!-- TinyMCE -->
<script type="text/javascript" src="/javascripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "simple"
});
</script>
<!-- /TinyMCE -->
<h1>New contract_template</h1>
<% form_for(@contract_template) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :name %><br />
<%= f.text_field :name %>
</p>
<p>
<%= f.label :boilerplate %><br />
<%= f.text_area :boilerplate %>
</p>
<p>
<%= f.submit 'Create' %>
</p>
<% end %>
<%= link_to 'Back', contract_templates_path %>

View File

@@ -0,0 +1 @@
<%=@contract_template.boilerplate %>