<?php
header('Content-type: text/html; charset=ISO-8859-1');

$id = (isset($_POST['id_acao'])) ? $_POST['id_acao'] : '';
$RdmAcao = RdmAcao::model()->findByPk($id);
$index = (isset($_POST['index'])) ? $_POST['index'] : 0;
?>
<div class="clear"></div>
<div class="acoes" id_acao="<?php echo $id; ?>">
    <input name="id_acao[<?php echo $index; ?>][]" type="hidden" value="<?php echo $id; ?>" />

    <h1><span class="number-acao"></span> &nbsp;Ações</h1>
    <a href="javascript:void(0);" class="excluir-acoes">Excluir Ação</a>
    <div class="clear"></div>
    <div class="row-3">
        <label>O que <span class="required">*</span></label>
        <textarea name="oque[<?php echo $index; ?>][]" class="validate[required]"><?php echo isset($RdmAcao->RDA_O_QUE) ? $RdmAcao->RDA_O_QU : ''; ?></textarea></div><!-- row -->
    <div class="row-3">
        <label>Quem <span class="required">*</span></label>
        <textarea name="quem[<?php echo $index; ?>][]" class="validate[required]"><?php echo isset($RdmAcao->RDA_QUEM) ? $RdmAcao->RDA_QUEM : ''; ?></textarea></div><!-- row -->
    <div class="row-3">
        <label>Quando <span class="required">*</span></label>
        <textarea name="quando[<?php echo $index; ?>][]" class="validate[required]"><?php echo isset($RdmAcao->RDA_QUANDO) ? $RdmAcao->RDA_QUAN : ''; ?></textarea></div><!-- row -->
    <div class="clear"></div>
    <div class="row-3">
        <label>Por quê <span class="required">*</span></label>
        <textarea name="porque[<?php echo $index; ?>][]" class="validate[required]"><?php echo isset($RdmAcao->RDA_POR_QUE) ? $RdmAcao->RDA_POR_ : ''; ?></textarea></div><!-- row -->
    <div class="row-3">
        <label>Como <span class="required">*</span></label>
        <textarea name="como[<?php echo $index; ?>][]" class="validate[required]"><?php echo isset($RdmAcao->RDA_COMO) ? $RdmAcao->RDA_COMO : ''; ?></textarea></div><!-- row -->
    <div class="row-3">
        <label>Onde <span class="required">*</span></label>
        <textarea name="onde[<?php echo $index; ?>][]" class="validate[required]"><?php echo isset($RdmAcao->RDA_ONDE) ? $RdmAcao->RDA_ONDE : ''; ?></textarea></div><!-- row -->
    <div class="clear"></div>
</div>