Sha256: ed4de79e108ed5bcd694a6e47b55959cebb98fac0e575c64853d333c90ac1256

Contents?: true

Size: 937 Bytes

Versions: 5

Compression:

Stored size: 937 Bytes

Contents

<div data-role="page">

  <div data-role="header" data-position="inline">
    <h1>New <%%= @<%= name.downcase %>.title %></h1>
    <a href="<%%= url_for :action => :index %>" class="ui-btn-left" data-icon="back" data-direction="reverse">
      Cancel
    </a>
  </div>

  <div data-role="content">
    <form method="POST" action="<%%= url_for :action => :create %>">
      <input type="hidden" name="id" value="<%%= @<%= name.downcase %>.object %>"/>

      <% attributes.each do |attribute| %>
          <div data-role="fieldcontain">
            <label for="<%= name.downcase %>[<%= attribute %>]" class="fieldLabel"><%= attribute.humanize() %></label>
            <input type="text" id="<%= name.downcase %>[<%= attribute %>]" name="<%= name.downcase %>[<%= attribute %>]" <%%= placeholder("<%= attribute.humanize() %>") %> />
          </div>
      <% end %>

      <input type="submit" value="Create"/>
    </form>
  </div>

</div>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rhodes-5.5.0.3 res/generators/templates/model/new.erb
rhodes-5.5.0 res/generators/templates/model/new.erb
tauplatform-1.0.3 res/generators/templates/model/new.erb
tauplatform-1.0.2 res/generators/templates/model/new.erb
tauplatform-1.0.1 res/generators/templates/model/new.erb