mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Restylish edit group
This commit is contained in:
@@ -108,7 +108,7 @@ public class SelectEPersonTag extends TagSupport
|
||||
HttpServletRequest req = (HttpServletRequest) pageContext
|
||||
.getRequest();
|
||||
|
||||
out.print("<table><tr><td colspan=\"2\" align=\"center\"><select multiple=\"multiple\" name=\"eperson_id\" size=\"");
|
||||
out.print("<select class=\"form-control\" multiple=\"multiple\" name=\"eperson_id\" size=\"");
|
||||
out.print(multiple ? "10" : "1");
|
||||
out.println("\">");
|
||||
// ensure that if no eperson is selected that a blank option is displayed - xhtml compliance
|
||||
@@ -129,37 +129,27 @@ public class SelectEPersonTag extends TagSupport
|
||||
}
|
||||
// add blank option value if no person selected to ensure that code is xhtml compliant
|
||||
//out.print("<option/>");
|
||||
out.print("</select></td>");
|
||||
|
||||
if (multiple)
|
||||
{
|
||||
out.print("</tr><tr><td width=\"50%\" align=\"center\">");
|
||||
}
|
||||
else
|
||||
{
|
||||
out.print("<td>");
|
||||
}
|
||||
|
||||
out.print("</select>");
|
||||
out.print("<br/><div class=\"row container\">");
|
||||
String p = (multiple ?
|
||||
LocaleSupport.getLocalizedMessage(pageContext,
|
||||
"org.dspace.app.webui.jsptag.SelectEPersonTag.selectPeople")
|
||||
: LocaleSupport.getLocalizedMessage(pageContext,
|
||||
"org.dspace.app.webui.jsptag.SelectEPersonTag.selectPerson") );
|
||||
out.print("<input type=\"button\" value=\"" + p
|
||||
+ "\" onclick=\"javascript:popup_window('"
|
||||
+ req.getContextPath() + "/tools/eperson-list?multiple="
|
||||
+ multiple + "', 'eperson_popup');\" />");
|
||||
|
||||
if (multiple)
|
||||
{
|
||||
out.print("</td><td width=\"50%\" align=\"center\">");
|
||||
out.print("<input type=\"button\" value=\""
|
||||
out.print("<input class=\"btn btn-danger\" type=\"button\" value=\""
|
||||
+ LocaleSupport.getLocalizedMessage(pageContext,
|
||||
"org.dspace.app.webui.jsptag.SelectEPersonTag.removeSelected")
|
||||
+ "\" onclick=\"javascript:removeSelected(window.document.epersongroup.eperson_id);\"/>");
|
||||
}
|
||||
|
||||
out.println("</td></tr></table>");
|
||||
|
||||
out.print("<input class=\"btn btn-primary pull-right\" type=\"button\" value=\"" + p
|
||||
+ "\" onclick=\"javascript:popup_window('"
|
||||
+ req.getContextPath() + "/tools/eperson-list?multiple="
|
||||
+ multiple + "', 'eperson_popup');\" />");
|
||||
out.print("</div>");
|
||||
}
|
||||
catch (IOException ie)
|
||||
{
|
||||
|
@@ -104,7 +104,7 @@ public class SelectGroupTag extends TagSupport
|
||||
JspWriter out = pageContext.getOut();
|
||||
HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
|
||||
|
||||
out.print("<table><tr><td colspan=\"2\" align=\"center\"><select multiple=\"multiple\" name=\"group_ids\" size=\"");
|
||||
out.print("<select class=\"form-control\" multiple=\"multiple\" name=\"group_ids\" size=\"");
|
||||
out.print(multiple ? "10" : "1");
|
||||
out.println("\">");
|
||||
|
||||
@@ -124,37 +124,27 @@ public class SelectGroupTag extends TagSupport
|
||||
}
|
||||
}
|
||||
|
||||
out.print("</select></td>");
|
||||
|
||||
if (multiple)
|
||||
{
|
||||
out.print("</tr><tr><td width=\"50%\" align=\"center\">");
|
||||
}
|
||||
else
|
||||
{
|
||||
out.print("<td>");
|
||||
}
|
||||
|
||||
out.print("</select>");
|
||||
out.print("<br/><div class=\"row container\">");
|
||||
String p = (multiple ?
|
||||
LocaleSupport.getLocalizedMessage(pageContext,
|
||||
"org.dspace.app.webui.jsptag.SelectGroupTag.selectGroups")
|
||||
: LocaleSupport.getLocalizedMessage(pageContext,
|
||||
"org.dspace.app.webui.jsptag.SelectGroupTag.selectGroup") );
|
||||
out.print("<input type=\"button\" value=\"" + p
|
||||
+ "\" onclick=\"javascript:popup_window('"
|
||||
+ req.getContextPath() + "/tools/group-select-list?multiple="
|
||||
+ multiple + "', 'group_popup');\" />");
|
||||
|
||||
if (multiple)
|
||||
|
||||
if (multiple)
|
||||
{
|
||||
out.print("</td><td width=\"50%\" align=\"center\">");
|
||||
out.print("<input type=\"button\" value=\""
|
||||
out.print("<input class=\"btn btn-danger\" type=\"button\" value=\""
|
||||
+ LocaleSupport.getLocalizedMessage(pageContext,
|
||||
"org.dspace.app.webui.jsptag.SelectGroupTag.removeSelected")
|
||||
+ "\" onclick=\"javascript:removeSelected(window.document.epersongroup.group_ids);\"/>");
|
||||
}
|
||||
|
||||
out.println("</td></tr></table>");
|
||||
|
||||
out.print("<input class=\"btn btn-primary pull-right\" type=\"button\" value=\"" + p
|
||||
+ "\" onclick=\"javascript:popup_window('"
|
||||
+ req.getContextPath() + "/tools/group-select-list?multiple="
|
||||
+ multiple + "', 'group_popup');\" />");
|
||||
out.print("</div>");
|
||||
}
|
||||
catch (IOException ie)
|
||||
{
|
||||
|
@@ -42,44 +42,40 @@
|
||||
request.setAttribute("LanguageSwitch", "hide");
|
||||
%>
|
||||
|
||||
<dspace:layout titlekey="jsp.tools.group-edit.title"
|
||||
<dspace:layout style="submission" titlekey="jsp.tools.group-edit.title"
|
||||
navbar="admin"
|
||||
locbar="link"
|
||||
parenttitlekey="jsp.administer"
|
||||
parentlink="/dspace-admin"
|
||||
nocache="true">
|
||||
|
||||
<table width="95%">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<h1><fmt:message key="jsp.tools.group-edit.title"/> : <%=group.getName()%> (id: <%=group.getID()%>)</h1>
|
||||
</td>
|
||||
<td align="right" class="standard">
|
||||
<h1><fmt:message key="jsp.tools.group-edit.title"/> : <%=group.getName()%> (id: <%=group.getID()%>)
|
||||
<dspace:popup page="<%= LocaleSupport.getLocalizedMessage(pageContext, \"help.collection-admin\") +\"#groupeditor\"%>"><fmt:message key="jsp.help"/></dspace:popup>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<center>
|
||||
</h1>
|
||||
<form name="epersongroup" method="post" action="">
|
||||
<p><label for="tgroup_name"><fmt:message key="jsp.tools.group-edit.name"/></label><input name="group_name" id="tgroup_name" value="<%= Utils.addEntities(group.getName()) %>"/></p>
|
||||
<h3><fmt:message key="jsp.tools.group-edit.heading"/></h3>
|
||||
<div class="row"><label for="tgroup_name" class="col-md-2">
|
||||
<fmt:message key="jsp.tools.group-edit.name"/></label>
|
||||
<span class="col-md-10">
|
||||
<input class="form-control" name="group_name" id="tgroup_name" value="<%= Utils.addEntities(group.getName()) %>"/>
|
||||
</span>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="alert alert-warning"><fmt:message key="jsp.tools.group-edit.heading"/></div>
|
||||
|
||||
<input type="hidden" name="group_id" value="<%=group.getID()%>"/>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><strong><fmt:message key="jsp.tools.group-edit.eperson"/></strong><br/>
|
||||
<dspace:selecteperson multiple="true" selected="<%= epeople %>"/>
|
||||
</td>
|
||||
<td align="center"><strong><fmt:message key="jsp.tools.group-edit.group"/></strong><br/>
|
||||
<dspace:selectgroup multiple="true" selected="<%= groups %>"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
|
||||
<p><input type="submit" name="submit_group_update" value="<fmt:message key="jsp.tools.group-edit.update.button"/>" onclick="javascript:finishEPerson();finishGroups();"/></p>
|
||||
<input type="hidden" name="group_id" value="<%=group.getID()%>"/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<label for="eperson_id"><fmt:message key="jsp.tools.group-edit.eperson"/></label>
|
||||
<dspace:selecteperson multiple="true" selected="<%= epeople %>"/>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label for="eperson_id"><fmt:message key="jsp.tools.group-edit.group"/></label>
|
||||
<dspace:selectgroup multiple="true" selected="<%= groups %>"/>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="row"><input class="btn btn-success col-md-2 col-md-offset-5" type="submit" name="submit_group_update" value="<fmt:message key="jsp.tools.group-edit.update.button"/>" onclick="javascript:finishEPerson();finishGroups();"/></div>
|
||||
</form>
|
||||
</center>
|
||||
</dspace:layout>
|
||||
|
Reference in New Issue
Block a user