Commit ec86345d authored by Franco Fichtner's avatar Franco Fichtner

interfaces: unify release/renew/connect/disconnect button style

parent 4760cfda
...@@ -119,7 +119,7 @@ include("head.inc"); ...@@ -119,7 +119,7 @@ include("head.inc");
<input type="hidden" name="status" value="<?php echo $ifinfo['dhcp6link']; ?>" /> <input type="hidden" name="status" value="<?php echo $ifinfo['dhcp6link']; ?>" />
<?=htmlspecialchars($ifinfo['dhcp6link']);?>&nbsp;&nbsp; <?=htmlspecialchars($ifinfo['dhcp6link']);?>&nbsp;&nbsp;
<?php $action = ($ifinfo['dhcp6link'] == "up" ? gettext("Release") : gettext("Renew")); ?> <?php $action = ($ifinfo['dhcp6link'] == "up" ? gettext("Release") : gettext("Renew")); ?>
<input type="submit" name="submit" class="formbtn" value="<?php echo $action; ?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?php echo $action; ?>" />
</form> </form>
</td> </td>
</tr> </tr>
...@@ -132,7 +132,7 @@ include("head.inc"); ...@@ -132,7 +132,7 @@ include("head.inc");
<input type="hidden" name="status" value="<?php echo $ifinfo['pppoelink']; ?>" /> <input type="hidden" name="status" value="<?php echo $ifinfo['pppoelink']; ?>" />
<?=htmlspecialchars($ifinfo['pppoelink']);?>&nbsp;&nbsp; <?=htmlspecialchars($ifinfo['pppoelink']);?>&nbsp;&nbsp;
<?php $action = ($ifinfo['pppoelink'] == "up" ? gettext("Disconnect") : gettext("Connect")); ?> <?php $action = ($ifinfo['pppoelink'] == "up" ? gettext("Disconnect") : gettext("Connect")); ?>
<input type="submit" name="submit" class="formbtn" value="<?php echo $action; ?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?php echo $action; ?>" />
</form> </form>
</td> </td>
</tr> </tr>
...@@ -145,7 +145,7 @@ include("head.inc"); ...@@ -145,7 +145,7 @@ include("head.inc");
<input type="hidden" name="status" value="<?php echo $ifinfo['pptplink']; ?>" /> <input type="hidden" name="status" value="<?php echo $ifinfo['pptplink']; ?>" />
<?=htmlspecialchars($ifinfo['pptplink']);?>&nbsp;&nbsp; <?=htmlspecialchars($ifinfo['pptplink']);?>&nbsp;&nbsp;
<?php $action = ($ifinfo['pptplink'] == "up" ? gettext("Disconnect") : gettext("Connect")); ?> <?php $action = ($ifinfo['pptplink'] == "up" ? gettext("Disconnect") : gettext("Connect")); ?>
<input type="submit" name="submit" class="formbtn" value="<?php echo $action; ?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?php echo $action; ?>" />
</form> </form>
</td> </td>
</tr> </tr>
...@@ -158,7 +158,7 @@ include("head.inc"); ...@@ -158,7 +158,7 @@ include("head.inc");
<input type="hidden" name="status" value="<?php echo $ifinfo['l2tplink']; ?>" /> <input type="hidden" name="status" value="<?php echo $ifinfo['l2tplink']; ?>" />
<?=htmlspecialchars($ifinfo['l2tplink']);?>&nbsp;&nbsp; <?=htmlspecialchars($ifinfo['l2tplink']);?>&nbsp;&nbsp;
<?php $action = ($ifinfo['l2tplink'] == "up" ? gettext("Disconnect") : gettext("Connect")); ?> <?php $action = ($ifinfo['l2tplink'] == "up" ? gettext("Disconnect") : gettext("Connect")); ?>
<input type="submit" name="submit" class="formbtn" value="<?php echo $action; ?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?php echo $action; ?>" />
</form> </form>
</td> </td>
</tr> </tr>
...@@ -171,10 +171,10 @@ include("head.inc"); ...@@ -171,10 +171,10 @@ include("head.inc");
<input type="hidden" name="status" value="<?php echo $ifinfo['ppplink']; ?>" /> <input type="hidden" name="status" value="<?php echo $ifinfo['ppplink']; ?>" />
<?=htmlspecialchars($ifinfo['pppinfo']);?> <?=htmlspecialchars($ifinfo['pppinfo']);?>
<?php if ($ifinfo['ppplink'] == "up"): ?> <?php if ($ifinfo['ppplink'] == "up"): ?>
<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Disconnect"); ?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?php echo gettext("Disconnect"); ?>" />
<?php else: ?> <?php else: ?>
<?php if (!$ifinfo['nodevice']): ?> <?php if (!$ifinfo['nodevice']): ?>
<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Connect"); ?>" /> <input type="submit" name="submit" class="btn btn-primary btn-xs" value="<?php echo gettext("Connect"); ?>" />
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</form> </form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment