<?php

$this->show('codeshare/codeshare_header.php');
?>
<div class="row">
  <div class="col-md-12">
    <h3>Edit Airline <?php echo $codeshare->name; ?> </h3>
    <form method="post" enctype="multipart/form-data" action="<?php echo SITE_URL; ?>/admin/index.php/CodeShare_admin/editairline_save/<?php echo $codeshare->id; ?>">
      <div class="form-group">
        <div class="col-md-5">
          <label for="airline_name">
            Name
          </label>
          <input class="form-control" type="text" name="airline_name" value="<?php echo $codeshare->name; ?>" placeholder="Enter the name of your CodeShare partner" required="yes">
        </div>

        <div class="col-md-5">
          <label for="airline_name">
            ICAO Code (3 Letter)
          </label>
          <input class="form-control" type="text" name="icao" placeholder="ABC" value="<?php echo $codeshare->icao; ?>" required="yes">
        </div>

        <div class="col-md-5">
          <label for="airline_name">
            Airline Logo
          </label>
          <img src="<?php echo $codeshare->image; ?>" style="height: 50px; width: auto;" />
          <input class="form-control" type="file" name="logo" value="<?php echo $codeshare->logo; ?>">
        </div>

        <div class="col-md-5">

          <label for="airline_name">
            <br> <br>CodeShare Status   &nbsp;
          </label>
          <div class="btn-group" data-toggle="buttons">
            <label class="btn btn-primary active">
              <input type="radio" name="status" id="1" checked> Active
            </label>
            <label class="btn btn-primary">
              <input type="radio" name="status" id="0"> Inactive
            </label>
          </div>
        </div>


        </div>


        <div class="col-md-12">
          <hr>

          <input type="submit" class="btn btn-success" name="Submit" value="Submit">
          <input type="reset" class="btn btn-warning" name="Reset Form" value="Reset Form">
        </div>

    </form>
  </div>
</div>
