-<br>
-<h3>
- Topic:<br></h3>
- <form method="post" action="details.php?chan=<?php echo urlencode($channelObj->name); ?>">
- <div class="input-group">
- <input maxlength="360" type="text" class="input-group form-control" name="set_topic" value="<?php echo (isset($channelObj->topic)) ? htmlspecialchars($channelObj->topic) : ""; ?>">
- <div class="input-group-append"><button type="submit" name="update_topic" value="true" class="btn btn-info">Update Topic</button></div></div>
- </form>
-<?php
-if ($topicset)
- Message::Success("The topic for $channelObj->name has been updated to be: \"".htmlspecialchars($channelObj->topic)."\"");
-?>
-<br>
-<div class="row">
- <div class="col-sm-3">
- <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Bans</button>
- <div class="dropdown-menu">
- <a class="dropdown-item" data-toggle="modal" data-target="#add_ban_modal">Add New</a>
- <a class="dropdown-item" data-toggle="modal" data-target="#bans_modal">List</a>
+<!-- Modal for Add Ban -->
+<div class="modal fade" id="ban" tabindex="-1" role="dialog" aria-labelledby="confirmModalCenterTitle" aria-hidden="true">
+ <div class="modal-dialog modal-lg modal-dialog-centered" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+ <h5 class="modal-title" id="myModalLabel">Add New Channel Ban</h5>
+ <div type="button" class="close" data-dismiss="modal" aria-label="Close">
+ <span aria-hidden="true">×</span>
+ </div>
+ </div>
+ <div class="modal-body">
+ <form method="post">
+ <div class="input-group mb-3">
+ <label for="ban_nick">Mask
+ <a href="https://www.unrealircd.org/docs/Extended_bans" target="__blank"><i class="fa fa-info-circle" aria-hidden="true"
+ title="The mask or other value. For example if you are matching a country in 'Ban Type' then you would put the country code as this value. Click to view more information on Extended Bans"
+ ></i></a>
+ <input style="width: 170%;" name="ban_nick" id="ban_nick" class="form-control curvy" type="text"
+ placeholder="nick!user@host or something else"
+ ></label>
+
+ </div>
+ <div class="input-group mb-3">
+ <label for="bantype_action">Ban Action
+ <select class="form-control" name="bantype_sel_action" id="bantype_sel">
+ <option></option>
+ <option>Quiet (Mute)</option>
+ <option>Nick-change</option>
+ <option>Join</option>
+ </select>
+ </label>
+ </div>
+ <div class="input-group mb-3">
+ <label for="bantype_sel_type">Ban Type <small>Leave this blank for a "normal" ban</small>
+ <select class="form-control" name="bantype_sel_type" id="bantype_sel_type">
+ <option></option>
+ <option>Match Account</option>
+ <option>Match Channel</option>
+ <option>Match Country</option>
+ <option>Match OperClass</option>
+ <option>Match RealName / GECOS</option>
+ <option>Match Security Group</option>
+ <option>Match Certificate Fingerprint</option>
+ </select>
+ </label>
+ </div>
+ <div class="input-group mb-3">
+ <label for="bantype_sel_ex">Expiry Date-Time <br><small>Leave blank to mean "Permanent"</small>
+ <input type="datetime-local" name="bantype_sel_ex" id="bantype_sel_ex" class="form-control">
+ </label>
+ </div>
+ </div>
+ <div class="modal-footer">
+ <input type="hidden" id="server" name="add_chban" value="b"></input>
+ <button id="CloseButton" type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
+ <button type="submit" action="post" class="btn btn-danger">Add Channel Ban</button>
+ </form>
+ </div>