settings.html.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <h2><?= T_("Wifi Hotspot Configuration") ?></h2>
  2. <hr />
  3. <div class="row">
  4. <div class="col-sm-offset-2 col-sm-8">
  5. <form method="post" enctype="multipart/form-data" action="?/settings" class="form-horizontal" role="form">
  6. <input type="hidden" name="_method" value="put" />
  7. <div class="panel panel-default">
  8. <div class="panel-heading">
  9. <h3 class="panel-title"><?= T_("Wifi") ?></h3>
  10. </div>
  11. <div style="padding: 14px 14px 0 10px">
  12. <div class="form-group">
  13. <label for="wifi_ssid" class="col-sm-3 control-label"><?= T_('SSID') ?></label>
  14. <div class="col-sm-9">
  15. <input type="text" class="form-control" name="wifi_ssid" id="wifi_ssid" placeholder="myNeutralNetwork" value="<?= $wifi_ssid ?>" />
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label for="wifi_passphrase" class="col-sm-3 control-label"><?= T_('Passphrase (WPA2)') ?></label>
  20. <div class="col-sm-9">
  21. <input type="text" data-toggle="tooltip" data-title="<?= T_('At least 8 characters') ?>" class="form-control" name="wifi_passphrase" id="wifi_passphrase" placeholder="VhegT8oev0jZI" value="<?= $wifi_passphrase ?>" />
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label for="wifi_channel" class="col-sm-3 control-label"><?= T_('Channel') ?></label>
  26. <div class="col-sm-9 input-group-btn">
  27. <div class="input-group">
  28. <input type="text" name="wifi_channel" id="wifi_channel" value="<?= $wifi_channel ?>" style="display: none" />
  29. <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><?= $wifi_channel ?> <span class="caret"></span></button>
  30. <ul class="dropdown-menu dropdown-menu-left" role="menu">
  31. <li <?= $wifi_channel == 1 ? 'class="active"' : '' ?>><a href="#">1</a></li>
  32. <li <?= $wifi_channel == 2 ? 'class="active"' : '' ?>><a href="#">2</a></li>
  33. <li <?= $wifi_channel == 3 ? 'class="active"' : '' ?>><a href="#">3</a></li>
  34. <li <?= $wifi_channel == 4 ? 'class="active"' : '' ?>><a href="#">4</a></li>
  35. <li <?= $wifi_channel == 5 ? 'class="active"' : '' ?>><a href="#">5</a></li>
  36. <li <?= $wifi_channel == 6 ? 'class="active"' : '' ?>><a href="#">6</a></li>
  37. <li <?= $wifi_channel == 7 ? 'class="active"' : '' ?>><a href="#">7</a></li>
  38. <li <?= $wifi_channel == 8 ? 'class="active"' : '' ?>><a href="#">8</a></li>
  39. <li <?= $wifi_channel == 9 ? 'class="active"' : '' ?>><a href="#">9</a></li>
  40. <li <?= $wifi_channel == 10 ? 'class="active"' : '' ?>><a href="#">10</a></li>
  41. <li <?= $wifi_channel == 11 ? 'class="active"' : '' ?>><a href="#">11</a></li>
  42. </ul>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label for="wifi_device" class="col-sm-3 control-label"><?= T_('Device') ?></label>
  48. <div class="col-sm-9 input-group-btn">
  49. <div class="input-group">
  50. <input type="text" name="wifi_device" id="wifi_device" value="<?= $wifi_device ?>" style="display: none" />
  51. <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><?= $wifi_device ?> <span class="caret"></span></button>
  52. <ul class="dropdown-menu dropdown-menu-left" role="menu">
  53. <?= $wifi_device_list ?>
  54. </ul>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="panel panel-success">
  61. <div class="panel-heading">
  62. <h3 class="panel-title" data-toggle="tooltip" data-title="<?= T_('Real Internet') ?>"><?= T_("IPv6") ?></h3>
  63. </div>
  64. <div style="padding: 14px 14px 0 10px">
  65. <div class="form-group">
  66. <label for="ip6_net" class="col-sm-3 control-label"><?= T_('Delegated IPv6 subnet') ?></label>
  67. <div class="col-sm-9">
  68. <input type="text" class="form-control" name="ip6_net" id="ip6_net" placeholder="2001:db8:42::/48" value="<?= $ip6_net ?>" />
  69. </div>
  70. </div>
  71. <div class="form-group">
  72. <label for="ip6_dns0" class="col-sm-3 control-label"><?= T_('Frist DNS resolver') ?></label>
  73. <div class="col-sm-9">
  74. <input type="text" class="form-control" name="ip6_dns0" id="ip6_dns0" placeholder="2001:913::8" value="<?= $ip6_dns0 ?>" />
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label for="ip6_dns1" class="col-sm-3 control-label"><?= T_('Second DNS resolver') ?></label>
  79. <div class="col-sm-9">
  80. <input type="text" class="form-control" name="ip6_dns1" id="ip6_dns1" placeholder="2001:910:800::40" value="<?= $ip6_dns1 ?>" />
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="panel panel-danger">
  86. <div class="panel-heading">
  87. <h3 class="panel-title" data-toggle="tooltip" data-title="<?= T_('Old Internet') ?>"><?= T_("IPv4") ?></h3>
  88. </div>
  89. <div style="padding: 14px 14px 0 10px">
  90. <div class="form-group">
  91. <label for="ip4_nat_prefix" class="col-sm-3 control-label"><?= T_('NAT prefix (/24)') ?></label>
  92. <div class="col-sm-9">
  93. <input type="text" class="form-control" name="ip4_nat_prefix" id="ip4_nat_prefix" placeholder="10.0.242" value="<?= $ip4_nat_prefix ?>" />
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label for="ip4_dns0" class="col-sm-3 control-label"><?= T_('First DNS resolver') ?></label>
  98. <div class="col-sm-9">
  99. <input type="text" class="form-control" name="ip4_dns0" id="ip4_dns0" placeholder="80.67.188.188" value="<?= $ip4_dns0 ?>" />
  100. </div>
  101. </div>
  102. <div class="form-group">
  103. <label for="ip4_dns1" class="col-sm-3 control-label"><?= T_('Second DNS resolver') ?></label>
  104. <div class="col-sm-9">
  105. <input type="text" class="form-control" name="ip4_dns1" id="ip4_dns1" placeholder="80.67.169.12" value="<?= $ip4_dns1 ?>" />
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <div style="text-align: center">
  112. <button type="submit" class="btn btn-default" data-toggle="tooltip" data-title="<?= T_('Reloading may take a few minutes. Be patient.') ?>"><?= T_('Save and reload') ?></button>
  113. </div>
  114. </div>
  115. </form>
  116. </div>
  117. </div>