Sha256: 0108c729eb4e7fd9f2c7435e9fd5390ffa96e5e373fc8846c3651774f6676adc
Contents?: true
Size: 788 Bytes
Versions: 24
Compression:
Stored size: 788 Bytes
Contents
<div class="edit-<%= name.downcase %>"> <form data-id="{{id}}" data-bind="<%= name.downcase.pluralize %>#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 %>#cancel_edit">Cancel</a> </form> </div>
Version data entries
24 entries across 24 versions & 1 rubygems