limb2:en:template_system:tags:form_tags:form_tag

Form Tag

Tag form_tag

<form id='id' name='name' [method='get|post'] [action='action']>
some form controls
</form>

Purpose

Enhanced html form tag. See http://wact.sourceforge.net/index.php/FormTag for more info.

Scope

Anywhere in a WACT template.

Attributes

  • id – identifier for the tag (optional).
  • name – name for the tag (optional).

Any other html form attributes.

Contents

Any tags or decorating html

Example

<form id='search_form' name='search_form' action='/search' method='get'>
  <tr>
    <td >
     <locale:STRING name='query' file='search' locale_type='content'>

    </td>
    <td>
     <input type="text" id="query" name="query" class='input' size='40'>
    </td>
  </tr>
</form>

Component form_component

A runtime component for the <form> tag.

Methods

  • is_valid() – returns a flag if the form was validated
  • set_valid_status($status) – sets form validation status
  • get_error_dataset() – return errors list dataset
  • preserve_state($variable, $value=null) – method that provides a mechanism for having variables persist in hidden fields either side of a form post.
  • is_first_time() – returns a true is the form was displayed the first time and have not beed submitted before.
  • render_state() – outputs persisting hidden inputs at runtime.
  • render_attributes() – outputs tag attributes at runtime

Обсуждение

Ваш комментарий. Вики-синтаксис разрешён:
   ____   ___    ___    ____   ___ 
  / __/  / _ \  / _ \  / __/  / _ \
 / _/   / ___/ / // / _\ \   / ___/
/___/  /_/    /____/ /___/  /_/
 
limb2/en/template_system/tags/form_tags/form_tag.txt · Последнее изменение: 2010/11/10 10:02 — 127.0.0.1