<?php include_once '../../../../_includes/framework.php'; require_admin(); if (!isset($form)) { $form = new BlacklistForm(["id" => @$_GET['id']]); } $types = BlacklistType::all(); ?> <input type="hidden" name="_form_class" value="<?php echo get_class($form); ?> "> <input type="hidden" name="_form_file" value="<?php echo basename(__FILE__); ?> "> <input type="hidden" name="id" value="<?php echo $form->id(); ?> "> <div class="row"> <div class="form-group col-sm-6 <?php echo $form->error_on("badge_name") ? "has-error" : ""; ?> "> <?php echo label_tag("badge_name", "Badge Name"); ?> <?php
?> "> <?php echo label_tag("blacklist_type", "Blacklist Type"); ?> <div class="col-sm-12"> <div class="radio"> <label> <?php echo radio_tag($form, "blacklist_type", ""); ?> <span class="label label-default">None</span> </label> </div> <?php foreach (BlacklistType::all() as $type) { ?> <div class="radio"> <label> <?php echo radio_tag($form, "blacklist_type", $type->db_name); ?> <span class="label label-<?php echo $type->alert_color; ?> "><?php echo $type->alert_title; ?> </span> </label> </div>