Files
ofbiz-plugins/projectmgr/template/project/summary/NoteInfo.ftl
T
Jacques Le Roux 8697d231bc Improved: Missing uiLabel for Create New on CMS Content Find Screen
(OFBIZ-11005)

Thank to Pawan Verma who spotted also ProjectMgrNotesCreateNew and removed it from 
NoteInfo.ftl. I also removed ProjectMgrNotesCreateNew from ProjectMgrUiLabels.xml

Thanks: Pawan Verma 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1858517 13f79535-47bb-0310-9956-ffa450edef68
2019-05-02 06:49:50 +00:00

144 lines
7.2 KiB
Plaintext

<#--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.
-->
<div class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">&nbsp;${uiLabelMap.WorkEffortNotes}</li>
<#--if project?has_content>
<li><a href="<@ofbizUrl>newNotesForProject?workEffortId=${project.workEffortId!}&amp;showForm=Y</@ofbizUrl>">${uiLabelMap.CommonCreate}</a></li>
<#else>
<li><a href="<@ofbizUrl>newNotesForTask?workEffortId=${task.workEffortId!}&amp;showForm=Y</@ofbizUrl>">${uiLabelMap.CommonCreate}</a></li>
</#if-->
</ul>
<br class="clear" />
</div>
<div class="screenlet-body">
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
<tr>
<td>
<#if workEffortNoteandDetails?has_content>
<table width="100%" border="0" cellpadding="1">
<#list workEffortNoteandDetails as note>
<tr>
<td valign="top" width="35%">
<div>&nbsp;<b>${uiLabelMap.CommonBy}: </b>${Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, note.noteParty, true)}</div>
<div>&nbsp;<b>${uiLabelMap.CommonAt}: </b>${Static["org.apache.ofbiz.base.util.UtilDateTime"].timeStampToString(note.noteDateTime!,"dd-MM-yyyy HH:mm",Static["java.util.TimeZone"].getDefault(),context.get("locale"))}</div>
</td>
<td valign="top" width="50%">
<div>${note.noteInfo!}</div>
</td>
<td align="right" valign="top" width="15%">
<#if "N" == note.internalNote!>
<div>${uiLabelMap.ProjectMgrPrintableNote}</div>
<#if project?has_content>
<form name="updateProjectNoteForPublicNote" method="post" action="<@ofbizUrl>updateProjectNote</@ofbizUrl>">
<input type="hidden" name="workEffortId" value="${project.workEffortId!}" />
<input type="hidden" name="noteId" value="${note.noteId}" />
<input type="hidden" name="internalNote" value="Y" />
<input type="submit" value="${uiLabelMap.OrderNotesPrivate}"/>
</form>
<#else>
<form name="updateTaskNoteSummaryPublicNote" method="post" action="<@ofbizUrl>updateTaskNoteSummary</@ofbizUrl>">
<input type="hidden" name="workEffortId" value="${task.workEffortId!}" />
<input type="hidden" name="noteId" value="${note.noteId}" />
<input type="hidden" name="internalNote" value="Y" />
<input type="submit" value="${uiLabelMap.OrderNotesPrivate}"/>
</form>
</#if>
</#if>
<#if "Y" == note.internalNote!>
<div>${uiLabelMap.OrderNotPrintableNote}</div>
<#if project?has_content>
<form name="updateProjectNoteForPrivateNote" method="post" action="<@ofbizUrl>updateProjectNote</@ofbizUrl>">
<input type="hidden" name="workEffortId" value="${project.workEffortId!}" />
<input type="hidden" name="noteId" value="${note.noteId}" />
<input type="hidden" name="internalNote" value="N" />
<input type="submit" value="${uiLabelMap.OrderNotesPublic}"/>
</form>
<#else>
<form name="updateTaskNoteSummaryPrivateNote" method="post" action="<@ofbizUrl>updateTaskNoteSummary</@ofbizUrl>">
<input type="hidden" name="workEffortId" value="${task.workEffortId!}" />
<input type="hidden" name="noteId" value="${note.noteId}" />
<input type="hidden" name="internalNote" value="N" />
<input type="submit" value="${uiLabelMap.OrderNotesPublic}"/>
</form>
</#if>
</#if>
</td>
</tr>
<#if note_has_next>
<tr><td colspan="3"><hr/></td></tr>
</#if>
</#list>
</table>
<#else>
<#if project?has_content>
<div>&nbsp;${uiLabelMap.ProjectMgrProjectNoNotes}.</div>
<#else>
<div>&nbsp;${uiLabelMap.ProjectMgrTaskNoNotes}.</div>
</#if>
</#if>
</td>
</tr>
</table>
<#if parameters.showForm??>
<div class="screenlet-title-bar">
<ul>
<li class="h3">&nbsp;${uiLabelMap.OrderAddNote}</li>
</ul>
<br class="clear" />
</div>
<div class="screenlet-body">
<form name="createnoteform" method="post"
<#if project?has_content> action="<@ofbizUrl>createNewNotesForProject</@ofbizUrl>"
<#else> action="<@ofbizUrl>createNewNotesForTask</@ofbizUrl>"
</#if>>
<table width="90%" border="0" cellpadding="2" cellspacing="0">
<tr>
<#if project?has_content>
<td><input type="hidden" name="workEffortId" value="${project.workEffortId}" /></td>
<#else>
<td><input type="hidden" name="workEffortId" value="${task.workEffortId}" /></td>
</#if>
</tr>
<tr>
<td width="26%" align="right"><div>${uiLabelMap.OrderNote}</div></td>
<td width="54%">
<textarea name="noteInfo" rows="5" cols="70"></textarea>
</td>
</tr>
<tr>
<td/><td>${uiLabelMap.OrderInternalNote} :
<select name="internalNote" size="1"><option value=""></option><option value="Y" selected>${uiLabelMap.CommonYes}</option><option value="N">${uiLabelMap.CommonNo}</option></select></td>
</tr>
<tr>
<td/><td><i>${uiLabelMap.OrderInternalNoteMessage}</i></td>
</tr>
</table>
<input type="submit" value="${uiLabelMap.CommonSave}"/>
</form>
</div>
</#if>
</div>
</div>