Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 840 Bytes

README.rdoc

File metadata and controls

39 lines (32 loc) · 840 Bytes

Polls Extension

Web polls for Radiant CMS.

Installation

Via Git Submodules:

git submodule add git://github.com/nuex/radiant-polls-extension.git vendor/extensions/polls
rake radiant:extensions:polls:migrate
rake radiant:extensions:polls:update

Usage

<r:poll title="My Poll">
  <r:unless_submitted>
    <r:form>
      <r:options:each>
        <p><r:input /> <r:title /></p>
      </r:options:each>
      <r:submit />
    </r:form>
  </r:unless_submitted>

  <r:if_submitted>
    <table>
      <tr>
        <th>Answer</th>
        <th>Result</th>
      </tr>
      <r:options:each>
        <tr>
          <td><r:title /></td>
          <td><r:number_responses /> (<r:percent_responses />)</td>
        </tr>
      </r:options:each>
    </table>
  </r:if_submitted>
</r:poll>