<commit_before><script src="<?= base_url('assets/js/associated/associated.js') ?>" charset="utf-8"></script>

<div class="well well-lg container">
  <div class="page-header">
    <h2>Alterar Associado [<strong><?=$associate->name_associate?></strong>]</h2>
  </div>
  <div class="row col-sm-12">
    <form method="POST" action="<?= base_url('associated/update'); ?>">


      <div class="col-sm-8">
        <div class="form-group row">
          <label for="id_associate" class="col-sm-3 col-form-label">ID</label>
          <div class="col-sm-8">
            <input type="number" readonly
            class="form-control"
            id="id_associate" name="id_associate"
            value="<?= set_value('id_associate', isset($associate->id_associate) ? $associate->id_associate:''); ?>">
          </div>
        </div>

        <div class="form-group row">
          <?= form_error('uuid_associate','<div class="row"><div class="alert alert-danger alert-dismissible col-md-8 col-md-offset-1" role="alert">', '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div></div>') ?>

          <label for="uuid_associate" class="col-sm-3 col-form-label">UUID</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" onchange="close('#uuidError')"
            id="uuid_associate" name="uuid_associate"
            value="<?= set_value('uuid_associate', isset($associate->uuid_associate) ? $associate->uuid_associate:''); ?>"
            placeholder="ID Universal Único"
            required />
          </div>
        </div>

        <div class="form-group row">
          <?= form_error('name_associate','<div class="row"><div class="alert alert-danger alert-dismissible col-md-8 col-md-offset-1" role="alert">', '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div></div>') ?>

          <label for="name_associate" class="col-sm-3 col-form-label">Nome</label>
          <div class="col-sm-8">
            <input type="text"
            class="form-control"
            onchange="close('#nameError')"
            id="name_associate" name="name_associate"
            value="<?= set_value('name_associate', isset($associate->name_associate) ? $associate->name_associate:''); ?>"
            placeholder="Nome Associado">
          </div>
        </div>

        <div class="form-group row">
          <?= form_error('birth_date','<div class="row"><div class="alert alert-danger alert-dismissible col-md-8 col-md-offset-1" role="alert">', '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div></div>') ?>

         <label for="birth_date" class="col-sm-3 col-form-label">Aniversário</label>
         <div class="col-sm-8">
          <input type="date"
          class="form-control"
          onchange="close('#birthError')"
          id="birth_date" name="birth_date"
          value="<?= set_value('birth_date', isset($associate->birth_date) ? $associate->birth_date:''); ?>">
        </div>
      </div>

      <div class="form-group row">
        <?= form_error('rg','<div class="row"><div class="alert alert-danger alert-dismissible col-md-8 col-md-offset-1" role="alert">', '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div></div>') ?>

      <label for="rg" class="col-sm-3 col-form-label">RG</label>
      <div class="col-sm-8">
        <input type="number"
        class="form-control"
        id="rg" name="rg"
        placeholder="RG"
        onchange="close('#rgError')"
        value="<?= set_value('rg', isset($associate->rg) ? $associate->rg:''); ?>">
      </div>
    </div>

    <div class="form-group row">
      <?= form_error('cpf','<div class="row"><div class="alert alert-danger alert-dismissible col-md-8 col-md-offset-1" role="alert">', '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div></div>') ?>

      <label for="cpf" class="col-sm-3 col-form-label">CPF</label>
      <div class="col-sm-8">
        <input type="number"
        class="form-control"
        onchange="close('#cpf')"
        id="cpf" name="cpf"
        placeholder="CPF"
        value="<?= set_value('cpf', isset($associate->cpf) ? $associate->cpf:''); ?>">
      </div>
    </div>

    <div class="form-group row">
      <label for="id_city" class="col-sm-3 col-form-label">Cidade</label>
      <div class="col-sm-6">
        <select required class="form-control" name="id_city" id="id_city">
            <option value="" disabled selected>Selecione uma cidade</option>
            <?php foreach ($cidades as $cidade) { ?>
            <option value="<?= $cidade['id_city'] ?>">
                <?= $cidade['name_city'] ?>
            </option>
            <?php } ?>
        </select>
      </div>
    </div>

    <div class="form-group row">
      <label for="street" class="col-sm-3 col-form-label">CEP</label>
      <div class="col-sm-8">
        <input type="text" class="form-control" id="cep" name="cep" placeholder="Rua" value="<?= set_value('cep', isset($associate->cep) ? $associate->cep:''); ?>">
      </div>
    </div>

    <div class="form-group row">
      <label for="street" class="col-sm-3 col-form-label">Rua</label>
      <div class="col-sm-8"><commit_msg>Update updateAssociated.php<commit_after><script src="<?= base_url('assets/js/associated/associated.js') ?>" charset="utf-8"></script>

