Sha256: 4ca7275a40ce805d75b44815e3e1753daf48d65832faa64a7763bda6e2e92489
Contents?: true
Size: 1.67 KB
Versions: 8
Compression:
Stored size: 1.67 KB
Contents
<div class="{ @widget[:css_class] }"> <tpl:asset type="css" src="form.css" /> <tpl:asset type="js" src="form.js" /> <div sp:if="@error" class='errors'> Errori: <ul> <sp:pass sp:each="@errors |k, v|"> <li sp:each="v |err|"> { err } </li> </sp:pass> </ul> </div> <div sp:if="@action == :form"> <form action="{ @form_action }" method="POST" sp:attr-if="@enctype,enctype,@enctype"> <input type="hidden" name="_w{ @widget[:param] }[pk]" value="{ @pk }"> <sp:pass sp:each="@hidden_inputs |input|"> <sp:run obj="input" /> </sp:pass> <div class="fields"> <forms:element_row sp:each="@names |element|" element="element" error_condition="@errors[element]" /> </div> <div class="row buttons"> <input type='submit' name='_w{ @widget[:param] }[submit]' value='{ @submit_text }'> <input type='submit' sp:if="@show_submit_and_stay" name='_w{ @widget[:param] }[submit_and_stay]' value='{ @submit_and_stay_text }'> <input type='submit' sp:if="@show_submit_and_new" name='_w{ @widget[:param] }[submit_and_new]' value='{ @submit_and_new_text }'> <input sp:each="@submit_buttons |text|" type='submit' name='_w{ @widget[:param] }[submit]' value='{ text }'> </div> </form> <div class="sub_links" sp:if="!@sub_links.empty?"> <h4>Dati collegati:</h4> <ul> <li sp:each="@sub_links |link, label|"> <a href="{ @widget[:request_path] }/{ link }">{ label }</a> </li> </ul> </div> </div> <div sp:if="@action == :sub" class="sub_element_crud"> <h4 class="sub_element_title">Gestione { @sub_element.label.downcase } di <a href="{ @widget[:request_path] }/{ @pk }">{ @form_desc }</a> </h4> <sp:run obj="@crud" /> </div> </div>
Version data entries
8 entries across 8 versions & 1 rubygems