NIHVIVO-2280: Worked on markup and css for account management templates

This commit is contained in:
manolobevia 2011-05-09 20:11:09 +00:00
parent 9f91be45e1
commit 99bf50e075

View file

@ -2,111 +2,88 @@
<#-- Template for displaying list of user accounts --> <#-- Template for displaying list of user accounts -->
<h2> <form method="POST" action="${formUrl}">
Accounts <h3>Account | <input type="submit" name="add" class="submit" value="Add new account" /></h3>
</h2>
<div style="border: solid">
<form method="POST" action="${formUrl}">
<input type="submit" name="add" value="Add new account" />
<!-- When this is clicked, all other fields are ignored. --> <!-- When this is clicked, all other fields are ignored. -->
<input type="submit" name="delete" value="Delete selected accounts" /> <section class="account-feedback">
<!-- When this is clicked, the checkboxes are noticed and all other fields are ignored. --> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <a hrf="#">Maecenas dui erat</a>, dapibus non vehicula at, tristique eu sem. Suspendisse ligula felis, mollis vitae elementum eget, semper a nisl.</p>
<br> </section>
current page: <input type="text" name="pageIndex" value="${page.current}" />
<br>
<section id="filter-roles">
<select name="roleFilterUri" id="">
<option value="" <#if roleFilterUri = "">selected</#if> >Filter by roles</option>
<#list roles as role>
<option value="${role.uri}" <#if roleFilterUri = role.uri>selected</#if> >${role.label}</option>
</#list>
<!-- <!--
When roleFilterUri or searchTerm changes, When roleFilterUri or searchTerm changes,
pageIndex should be set to 1. When any of these changes (including pageIndex), the form pageIndex should be set to 1. When any of these changes (including pageIndex), the form
should be submitted. should be submitted.
--> -->
show <input type="text" name="accountsPerPage" value="${accountsPerPage}" /> accounts per page
<!-- When accountsPerPage changes,
set pageIndex to 1
submit the form (submit action is "list") -->
<br>
sort order:
<!-- Manolo: I don't know the right way to handle these links in the column headers. -->
<#assign directions = ["ASC", "DESC"]>
<select name="orderDirection" >
<#list directions as direction>
<option value="${direction}" <#if orderDirection = direction>selected</#if> >${direction}</option>
</#list>
</select> </select>
<!-- When orderDirection changes, </section>
set pageIndex to 1
submit the form (submit action is "list") -->
<br>
sort field: <section id="search-accounts">
<!-- Manolo: I don't know the right way to handle these links in the column headers. --> <input type="text" name="" />
<#assign fields = ["email", "firstName", "lastName", "status", "count"]> <input class="submit" type="submit" value="Search accounts"/>
<select name="orderField" > <!--
<#list fields as field> When searchTerm changes,
<option value="${field}" <#if orderField = field>selected</#if> >${field}</option>
</#list>
</select>
<!-- When orderField changes,
set pageIndex to 1
set orderDirection to "ASC"
submit the form (submit action is "list") -->
<br>
search term: <input type="text" name="searchTerm" value="${searchTerm}" />
<!-- When searchTerm changes,
set pageIndex to 1 set pageIndex to 1
set orderDirection to "ASC" set orderDirection to "ASC"
set orderField to "email" set orderField to "email"
submit the form (submit action is "list") --> submit the form (submit action is "list")
<br> -->
</section>
<select name="roleFilterUri"> <section class="accounts">
<option value="" <#if roleFilterUri = "">selected</#if> >Filter by roles</option> <input type="submit" name="delete" class="submit delete-account" value="Delete" />
<#list roles as role> <!-- When this is clicked, the checkboxes are noticed and all other fields are ignored. -->
<option value="${role.uri}" <#if roleFilterUri = role.uri>selected</#if> >${role.label}</option>
</#list> <nav class="display-tools">
</select> <span>| <a href="#">n</a> accounts | </span>
<!-- When searchTerm changes,
Show
<select name="" id="">
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="All">All</option>
<!--
When accountsPerPage changes,
set pageIndex to 1 set pageIndex to 1
set orderDirection to "ASC" submit the form (submit action is "list")
set orderField to "email" -->
submit the form (submit action is "list") --> </select>
<br>
<input type="submit" name="list" value="Refresh page" /> accounts per page |
</form>
</div>
<div style="border: solid">
Current page: ${page.current}
<br> Last page: ${page.last}
<#if page.next?has_content>
<br> Next page: ${page.next}
<!-- only present if current page is not last page. -->
</#if>
<#if page.previous?has_content> <#if page.previous?has_content>
<br> Previous page: ${page.previous} <a href="${page.previous}">Previous</a> <!-- only present if current page is not 1.-->
<!-- only present if current page is not 1. -->
</#if> </#if>
</div> ${page.current} of ${page.last}
<#if page.next?has_content>
<a href="${page.next}">Next</a><!-- only present if current page is not last page.-->
</#if>
</nav>
</section>
<div style="border: solid"> <table id="account">
<table style="border: solid"> <caption>Account Management</caption>
<thead>
<tr> <tr>
<th>Email Address</th> <th scope="col"><div><input type="checkbox" name="" id="">Email Address<span></span></div></th>
<th>First Name</th> <th scope="col"><div>First name<span></span></div></th>
<th>Last Name</th> <th scope="col"><div>Last Name<span></span></div></th>
<th>Status</th> <th scope="col"><div>Status<span></span></div></th>
<th>Roles</th> <th scope="col"><div>Roles<span></span></div></th>
<th>Login Count</th> <th scope="col"><div>Login Count<span></span></div></th>
</tr> </tr>
</thead>
<tbody>
<#list accounts as account> <#list accounts as account>
<tr> <tr>
<td> <td>
@ -127,8 +104,79 @@
<td>${account.loginCount}</td> <td>${account.loginCount}</td>
</tr> </tr>
</#list> </#list>
</tbody>
</table> </table>
<section class="accounts">
<input type="submit" name="delete" class="submit delete-account" value="Delete" />
<!-- When this is clicked, the checkboxes are noticed and all other fields are ignored. -->
<nav class="display-tools">
<span>| <a href="#">n</a> accounts | </span>
Show
<select name="" id="">
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="All">All</option>
<!--
When accountsPerPage changes,
set pageIndex to 1
submit the form (submit action is "list")
-->
</select>
accounts per page |
<#if page.previous?has_content>
<a href="${page.previous}">Previous</a> <!-- only present if current page is not 1.-->
</#if>
${page.current} of ${page.last}
<#if page.next?has_content>
<a href="${page.next}">Next</a><!-- only present if current page is not last page.-->
</#if>
</nav>
</section>
<#--link on user's email address currently does nothing-->
current page: <input type="text" name="pageIndex" value="${page.current}" />
<br />
sort order:
<!-- Manolo: I don't know the right way to handle these links in the column headers. -->
<#assign directions = ["ASC", "DESC"]>
<select name="orderDirection" >
<#list directions as direction>
<option value="${direction}" <#if orderDirection = direction>selected</#if> >${direction}</option>
</#list>
</select>
<!-- When orderDirection changes,
set pageIndex to 1
submit the form (submit action is "list") -->
<br />
sort field:
<!-- Manolo: I don't know the right way to handle these links in the column headers. -->
<#assign fields = ["email", "firstName", "lastName", "status", "count"]>
<select name="orderField" >
<#list fields as field>
<option value="${field}" <#if orderField = field>selected</#if> >${field}</option>
</#list>
</select>
<!-- When orderField changes,
set pageIndex to 1
set orderDirection to "ASC"
submit the form (submit action is "list") -->
<br />
show <input type="text" name="accountsPerPage" value="${accountsPerPage}" /> accounts per page
<!-- When accountsPerPage changes,
set pageIndex to 1
submit the form (submit action is "list") -->
<br> <br>
link on user's email address currently does nothing <input type="submit" name="list" value="Refresh page" />
</div> </form>