zncstrap/modules/send_raw/tmpl/index.tmpl

63 lines
2.1 KiB
Cheetah
Raw Normal View History

2014-02-11 05:44:19 +01:00
<? ADDROW JSLoop HREF=/modfiles/user/send_raw/select.js ?>
<? INC Header.tmpl ?>
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">Send RAW</div>
<div class="panel-body">
2014-05-21 09:41:26 +02:00
<form class="form-horizontal" method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>">
2014-02-11 05:44:19 +01:00
<? INC _csrf_check.tmpl ?>
<h3>Send a raw IRC line</h3>
<hr>
<div class="form-group">
<label for="inputUser" class="col-sm-2 control-label">User:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="user" disabled="disabled" title="To change user, click to Network selector"/>
</div>
</div>
<div class="form-group">
<label for="inputUserNetwork" class="col-sm-2 control-label">User/Network:</label>
<div class="col-sm-10">
<select class="form-control" name="network" id="selectnetwork" onchange="javascript:updateUser()">
<? LOOP UserLoop ?>
<optgroup label="<? VAR Username ?>">
<? LOOP NetworkLoop ?>
<option value="<? VAR Username ?>/<? VAR Network ?>"><? VAR Network ?></option>
<? ENDLOOP ?>
</optgroup>
<? ENDLOOP ?>
</select>
</div>
</div>
<div class="form-group">
<label for="inputSendto" class="col-sm-2 control-label">Send to:</label>
<div class="col-sm-10">
<select class="form-control" name="send_to">
<option value="client"<? IF to_client ?> selected="yes"<? ENDIF ?>>Client</option>
<option value="server"<? IF to_server ?> selected="yes"<? ENDIF ?>>Server</option>
</select>
</div>
</div>
<div class="form-group">
<label for="inputLine" class="col-sm-2 control-label">Line:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="inputLine" name="line" value="<? VAR line ?>">
</div>
</div>
<div class="btn-group pull-right">
<input class="btn btn-danger" type="reset" value="Reset">
<input class="btn btn-success" type="submit" value="Send" />
</div>
</form>
</div>
</div>
</div>
<script type="text/javascript">init();</script>
<? INC Footer.tmpl ?>