<div class="well well-lg container">
  <div class="page-header">
    <h2>Alterar Associado [<strong><?=$associate->name_associate?></strong>]</h2>
  </div>
  <div class="row col-sm-12">
    <form method="POST" action="<?= base_url('associated/update'); ?>">


      <div class="col-sm-8">
        <div class="form-group row">
          <label for="id_associate" class="col-sm-3 col-form-label">ID</label>
          <div class="col-sm-8">
            <input type="number" readonly
            class="form-control"
            id="id_associate" name="id_associate"
            value="<?= set_value('id_associate', isset($associate->id_associate) ? $associate->id_associate:''); ?>">
          </div>
        </div>

        <div class="form-group row">
          <?= form_error('uuid_associate','<div class="row"><div class="alert alert-danger alert-dismissible col-md-8 col-md-offset-1" role="alert">', '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div></div>') ?>

          <label for="uuid_associate" class="col-sm-3 col-form-label">UUID</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" onchange="close('#uuidError')"
            id="uuid_associate" name="uuid_associate"
            value="<?= set_value('uuid_associate', isset($associate->uuid_associate) ? $associate->uuid_associate:''); ?>"
            placeholder="ID Universal Único"
            required />
          </div>
        </div>

        <div class="form-group row">
          <?= form_error('name_associate','<div class="row"><div class="alert alert-danger alert-dismissible col-md-8 col-md-offset-1" role="alert">', '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div></div>') ?>

          <label for="name_associate" class="col-sm-3 col-form-label">Nome</label>
          <div class="col-sm-8">
            <input type="text"
            class="form-control"
            onchange="close('#nameError')"
            id="name_associate" name="name_associate"
            value="<?= set_value('name_associate', isset($associate->name_associate) ? $associate->name_associate:''); ?>"
            placeholder="Nome Associado">
          </div>
        </div>

        <div class="form-group row">
          <?= form_error('birth_date','<div class="row"><div class="alert alert-danger alert-dismissible col-md-8 col-md-offset-1" role="alert">', '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div></div>') ?>

         <label for="birth_date" class="col-sm-3 col-form-label">Aniversário</label>
         <div class="col-sm-8">
          <input type="date"
          class="form-control"
          onchange="close('#birthError')"
          id="birth_date" name="birth_date"
          value="<?= set_value('birth_date', isset($associate->birth_date) ? $associate->birth_date:''); ?>">
        </div>
      </div>

      <div class="form-group row">
        <?= form_error('rg','<div class="row"><div class="alert alert-danger alert-dismissible col-md-8 col-md-offset-1" role="alert">', '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div></div>') ?>

      <label for="rg" class="col-sm-3 col-form-label">RG</label>
      <div class="col-sm-8">
        <input type="number"
        class="form-control"
        id="rg" name="rg"
        placeholder="RG"
        onchange="close('#rgError')"
        value="<?= set_value('rg', isset($associate->rg) ? $associate->rg:''); ?>">
      </div>
    </div>

    <div class="form-group row">
      <?= form_error('cpf','<div class="row"><div class="alert alert-danger alert-dismissible col-md-8 col-md-offset-1" role="alert">', '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div></div>') ?>

      <label for="cpf" class="col-sm-3 col-form-label">CPF</label>
      <div class="col-sm-8">
        <input type="number"
        class="form-control"
        onchange="close('#cpf')"
        id="cpf" name="cpf"
        placeholder="CPF"
        value="<?= set_value('cpf', isset($associate->cpf) ? $associate->cpf:''); ?>">
      </div>
    </div>

    <div class="form-group row">
      <label for="id_city" class="col-sm-3 col-form-label">Cidade</label>
      <div class="col-sm-6">
        <select required class="form-control" name="id_city" id="id_city">
            <option value="" disabled selected>Selecione uma cidade</option>
            <?php foreach ($cidades as $cidade) { ?>
            <option value="<?= $cidade['id_city'] ?>">
                <?= $cidade['name_city'] ?>
            </option>
            <?php } ?>
        </select>
      </div>
    </div>

    <div class="form-group row">
      <label for="street" class="col-sm-3 col-form-label">CEP</label>
      <div class="col-sm-8">
        <input type="text" class="form-control" id="cep" name="cep" placeholder="Cep" value="<?= set_value('cep', isset($associate->cep) ? $associate->cep:''); ?>">
      </div>
    </div>

    <div class="form-group row">
      <label for="street" class="col-sm-3 col-form-label">Rua</label>
      <div class="col-sm-8">
{'fraction_non_alphanumeric': 0.21074154852780808, 'fraction_numerical': 0.0061795710650672485, 'mean_word_length': 3.1294559099437147, 'pattern_counts': {'":': 0, '<': 275, '<?xml version=': 0, '>': 305, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3219509', 'n_tokens_mistral': 3575, 'n_tokens_neox': 3520, 'n_words': 582}