 					</tr>
 					<tr>
 						<td><b>Name:</b></td>
-						<td><input type="text" name="name" value="#getFileFromPath(path)#" size="50" style="width:350px;" class="formField" disabled></td>
+						<td><input type="text" name="name" value="#getFileFromPath(path)#" size="50" style="width:270px;" class="formField" disabled>
+							<cfif allowedToEditPages>
+								<a href="index.cfm?event=ehSite.doLoadAccountPage&account=#account#&page=#pageName#.xml"><img src="images/page_edit.png" align="absmiddle" border="0"> Edit Page</a>
+							</cfif>
+						</td>
 					</tr>
 					<tr>
 						<td><b>Type:</b></td>

<cfparam name="request.requestState.pageName" default="">
<cfparam name="request.requestState.hpRoot" default="/Home">
<cfparam name="request.requestState.path" default="">

<cfset account = request.requestState.account>
<cfset pageName = request.requestState.pageName>

			arrayAppend(aPagesSorted, aPages[i].href);
		}
		arraySort(aPagesSorted,"textnocase","asc");
	}	
	
	
	// check if the user is allowed to edit pages
	stAccessMap = oUser.getAccessMap();
	allowedToEditPages = stAccessMap.pages;
</cfscript>

<cfquery name="qryAccounts" dbtype="query">
