Pessoal,

estou personalizando o visual do portlet de enquete do Plone Popoll e
estou com um problema que não consigo resolver: queria deixar as
opções de voto na mesma linha, e não uma embaixo da outra, como está
padrão no produto.

Já tentei de tudo, align="inline", mudei a classe do bixo e nada...
Como não sou programadora, apenas 'fuçadora', admito que nesta eu não
tenho mais palpites...

Alguém ajuda?

O código do portlet, pra quem não conhece o produto e acha que pode
ajudar, é o seguinte:


---------------------------------------------------
<div metal:define-macro="portlet"
     tal:define="polls python:here.PlonePopoll_getPortletPoll();"
     tal:condition="polls">
  <div class="portlet" id="portlet_popoll"
       tal:define="poll       python: polls[0];
                   object_url python: poll.absolute_url();
                   number     python: poll.getNumber_of_choices();">
    <!--h5>
      <a tal:content="poll/title" 
         tal:attributes="href
python:object_url+'/'+poll.default_view">Poll</a>
    </h5-->
 
   <div class="caixa-enquete">
      <div>
       
        <p>
          <strong tal:content="poll/getQuestion"> Plone Popoll
Question </strong>
        </p>
        <form tal:define="canVote python:here.portal_popoll.canVote(poll)"
              tal:condition="python: not poll.hasVoted() and
poll.isEnabled() and canVote"
              name="results"
              action="" 
              method="post"
              enctype="multipart/form-data"
              tal:attributes="action string:${object_url}/vote" >
          <div tal:repeat="choice poll/getChoices" align=inline>
            <input style="float: right;"
                   class="noborder"
                   name="choices:list"
                   id="#"
                   value="#" 
                   tal:attributes="value repeat/choice/index;
                                   id    string:cb${repeat/choice/index};
                                   type  python:test((number > 1),
'checkbox', 'radio');"/>
            <span tal:define="choice_index repeat/choice/index;"
                  tal:replace="choice">
              Choice
            </span>
          </div>
         
          <input style="float: right;" class="context"
                 type="submit"
                 name="vote"
                 value="Vote"
                 i18n:attributes="value"/>
                 
        </form>
        <div tal:condition="python: poll.hasVoted() or not
poll.isEnabled()"
           cellspacing="0"
           border="0"
           cellpadding="2">
          <div   tal:repeat="choice        python:poll.getResults()">
            <div tal:define="choice_id     python:choice[0];
                         choice_count      python:choice[1];
                         choice_percentage python:'%0.2f'%choice[2];
                         bar_percentage    python:int(choice[2])">
              <img src="bar_1_10.gif" height="10"
                   tal:attributes="width   string:${bar_percentage}" />
              <strong tal:content="string:
${choice_percentage}%">44%</strong>
              <br />
              <span tal:replace="choice_id">Choice 1</span> 
            </div>
          </div>
          <p align="center">
             [
             <a tal:attributes="href
string:${object_url}/plonepopoll_results">Results</a> 
             |
             <a tal:attributes="href
string:${portal_url}/polls_list">Polls</a>
             ]
            <br />
            Votes: <span tal:replace="poll/getVotesCount" />
          </p>
        </div>
      </div>
    </div>
  </div>
  </div>
--------------------------------------------------

sds
Bruna Sodré

Responder a