Sha256: 0ef392f8d1ab1781cac2061e905d891028a2ab9e01f87b2098eaed8048949a2a

Contents?: true

Size: 622 Bytes

Versions: 3

Compression:

Stored size: 622 Bytes

Contents

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

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

  <div class="field">
    Name:<br />
    <@html.text "product.name" product.name/>
  </div>
  <div class="field">
    My flag:<br />
    <@html.checkbox "product.myFlag" product.myFlag/>
  </div>
  <div class="actions">
    <button type="submit">send</button>
  </div>
</form>

<a href="${base}/products">Back</a>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
heroku-vraptor-scaffold-0.9.0 spec/vraptor-scaffold/generators/scaffold/freemarker_generator/templates/form.ftl
vraptor-scaffold-1.3.0.rc spec/vraptor-scaffold/generators/scaffold/freemarker_generator/templates/form.ftl
vraptor-scaffold-1.2.3 spec/vraptor-scaffold/generators/scaffold/freemarker_generator/templates/form.ftl