Sha256: d64111a4d46557a2956d970b3bd5e5f7ddbf24c49bc4b134ba958b0208a5c030

Contents?: true

Size: 851 Bytes

Versions: 3

Compression:

Stored size: 851 Bytes

Contents

<p>
  <a href="{{path}}/_list/<%= pluralized_model_name %>/<%= pluralized_model_name %>">List <%= pluralized_model_name.humanize %></a>
{{#rev}}
  | <a href="{{path}}/_show/<%= model_name %>/{{id}}">Show <%= model_name.humanize %></a>
{{/rev}}
</p>
<form action="{{path}}/_update/<%= pluralized_model_name %>" method="post" accept-charset="utf-8">
{{#rev}}
  <input type="hidden" name="rev" value="{{rev}}" id="rev" />
{{/rev}}
  <p>
    <label for="id">ID</label><br/>
    <input type="text" name="id" value="{{id}}" id="id" />
  </p>
<% attributes.each do |attribute| -%>
  <p>
    <label for="<%= attribute %>"><%= attribute.humanize %></label><br/>
    <input type="text" name="<%= attribute %>" value="{{<%= attribute %>}}" id="<%= attribute %>" />
  </p>
<% end -%>
  <p><input type="submit" value="Save <%= 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/form.mustache
rid-0.5.1 lib/rid/generators/show/templates/form.mustache
rid-0.5.0 lib/rid/generators/show/templates/form.mustache