Sha256: 8920f755f03e0f2ffd3df8997ad951ce4d1cf51847d59312f1122bb2614b6ef3

Contents?: true

Size: 983 Bytes

Versions: 29

Compression:

Stored size: 983 Bytes

Contents

<% @scaffold_title = "Update #{sn = h(@scaffold_object.scaffold_name)}'s #{mpn = (so = @scaffold_options )[:aplch_name]}" %>

<%= scaffold_form(scaffold_url("update#{@scaffold_suffix}", :id=>(soid=@scaffold_object.scaffold_id))) %>

<% if @scaffold_class.scaffold_association_use_auto_complete(assoc = so[:association]) %>
  <h4>Add this <%= so[:aslhc_name] %></h4>
  <%= scaffold_text_field_tag_with_auto_complete('add', so[:singular_name], assoc) %>
<% elsif @items_to_add.length > 0 %>
  <h4>Add these <%= mpn %></h4>
  <%= scaffold_select_tag('add', @items_to_add, true) %>
<% end %>

<% if @items_to_remove.length > 0 %> 
  <h4>Remove these <%= mpn %></h4>
  <%= scaffold_select_tag('remove', @items_to_remove, true) %>
<% end %>

<br /><br />
<input type='submit' value="Update <%= sn %>'s <%= mpn %>" />
</form>

<% if '' != (edit_link = scaffold_check_link("Edit #{sn}", true, "edit_#{@scaffold_options[:singular_name]}", :id=>soid)) %>
  <h2><%= edit_link %></h2>
<% end %>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
scaffolding_extensions-1.4.3 scaffolds/habtm.rhtml
scaffolding_extensions-1.4.2 scaffolds/habtm.rhtml
scaffolding_extensions-1.4.1 scaffolds/habtm.rhtml
scaffolding_extensions-1.4.0 scaffolds/habtm.rhtml
scaffolding_extensions-1.3.12 scaffolds/habtm.rhtml
scaffolding_extensions-1.3.11 scaffolds/habtm.rhtml
scaffolding_extensions-1.3.10 scaffolds/habtm.rhtml
scaffolding_extensions-1.3.9 scaffolds/habtm.rhtml
scaffolding_extensions-1.0.0 scaffolds/habtm.rhtml
scaffolding_extensions-1.1.3 scaffolds/habtm.rhtml
scaffolding_extensions-1.1.2 scaffolds/habtm.rhtml
scaffolding_extensions-1.1.1 scaffolds/habtm.rhtml
scaffolding_extensions-1.1.0 scaffolds/habtm.rhtml
scaffolding_extensions-1.3.7 scaffolds/habtm.rhtml
scaffolding_extensions-1.3.1 scaffolds/habtm.rhtml
scaffolding_extensions-1.3.2 scaffolds/habtm.rhtml
scaffolding_extensions-1.1.5 scaffolds/habtm.rhtml
scaffolding_extensions-1.1.6 scaffolds/habtm.rhtml
scaffolding_extensions-1.1.9 scaffolds/habtm.rhtml
scaffolding_extensions-1.3.0 scaffolds/habtm.rhtml