Sha256: c94b47ff03270ae346ce916e68a0cb49ddf2217221433822305fbb93da6cdfbf

Contents?: true

Size: 932 Bytes

Versions: 3

Compression:

Stored size: 932 Bytes

Contents

<p>
  <a href="{{path}}/_list/<%= pluralized_model_name %>/<%= pluralized_model_name %>">List <%= pluralized_model_name.humanize %></a> |
  <a href="{{path}}/_show/<%= model_name %>/{{id}}">Show <%= model_name.humanize %></a> |
  <a href="{{path}}/_show/<%= model_name %>/{{id}}?edit">Edit <%= model_name.humanize %></a>
</p>
<h3>Are you sure you want to delete that <%= model_name.humanize %>?</h3>
<dl>
  <dt>ID</dt>
  <dd>{{id}}</dd>
<% attributes.each do |attribute| -%>
  <dt><%= attribute.humanize %></dt>
  <dd>{{<%= attribute %>}}</dd>
<% end -%>
</dl>
<form action="{{path}}/_update/<%= pluralized_model_name %>" method="post" accept-charset="utf-8">
  <input type="hidden" name="rev" value="{{rev}}" id="rev" />
  <input type="hidden" name="id" value="{{id}}" id="id" />
  <input type="hidden" name="delete" value="true" id="delete" />
  <p><input type="submit" value="Yes, delete <%= model_name.humanize %>"></p>
</form>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rid-0.5.2 lib/rid/generators/show/templates/delete.mustache
rid-0.5.1 lib/rid/generators/show/templates/delete.mustache
rid-0.5.0 lib/rid/generators/show/templates/delete.mustache