1
0

commands.tpl 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. {{ define "commands" }}
  2. {{ template "header" .}}
  3. <div id="wrapper">
  4. {{ template "navigation" .}}
  5. <!-- Page Content -->
  6. <div id="page-wrapper">
  7. <div class="row">
  8. <div class="col-lg-12">
  9. <h1 class="page-header">{{.Title}}</h1>
  10. </div>
  11. <!-- /.col-lg-12 -->
  12. </div>
  13. <!-- /.row -->
  14. <div class="row">
  15. <div class="col-lg-12">
  16. <div class="panel panel-default">
  17. <div class="panel-heading">
  18. {{ .PanelHeading }}
  19. </div>
  20. <div class="panel-body">
  21. <form role="form" action="{{.URLPathPrefix}}/admin/commands/exec/" method="post">
  22. <div class="row">
  23. <div class="col-lg-6">
  24. <div class="form-group">
  25. <label>Enter your command PermURL</label>
  26. <select class="form-control" name="PermURL" id="PermURL" size="1">
  27. <option value="0" selected="selected" disabled="disabled">Please choose an agent</option>
  28. {{.AvatarPermURLOptions}}
  29. </select>
  30. </div> <!-- /.form-group -->
  31. </div> <!-- /.col-lg.6 -->
  32. <div class="col-lg-6">
  33. <div class="form-group">
  34. <label>Commands</label>
  35. <select class="form-control" name="command" id="command" size="1">
  36. <option value="0" selected="selected" disabled="disabled">Please choose</option>
  37. <optgroup label="Get and Set">
  38. <option value="osNpcGetRot">osNpcGetRot</option>
  39. <option value="osNpcSetRot">osNpcSetRot</option>
  40. <option value="osNpcGetPos">osNpcGetPos</option>
  41. <option value="osNpcGetOwner">osNpcGetOwner</option>
  42. </optgroup>
  43. <optgroup label="Movement">
  44. <option value="osNpcMoveToTarget">osNpcMoveToTarget</option>
  45. <option value="osNpcStopMoveToTarget">osNpcStopMoveToTarget</option>
  46. </optgroup>
  47. <optgroup label="Sitting and Standing">
  48. <option value="osNpcSit">osNpcSit</option>
  49. <option value="osNpcStand">osNpcStand</option>
  50. </optgroup>
  51. <optgroup label="Communication">
  52. <option value="osNpcSay">osNpcSay</option>
  53. <option value="osNpcShout">osNpcShout</option>
  54. <option value="osNpcWhisper">osNpcWhisper</option>
  55. </optgroup>
  56. <optgroup label="Animations">
  57. <option value="osNpcPlayAnimation">osNpcPlayAnimation</option>
  58. <option value="osNpcStopAnimation">osNpcStopAnimation</option>
  59. </optgroup>
  60. <optgroup label="Appearance">
  61. <option value="osNpcLoadAppearance">osNpcLoadAppearance</option>
  62. </optgroup>
  63. <optgroup label="Touch">
  64. <option value="osNpcTouch">osNpcTouch</option>
  65. </optgroup>
  66. <optgroup label="Engine Get Values">
  67. <option value="getMoney">getMoney</option>
  68. <option value="getHappiness">getHappiness</option>
  69. <option value="getEnergy">getEnergy</option>
  70. <option value="getHome">getHome</option>
  71. <option value="getClass">getClass</option>
  72. <option value="getSubType">getSubType</option>
  73. </optgroup>
  74. <optgroup label="Engine Set Values">
  75. <option value="setMoney">setMoney</option>
  76. <option value="setHappiness">setHappiness</option>
  77. <option value="setEnergy">setEnergy</option>
  78. <option value="setHome">setHome</option>
  79. <option value="setClass">setClass</option>
  80. <option value="setSubType">setSubType</option>
  81. </optgroup>
  82. <optgroup label="Testing">
  83. <option value="ping">ping</option>
  84. </optgroup>
  85. </select>
  86. </div> <!-- /.form-group -->
  87. </div> <!-- /.col-lg.6 -->
  88. </div> <!-- /.row -->
  89. <div class="row">
  90. <div class="col-lg-6">
  91. <div class="form-group">
  92. <label>Parameter #1 Type</label>
  93. <select class="form-control" name="param1" id="param1" size="1">
  94. <option value="string" selected="selected">string</option>
  95. <option value="key">key</option>
  96. <option value="int">int</option>
  97. <option value="float">float</option>
  98. <option value="vector">vector</option>
  99. </select>
  100. </div> <!-- /.form-group -->
  101. </div> <!-- /.col-lg.6 -->
  102. <div class="col-lg-6">
  103. <div class="form-group input-group">
  104. <label>Parameter #1 Data</label>
  105. <input class="form-control" type="text" name="data1" id="data1" placeholder="Enter data">
  106. </div> <!-- /.form-group -->
  107. </div> <!-- /.col-lg.6 -->
  108. </div> <!-- /.row -->
  109. <div class="row">
  110. <div class="col-lg-6">
  111. <div class="form-group">
  112. <label>Parameter #2 Type</label>
  113. <select class="form-control" name="param2" id="param2" size="1">
  114. <option value="string" selected="selected">string</option>
  115. <option value="key">key</option>
  116. <option value="int">int</option>
  117. <option value="float">float</option>
  118. <option value="vector">vector</option>
  119. </select>
  120. </div> <!-- /.form-group -->
  121. </div> <!-- /.col-lg.6 -->
  122. <div class="col-lg-6">
  123. <div class="form-group input-group">
  124. <label>Parameter #2 Data</label>
  125. <input class="form-control" type="text" name="data2" id="data2" placeholder="Enter data">
  126. </div> <!-- /.form-group -->
  127. </div> <!-- /.col-lg.6 -->
  128. </div> <!-- /.row -->
  129. <button type="submit" class="btn btn-default">Submit</button>
  130. <button type="reset" class="btn btn-default">Reset</button>
  131. </form>
  132. </div>
  133. <!-- /.panel-body -->
  134. </div>
  135. <!-- /.panel -->
  136. </div>
  137. <!-- /.col-lg-12 -->
  138. </div>
  139. <!-- /.row -->
  140. </div>
  141. <!-- /#page-wrapper -->
  142. </div>
  143. <!-- /#wrapper -->
  144. {{ template "footer" .}}
  145. {{ end }}