Sha256: 275df832abd228967622b3bb50ad89470646a9bdc238ffd88e93f326f8225a93

Contents?: true

Size: 776 Bytes

Versions: 6

Compression:

Stored size: 776 Bytes

Contents

<% form_for(@record, {:url => url_for_record(@record)}.merge(@model.form_options_for(@record))) do |form| %>
<fieldset>
<%= form.error_messages %>
<% @model.columns(:edit).each do |column| %>
	<div class='field'>
		<% unless params[column.name] %>
			<%= form.label column.name %>
			<%= form.send(@model.form_type(column), column.name, *@model.options_for(column)) %>
			<%= additional_content_for(@model, @record, column) %>
		<% else %>
			<%= form.hidden_field column.name, :value => params[column.name] %>
			<%= hidden_field_tag :redirect, column.name %>
			<%= hidden_field_tag :redirect_id, params[column.name] %>
		<% end %>
	</div>
<% end %>
<div class="submit_button">
	<button value="Save" class="submitBtn"><span>Save</span></button>
</div>
</fieldset>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kitsune-0.0.11 app/views/admin/kitsune/records/_form.html.erb
kitsune-0.0.10 app/views/admin/kitsune/records/_form.html.erb
kitsune-0.0.9 app/views/admin/kitsune/records/_form.html.erb
kitsune-0.0.8 app/views/admin/kitsune/records/_form.html.erb
kitsune-0.0.7 app/views/admin/kitsune/records/_form.html.erb
kitsune-0.0.6 app/views/admin/kitsune/records/_form.html.erb