Project

General

Profile

« Previous | Next » 

Revision 765b79f9

Added by Sander van Leeuwen over 10 years ago

Tweak vpn_ipsec_keys layout

- Better name for 'edit user' button
- Wrap action buttons
- Sprinkle some clears in CSS for table container and forms (self-clearing with overflow:hidden)

Refs. #22

View differences:

usr/local/www/bootstrap/css/pfSense.css
51 51
	margin-bottom: 20px;
52 52
}
53 53

  
54
/** Content structure */
55
.table-responsive {
56
	clear: both;
57
}
58

  
59
.form-horizontal {
60
	margin-bottom: 20px;
61
	overflow: hidden;
62
}
63

  
64
.action-buttons {
65
	text-align: right;
66
	margin-bottom: 20px;
67
}
68

  
54 69
/** Form validation */
55 70
.input-errors ul {
56 71
	margin-top: 20px;
......
77 92
	margin-left: 10px;
78 93
}
79 94

  
95
/** Form tweaks */
80 96
form .btn + .btn {
81 97
	margin-left: 5px;
82 98
}
usr/local/www/vpn_ipsec_keys.php
3 3
	vpn_ipsec_keys.php
4 4
	part of m0n0wall (http://m0n0.ch/wall)
5 5
	part of pfSense
6
	
6

  
7 7
	Copyright (C) 2003-2005 Manuel Kasper <mk@neon1.net>.
8 8
	Copyright (C) 2013-2015 Electric Sheep Fencing, LP
9 9
	All rights reserved.
10
	
10

  
11 11
	Redistribution and use in source and binary forms, with or without
12 12
	modification, are permitted provided that the following conditions are met:
13
	
13

  
14 14
	1. Redistributions of source code must retain the above copyright notice,
15 15
	   this list of conditions and the following disclaimer.
16
	
16

  
17 17
	2. Redistributions in binary form must reproduce the above copyright
18 18
	   notice, this list of conditions and the following disclaimer in the
19 19
	   documentation and/or other materials provided with the distribution.
20
	
20

  
21 21
	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
22 22
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
23 23
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
......
82 82

  
83 83
?>
84 84

  
85
<?php 
85
<?php
86 86
if ($savemsg)
87 87
	print_info_box($savemsg);
88 88
if (is_subsystem_dirty('ipsec'))
......
133 133
					<?=htmlspecialchars($secretent['pre-shared-key'])?>
134 134
				</td>
135 135
				<td>
136
					<?php // TODO: this was a post. Why? ?>
137
					<a class="btn btn-primary btn-xs" href="system_usermanager.php?act=edit&amp;userid=<?=$secretent['id']?>">edit</a>
136
					<a class="btn btn-primary btn-xs" href="system_usermanager.php?act=edit&amp;userid=<?=$secretent['id']?>">edit user</a>
138 137
				</td>
139 138
			</tr>
140 139
<?php $i++; endforeach; ?>
......
165 164
	</table>
166 165
</div>
167 166

  
168
<a class="btn btn-success" href="vpn_ipsec_keys_edit.php"><?=gettext("add key")?></a>
167
<nav class="action-buttons">
168
	<a class="btn btn-success" href="vpn_ipsec_keys_edit.php"><?=gettext("add key")?></a>
169
</nav>
169 170

  
170 171
<div class="alert alert-info">
171 172
	<strong><?=gettext("Note"); ?>:</strong><br />

Also available in: Unified diff