<?php $katao_config = $form->getObject() ?>
<div class="content-add01">
	<div class="heading01"><h1>Configuration</h1></div>
</div>

<form action="<?php echo url_for('kataoConfig/update') ?>" method="post" enctype="multipart/form-data">
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          <br /><input type="submit" value="Sauver" /> ou <a href="<?php echo url_for('kataoConfig/index') ?>">annuler</a>
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr valign="top">
	  	<td colspan="2" align="left"><u>Informations SARL</u></td>
	  </tr>
	  <tr valign="top">
        <th align="left"><?php echo $form['katao_member_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['katao_member_id'] ?>
		  <?php echo $form['katao_member_id']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['name']->renderLabel() ?></th>
        <td>
          <?php echo $form['name'] ?>
		  <?php echo $form['name']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['address']->renderLabel() ?></th>
        <td>
          <?php echo $form['address'] ?>
		  <?php echo $form['address']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['phone']->renderLabel() ?></th>
        <td>
          <?php echo $form['phone'] ?>
		  <?php echo $form['phone']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['email']->renderLabel() ?></th>
        <td>
          <?php echo $form['email'] ?>
		  <?php echo $form['email']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['siret_number']->renderLabel() ?></th>
        <td>
          <?php echo $form['siret_number'] ?>
		  <?php echo $form['siret_number']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['tva_number']->renderLabel() ?></th>
        <td>
          <?php echo $form['tva_number'] ?>
		  <?php echo $form['tva_number']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['rcs_number']->renderLabel() ?></th>
        <td>
          <?php echo $form['rcs_number'] ?>
		  <?php echo $form['rcs_number']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['capital']->renderLabel() ?></th>
        <td>
          <?php echo $form['capital'] ?>
		  <?php echo $form['capital']->renderError() ?>
        </td>
      </tr>
	  <tr valign="top">
	  	<td colspan="2" align="left"><br /><u>Codes comptables</u></td>
	  </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['accounting_code_prefix_purchase']->renderLabel() ?></th>
        <td>
          <?php echo $form['accounting_code_prefix_purchase'] ?>
		  <?php echo $form['accounting_code_prefix_purchase']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['accounting_code_prefix_sell']->renderLabel() ?></th>
        <td>
          <?php echo $form['accounting_code_prefix_sell'] ?>
		  <?php echo $form['accounting_code_prefix_sell']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['accounting_code_bank']->renderLabel() ?></th>
        <td>
          <?php echo $form['accounting_code_bank'] ?>
		  <?php echo $form['accounting_code_bank']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['accounting_code_bank_sol']->renderLabel() ?></th>
        <td>
          <?php echo $form['accounting_code_bank_sol'] ?>
		  <?php echo $form['accounting_code_bank_sol']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['accounting_code_credit']->renderLabel() ?></th>
        <td>
          <?php echo $form['accounting_code_credit'] ?>
		  <?php echo $form['accounting_code_credit']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['accounting_code_error_adjustment_positive']->renderLabel() ?></th>
        <td>
          <?php echo $form['accounting_code_error_adjustment_positive'] ?>
		  <?php echo $form['accounting_code_error_adjustment_positive']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['accounting_code_error_adjustment_negative']->renderLabel() ?></th>
        <td>
          <?php echo $form['accounting_code_error_adjustment_negative'] ?>
		  <?php echo $form['accounting_code_error_adjustment_negative']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['accounting_code_discount']->renderLabel() ?></th>
        <td>
          <?php echo $form['accounting_code_discount'] ?>
		  <?php echo $form['accounting_code_discount']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['accounting_code_sol_discount']->renderLabel() ?></th>
        <td>
          <?php echo $form['accounting_code_sol_discount'] ?>
		  <?php echo $form['accounting_code_sol_discount']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['accounting_code_fees_shipping']->renderLabel() ?></th>
        <td>
          <?php echo $form['accounting_code_fees_shipping'] ?>
		  <?php echo $form['accounting_code_fees_shipping']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['accounting_code_fees_billing']->renderLabel() ?></th>
        <td>
          <?php echo $form['accounting_code_fees_billing'] ?>
		  <?php echo $form['accounting_code_fees_billing']->renderError() ?>
        </td>
      </tr>
	  <tr valign="top">
	  	<td colspan="2" align="left"><br /><u>Transactions</u></td>
	  </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['initial_transactions_count']->renderLabel() ?></th>
        <td>
          <?php echo $form['initial_transactions_count'] ?>
		  <?php echo $form['initial_transactions_count']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['initial_transactions_sum']->renderLabel() ?></th>
        <td>
          <?php echo $form['initial_transactions_sum'] ?>
		  <?php echo $form['initial_transactions_sum']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['member_fee']->renderLabel() ?></th>
        <td>
          <?php echo $form['member_fee'] ?>
		  <?php echo $form['member_fee']->renderError() ?>
        </td>
      </tr>
	  <tr valign="top">
	  	<td colspan="2" align="left"><br /><u>Produits</u></td>
	  </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['default_product_margin']->renderLabel() ?></th>
        <td>
          <?php echo $form['default_product_margin'] ?> %
		  <?php echo $form['default_product_margin']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['default_product_sol_percent']->renderLabel() ?></th>
        <td>
          <?php echo $form['default_product_sol_percent'] ?> %
		  <?php echo $form['default_product_sol_percent']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['default_product_picture']->renderLabel() ?></th>
        <td>
          <?php echo $form['default_product_picture'] ?>
		  <?php echo $form['default_product_picture']->renderError() ?>
        </td>
      </tr>
	  <tr valign="top">
	  	<td colspan="2" align="left"><br /><u>Coordonnés bancaires</u></td>
	  </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['bank_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['bank_name'] ?>
		  <?php echo $form['bank_name']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['bank_account']->renderLabel() ?></th>
        <td>
          <?php echo $form['bank_account'] ?>
		  <?php echo $form['bank_account']->renderError() ?>
        </td>
      </tr>
	  <tr valign="top">
	  	<td colspan="2" align="left"><br /><u>Paramètres</u></td>
	  </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['additional_currency_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['additional_currency_name'] ?>
		  <?php echo $form['additional_currency_name']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['mailing_list_email']->renderLabel() ?></th>
        <td>
          <?php echo $form['mailing_list_email'] ?>
		  <?php echo $form['mailing_list_email']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['cart_validation_days_number']->renderLabel() ?></th>
        <td>
          <?php echo $form['cart_validation_days_number'] ?>
		  <?php echo $form['cart_validation_days_number']->renderError() ?>
        </td>
      </tr>
      <tr valign="top">
        <td colspan="2"><i>Délai avant la validation automatique des paniers à la fin de la période de commande (en jours)</i></td>
	  </tr>
      <tr valign="top">
        <th align="left"><?php echo $form['debug_email']->renderLabel() ?></th>
        <td>
          <?php echo $form['debug_email'] ?>
		  <?php echo $form['debug_email']->renderError() ?>

		  <?php echo $form['id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>