示例#1
0
function admission_display($row)
{
    $lvl = RegistrationLevel::cached_find_by_db_name($row->admission_level);
    $level = reg_level_with_price($lvl, $row->override_price);
    $badge = badge_label($row->badge_type);
    return "{$level} {$badge}";
}
示例#2
0
?>
  </div>

  <div class="form-group col-md-6 <?php 
echo $form->error_on("admission_level") ? "has-error" : "";
?>
">
    <?php 
echo label_tag("admission_level", "Admission Level");
?>
    <select class="form-control" id="admission_level" name="admission_level">
      <?php 
foreach ($reg_levels as $level) {
    ?>
        <?php 
    echo option_tag(reg_level_with_price($level), @$form->params["admission_level"], $level->db_name, ["data-includes-tshirt" => $level->includes_tshirt]);
    ?>
      <?php 
}
?>
    </select>
    <?php 
echo error_display($form, "admission_level");
?>
  </div>
</div>

<div class="row">
  <div class="form-group col-md-7 <?php 
echo $form->error_on("legal_name") ? "has-error" : "";
?>