Sha256: b57f9fa31f6e48959f08c6f5062009ca6f2a09e673c566af7265f124c7bdfb4f

Contents?: true

Size: 814 Bytes

Versions: 14

Compression:

Stored size: 814 Bytes

Contents

<div class="edit-<%= name.downcase %>">
  <form data-id="{{id}}" data-controller="<%= name.downcase.pluralize %>" data-action="update">
    <%- attributes.each do |attribute| %>
      <label for="<%= name.downcase %>-<%= attribute.name %>"><%= attribute.name.titlecase %></label><br />
      <%- if attribute.type == 'text' %>
        <textarea name="<%= attribute.name %>" data-attribute="<%= attribute.name %>">{{<%= attribute.name%> }}</textarea><br />
      <%- else %>
        <input type="text" name="<%= attribute.name %>" value="{{<%= attribute.name %>}}" data-attribute="<%= attribute.name %>"><br />
      <%- end -%>
    <%- end -%>
    <input type="submit" name="commit" value="Save"> or <a href="#" data-controller="<%= name.downcase.pluralize %>" data-action="cancel_edit">Cancel</a>
  </form>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
eyeballs-0.5.2 templates/scaffold_edit.html.mustache
eyeballs-0.5.1 templates/scaffold_edit.html.mustache
eyeballs-0.5.0 templates/scaffold_edit.html.mustache
eyeballs-0.4.2 templates/scaffold_edit.html.mustache
eyeballs-0.4.1 templates/scaffold_edit.html.mustache
eyeballs-0.3.7 templates/scaffold_edit.html.mustache
eyeballs-0.3.6.1 templates/scaffold_edit.html.mustache
eyeballs-0.3.6 templates/scaffold_edit.html.mustache
eyeballs-0.3.5 templates/scaffold_edit.html.mustache
eyeballs-0.3.4.1 templates/scaffold_edit.html.mustache
eyeballs-0.3.4 templates/scaffold_edit.html.mustache
eyeballs-0.3.3.1 templates/scaffold_edit.html.mustache
eyeballs-0.3.3 templates/scaffold_edit.html.mustache
eyeballs-0.3.2 templates/scaffold_edit.html.mustache