Improved group-list

This commit is contained in:
Andrea Bollini
2013-10-11 11:06:04 +02:00
parent 010d84db0e
commit 1612022e72

View File

@@ -55,13 +55,13 @@
<input class="btn btn-success" type="submit" name="submit_add" value="<fmt:message key="jsp.tools.group-list.create.button"/>" />
</div>
</form>
<br/>
<table class="table" summary="Group data display table">
<tr>
<th class="oddRowOddCol"><strong><fmt:message key="jsp.tools.group-list.id" /></strong></th>
<th class="oddRowEvenCol"><strong><fmt:message key="jsp.tools.group-list.name"/></strong></th>
<th class="oddRowOddCol">&nbsp;</th>
<th class="oddRowEvenCol">&nbsp;</th>
</tr>
<%
@@ -82,21 +82,18 @@
%>
<form method="post" action="">
<input type="hidden" name="group_id" value="<%= groups[i].getID() %>"/>
<input class="btn btn-default col-md-4" type="submit" name="submit_edit" value="<fmt:message key="jsp.tools.general.edit"/>" />
<input class="btn btn-default col-md-6" type="submit" name="submit_edit" value="<fmt:message key="jsp.tools.general.edit"/>" />
</form>
<%
}
%>
</td>
<td class="<%= row %>RowEvenCol">
<%
// no delete button for group Anonymous 0 and Administrator 1 to avoid accidental deletion
if (groups[i].getID() > 1 )
{
%>
<form method="post" action="">
<input type="hidden" name="group_id" value="<%= groups[i].getID() %>"/>
<input class="btn btn-danger col-md-4" type="submit" name="submit_group_delete" value="<fmt:message key="jsp.tools.general.delete"/>" />
<input class="btn btn-danger col-md-6" type="submit" name="submit_group_delete" value="<fmt:message key="jsp.tools.general.delete"/>" />
<%
}
%>