📄 portlet-info-form.vm
字号:
#*
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*#
<script>
<!--
function validateModifyPortlet() {
var result = true;
var f = document.ModifyPortletForm;
var portletType = f.portlet_type.value;
var className = f.class_name.value;
if((portletType == "instance" || portletType == "abstract") && className.length == 0) {
result = false;
alert("$l10n.REGISTRY_EDITOR_PORTLET_CLASSNAME_REQUIRED");
}
return result;
}
-->
</script>
<table width="50%" bgcolor="#ffffff" cellpadding="5">
<form name="ModifyPortletForm" method="post" action="$jslink.getPaneByName("PortletForm").setAction("portlets.PortletUpdateAction")" onSubmit="return validateModifyPortlet();">
<input type="hidden" name="mode" value="update"/>
<input type="hidden" name="tab" value="info"/>
<tr>
#formReadOnlyCell ($l10n.REGISTRY_EDITOR_PORTLET_NAME "portlet_name" $!entry.Name)
</tr>
<tr>
#if(! $entry.parent || $entry.parent.length() == 0)
#set($entryParent = "None")
#else
#set($entryParent = $entry.parent)
#end
#formReadOnlyCell ($l10n.REGISTRY_EDITOR_PORTLET_PARENT "parent" "$!entryParent")
</tr>
<tr>
#formReadOnlyCell($l10n.REGISTRY_EDITOR_PORTLET_TYPE "portlet_type" "$!entry.type")
</tr>
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">$l10n.REGISTRY_EDITOR_PORTLET_CLASSNAME</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<input type="text" size="50" name="class_name" value="$!entry.classname"/>
</font>
</td>
</tr>
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">$l10n.REGISTRY_EDITOR_PORTLET_TITLE</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<input type="text" size="50" name="title" value="$!entry.title">
</font>
</td>
</tr>
<!--Consider making text area-->
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">$l10n.REGISTRY_EDITOR_PORTLET_DESCRIPTION</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<textarea rows="10" cols="50" size="50" name="description">$!entry.description.trim()</textarea>
</font>
</td>
</tr>
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">$l10n.REGISTRY_EDITOR_PORTLET_URL</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<input type="text" size="50" name="url" value="$!entry.URL">
</font>
</td>
</tr>
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">$l10n.REGISTRY_EDITOR_PORTLET_IMAGE</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<input type="text" size="50" name="image" value="$!entry.metaInfo.image">
</font>
</td>
</tr>
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">$l10n.REGISTRY_EDITOR_PORTLET_SECURITYREF</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<select name="security_ref">
<option value="">None</option>
#foreach($security in $securitys)
<option value="$security.name" #if($security.name == $entry.getSecurityRef().parent) selected="true" #end>$security.name</option>
#end
</select>
</font>
</td>
</tr>
<!--Boolean checkboxes-->
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">$l10n.REGISTRY_EDITOR_PORTLET_HIDDEN</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<input type="checkbox" size="30" name="is_hidden" #if($!entry.isHidden()) checked="true" #end />
</font>
</td>
</tr>
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">$l10n.REGISTRY_EDITOR_PORTLET_APPLICATION</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<input type="checkbox" size="30" name="is_application" #if($!entry.isApplication()) checked="true" #end />
</font>
</td>
</tr>
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">$l10n.REGISTRY_EDITOR_PORTLET_CACHEDONURL</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<input type="checkbox" size="30" name="is_cached_on_url" #if($!entry.isCachedOnURL()) checked="true" #end />
</font>
</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="eventSubmit_doUpdate" value="$l10n.REGISTRY_EDITOR_PORTLET_UPDATE"/></td>
</tr>
</form>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -