Initial commit
This commit is contained in:
29
app/views/contract_templates/edit.html.erb
Normal file
29
app/views/contract_templates/edit.html.erb
Normal 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 %>
|
||||
22
app/views/contract_templates/index.html.erb
Normal file
22
app/views/contract_templates/index.html.erb
Normal 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 %>
|
||||
29
app/views/contract_templates/new.html.erb
Normal file
29
app/views/contract_templates/new.html.erb
Normal 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 %>
|
||||
1
app/views/contract_templates/show.html.erb
Normal file
1
app/views/contract_templates/show.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%=@contract_template.boilerplate %>
|
||||
Reference in New Issue
Block a user