Sha256: 6951f22beb12f9f2fa5bc04e724e5ebc452a317f0dcd4b64be936910dd6ca89e
Contents?: true
Size: 1.64 KB
Versions: 11
Compression:
Stored size: 1.64 KB
Contents
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title><%= name.capitalize.pluralize %></title> </head> <body> <h1><%= name.titlecase.pluralize %></h1> <h2>Add:</h2> <form data-bind="<%= name.downcase.pluralize %>/create"> <%- 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 %>"></textarea><br /> <%- else %> <input type="text" name="<%= attribute.name %>" value="" data-attribute="<%= attribute.name %>"><br /> <%- end -%> <%- end -%> <input type="submit" name="commit" value="Save"> </form> <div id="<%= name.downcase.pluralize %>"> </div> </body> <script src="vendor/jquery/jquery-1.4.2.min.js"></script> <script src="vendor/jquery/jquery.livequery.js"></script> <script src="vendor/mustache/mustache.js"></script> <script src="vendor/eyeballs/o_O.js"></script> <script src="vendor/eyeballs/jquery.o_O.js"></script> <script src="vendor/eyeballs/o_O.localstorage.js"></script> <script type="text/javascript" charset="utf-8"> o_O.model.adapter = o_O.localstorage; </script> <script src="app/models/<%= name.downcase %>.js"></script> <script src="app/controllers/<%= name.downcase.pluralize %>_controller.js"></script> <script type="text/javascript" charset="utf-8"> $(function(){ <%= name.capitalize.pluralize %>Controller.index(); }) </script> </html>
Version data entries
11 entries across 11 versions & 1 rubygems