mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Reorder template fields
This commit is contained in:
		@@ -13,12 +13,6 @@
 | 
			
		||||
          <small><?php echo _("Enable this option to encrypt traffic by creating a tunnel between RaspAP and configured peers.") ?></small>
 | 
			
		||||
        </p>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="row">
 | 
			
		||||
          <div class="form-group col-xs-3 col-sm-3">
 | 
			
		||||
            <label for="code"><?php echo _("Local Port"); ?></label>
 | 
			
		||||
            <input type="text" class="form-control" name="wg_srvport" value="<?php echo htmlspecialchars($wg_srvport, ENT_QUOTES); ?>" />
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <div class="row">
 | 
			
		||||
          <div class="col-xs-3 col-sm-6">
 | 
			
		||||
@@ -30,14 +24,21 @@
 | 
			
		||||
              <button class="btn btn-sm btn-outline-secondary rounded-right wg-keygen" type="button"><?php echo _("Generate key"); ?></button>
 | 
			
		||||
              <span id="wg-server-pubkey-status" class="input-group-addon check-hidden ml-2 mt-1"><i class="fas fa-check"></i></span>
 | 
			
		||||
            </div>
 | 
			
		||||
            <input type="hidden" name="wg_srvprivkey" value="" />
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <div class="row">
 | 
			
		||||
          <div class="form-group col-xs-3 col-sm-3">
 | 
			
		||||
            <label for="code"><?php echo _("Local Port"); ?></label>
 | 
			
		||||
            <input type="text" class="form-control" name="wg_srvport" value="<?php echo htmlspecialchars($wg_srvport, ENT_QUOTES); ?>" />
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <input type="hidden" name="wg_privkey" value="<?php echo htmlspecialchars($wg_srvprivkey, ENT_QUOTES); ?>" />
 | 
			
		||||
 | 
			
		||||
        <div class="row">
 | 
			
		||||
          <div class="form-group col-md-6">
 | 
			
		||||
            <label for="code"><?php echo _("IP Address"); ?></label>
 | 
			
		||||
            <input type="text" class="form-control" name="wg_ipaddress" value="<?php echo htmlspecialchars($wg_srvipaddress, ENT_QUOTES); ?>" />
 | 
			
		||||
            <input type="text" class="form-control" name="wg_srvipaddress" value="<?php echo htmlspecialchars($wg_srvipaddress, ENT_QUOTES); ?>" />
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -13,6 +13,20 @@
 | 
			
		||||
        </div>
 | 
			
		||||
     </div>
 | 
			
		||||
 | 
			
		||||
    <div class="row">
 | 
			
		||||
      <div class="col-xs-3 col-sm-6 mt-3">
 | 
			
		||||
          <label for="code"><?php echo _("Peer public key"); ?></label>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="input-group col-md-12">
 | 
			
		||||
        <input type="text" class="form-control" name="wg-peer" id="wg-peerpubkey" value="<?php echo htmlspecialchars($wg_peerpubkey, ENT_QUOTES); ?>" />
 | 
			
		||||
        <div class="input-group-append">
 | 
			
		||||
          <button class="btn btn-sm btn-outline-secondary rounded-right wg-keygen" type="button"><?php echo _("Generate key"); ?></button>
 | 
			
		||||
          <span id="wg-peer-pubkey-status" class="input-group-addon check-hidden ml-2 mt-1"><i class="fas fa-check"></i></span>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    <div class="row">
 | 
			
		||||
      <div class="form-group col-xs-3 col-sm-6 mt-3">
 | 
			
		||||
        <label for="code"><?php echo _("Endpoint address"); ?></label>
 | 
			
		||||
@@ -34,20 +48,7 @@
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="row">
 | 
			
		||||
      <div class="col-xs-3 col-sm-6">
 | 
			
		||||
          <label for="code"><?php echo _("Peer public key"); ?></label>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="input-group col-md-12 mb-3">
 | 
			
		||||
        <input type="text" class="form-control" name="wg-peer" id="wg-peerpubkey" value="<?php echo htmlspecialchars($wg_peerpubkey, ENT_QUOTES); ?>" />
 | 
			
		||||
        <div class="input-group-append">
 | 
			
		||||
          <button class="btn btn-sm btn-outline-secondary rounded-right wg-keygen" type="button"><?php echo _("Generate key"); ?></button>
 | 
			
		||||
          <span id="wg-peer-pubkey-status" class="input-group-addon check-hidden ml-2 mt-1"><i class="fas fa-check"></i></span>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
  </div><!-- /.row -->
 | 
			
		||||
</div><!-- /.tab-pane | peers tab -->
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user