Browse Source

Added cancel button to edit user and group, reverted to normal size buttons

Enrico Berti 13 years ago
parent
commit
2637ac658a

+ 4 - 3
apps/useradmin/src/useradmin/templates/edit_group.mako

@@ -59,14 +59,15 @@ ${layout.menubar(section='groups')}
         </fieldset>
 		<div class="form-actions">
 			% if name:
-				<input type="submit" class="btn btn-large btn-primary" value="Update group"/>
+				<input type="submit" class="btn btn-primary" value="Update group"/>
 			% else:
 				% if ldap:
-					<input type="submit" class="btn btn-large btn-primary" value="Add/Sync group"/>
+					<input type="submit" class="btn btn-primary" value="Add/Sync group"/>
 				% else:
-					<input type="submit" class="btn btn-large btn-primary" value="Add group"/>
+					<input type="submit" class="btn btn-primary" value="Add group"/>
 				% endif
 			% endif
+			<a href="/useradmin/groups" class="btn">Cancel</a>
 		</div>
 	</form>
 

+ 4 - 3
apps/useradmin/src/useradmin/templates/edit_user.mako

@@ -56,14 +56,15 @@ ${layout.menubar(section='users')}
 		</fieldset>
 		<div class="form-actions">
 			% if username:
-				<input type="submit" class="btn btn-large btn-primary" value="Update user"/>
+				<input type="submit" class="btn btn-primary" value="Update user"/>
 			% else:
 				% if ldap:
-					<input type="submit" class="btn btn-large btn-primary" value="Add/Sync user"/>
+					<input type="submit" class="btn btn-primary" value="Add/Sync user"/>
 				% else:
-					<input type="submit" class="btn btn-large btn-primary" value="Add user"/>
+					<input type="submit" class="btn btn-primary" value="Add user"/>
 				% endif
 			% endif
+			<a href="/useradmin/users" class="btn">Cancel</a>
 		</div>
 	</form>
 </div>