Sha256: 38bf316d3ed85b5dee2b5984543cc83d4a1c6d2ab535c49f46f291275bc70418

Contents?: true

Size: 1.1 KB

Versions: 15

Compression:

Stored size: 1.1 KB

Contents

<div id="pageTitle">
	<h1>Edit <%%= @<%= name.downcase %>.<%= attributes[0] %>%></h1>
</div>

<div id="toolbar">
    <div id="leftItem" class="backButton"><%%= link_to "Cancel", :action => :show, :id => @<%= name.downcase %>.object %></div>
    <div id="rightItem" class="regularButton"><%%= link_to "Delete", :action => :delete, :id => @<%= name.downcase %>.object %></div>
</div>

<div id="content">
    <form method="POST" action="<%%= url_for :action => :update %>">
            <input type="hidden" name="id" value="<%%= @<%= name.downcase %>.object %>"/>
            <ul>
                <% attributes.each do |attribute| %>
                <li>
                    <label for="<%= name.downcase %>[<%= attribute %>]" class="fieldLabel"><%= humanize(attribute) %></label>
                    <input type="text" name="<%= name.downcase %>[<%= attribute %>]" value="<%%= @<%= name.downcase %>.<%= attribute %>%>" <%%= placeholder( "<%= humanize(attribute) %>" ) %> />
                </li>
                <% end %>
            </ul>
            <input type="submit" class="standardButton" value="Update" />
    </form>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rhodes-2.0.3 res/generators/templates/model/edit.erb
rhodes-2.0.2 res/generators/templates/model/edit.erb
rhodes-2.0.0 res/generators/templates/model/edit.erb
rhodes-2.0.0.rc2 res/generators/templates/model/edit.erb
rhodes-2.0.0.rc1 res/generators/templates/model/edit.erb
rhodes-2.0.0.beta11 res/generators/templates/model/edit.erb
rhodes-2.0.0.beta10 res/generators/templates/model/edit.erb
rhodes-2.0.0.beta9 res/generators/templates/model/edit.erb
rhodes-2.0.0.beta8 res/generators/templates/model/edit.erb
rhodes-2.0.0.beta7 res/generators/templates/model/edit.erb
rhodes-2.0.0.beta6 res/generators/templates/model/edit.erb
rhodes-2.0.0.beta4 res/generators/templates/model/edit.erb
rhodes-2.0.0.beta3 res/generators/templates/model/edit.erb
rhodes-2.0.0.beta2 res/generators/templates/model/edit.erb
rhodes-2.0.0.beta1 res/generators/templates/model/edit.erb