Sha256: 7b9ba9132574b1adca97995d8a62b90fc63e6ab8b8c70cb1565f91e6b0a885be

Contents?: true

Size: 935 Bytes

Versions: 35

Compression:

Stored size: 935 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"><%= humanize(attribute) %></label>
            <input type="text" id="<%= name.downcase %>[<%= attribute %>]" name="<%= name.downcase %>[<%= attribute %>]" <%%= placeholder("<%= humanize(attribute) %>") %> />
          </div>
      <% end %>

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

</div>

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
rhodes-3.5.1.12 res/generators/templates/model/new.erb
rhodes-3.3.5 res/generators/templates/model/new.erb
rhodes-3.4.2 res/generators/templates/model/new.erb
rhodes-3.3.4 res/generators/templates/model/new.erb
rhodes-3.3.3 res/generators/templates/model/new.erb
rhodes-3.3.3.beta.4 res/generators/templates/model/new.erb
rhodes-3.3.3.beta.3 res/generators/templates/model/new.erb
rhodes-3.3.3.beta.2 res/generators/templates/model/new.erb
rhodes-3.3.3.beta.1 res/generators/templates/model/new.erb
rhodes-3.3.2 res/generators/templates/model/new.erb
rhodes-3.3.2.beta.7 res/generators/templates/model/new.erb
rhodes-3.3.2.beta.6 res/generators/templates/model/new.erb
rhodes-3.3.2.beta.5 res/generators/templates/model/new.erb
rhodes-3.3.2.beta.4 res/generators/templates/model/new.erb
rhodes-3.3.2.beta.3 res/generators/templates/model/new.erb
rhodes-3.3.2.beta.2 res/generators/templates/model/new.erb
rhodes-3.3.2.beta.1 res/generators/templates/model/new.erb
rhodes-3.3.1 res/generators/templates/model/new.erb
rhodes-3.3.0 res/generators/templates/model/new.erb
rhodes-3.3.0.beta.3 res/generators/templates/model/new.erb