<div class="content-add01">
	<div class="heading01"><h1>Répartir des <?php echo wpConfig::getAdditionalCurrencyName() ?></h1></div>
</div>

<?php use_helper('Validation') ?>

<form action="<?php echo url_for('@katao_member_deposit_dispatch_sols_update') ?>" method="post">
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          <br /><input type="submit" value="Sauver" /> ou <a href="<?php echo url_for('kataoMemberDeposit/index') ?>">annuler</a>
        </td>
      </tr>
    </tfoot>
    <tbody>
      <tr valign="top">
        <th align="left"><?php echo label_for('amount', 'Montant') ?></th>
        <td>
        	<?php echo input_tag('amount', $sf_request->getParameter('amount')) ?>
        	<?php echo form_error('amount') ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left" rowspan="3"><label>Bénéficiaire(s)</label></th>
        <td>
        	<?php echo radiobutton_tag('type', 'member', 'member' == $sf_request->getParameter('type')) ?>
        	<?php echo label_for('type_member', 'L\'adhérent : ') ?>
        	<?php echo select_tag('member', options_for_select(KataoMemberPeer::getAllGroupedByNode(), false, array('include_custom' => '&mdash;&nbsp;choisir&nbsp;&mdash;')), array('onchange' => '$("type_member").checked = true; $("node").value = "";')) ?>
        	<?php echo form_error('member') ?>
		</td>
      </tr>
      <tr valign="top">
        <td>
        	<?php echo radiobutton_tag('type', 'node', 'node' == $sf_request->getParameter('type')) ?>
        	<?php echo label_for('type_node', 'Tous les adhérents du noeud : ') ?>
        	<?php echo select_tag('node', options_for_select(KataoNodePeer::getAllArray(), false, array('include_custom' => '&mdash;&nbsp;choisir&nbsp;&mdash;')), array('onchange' => '$("type_node").checked = true; $("member").value = "";')) ?>
        	<?php echo form_error('node') ?>
		</td>
      </tr>
      <tr valign="top">
        <td>
        	<?php echo radiobutton_tag('type', 'all', 'all' == $sf_request->getParameter('type'), array('onclick' => '$("member").value = ""; $("node").value = "";')) ?>
        	<?php echo label_for('type_all', 'Tous les adhérents du réseau') ?>
        	<?php echo form_error('all') ?>
        	<?php echo form_error('type') ?>
		</td>
      </tr>
    </tbody>
  </table>
</form>