Sha256: fad415477fc153bfdd273adf654a79503a3e7d86de7cd16d34c4e2f57c3f55e8

Contents?: true

Size: 715 Bytes

Versions: 2

Compression:

Stored size: 715 Bytes

Contents

<#if errors??>
	<#list errors as error>
		 ${error.category} - ${error.message}<br />
	</#list>
</#if>

<form action="<%= path %>" method="post">
  
  <#if <%= "#{model_parameter_name}.id" %>??>
    <input type="hidden" name="<%= "#{model_parameter_name}.id" %>" value="<%= "${#{model_parameter_name}.id}" %>"/>
    <input type="hidden" name="_method" value="put"/>
  </#if>

<% @attributes.each do |att| -%>
  <div class="field">
    <%= att.html_label %>:<br />
    <%= "<@html.#{att.html_input} \"#{model_parameter_name}.#{att.name}\" #{model_parameter_name}.#{att.name}/>"  %>
  </div>
<% end -%>
  <div class="actions">
    <button type="submit">send</button>
  </div>
</form>

<a href="<%= path %>">Back</a>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vraptor-scaffold-1.3.0.rc lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/form.erb
vraptor-scaffold-1.2.3 lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/form.erb