## -*- coding: utf_8 -*-
## fcnames.html
<%def name = "renderFCNames(fcNames,objType,labelText,isEditable,bAppendInput,preListMarkup,postListMarkup,bAddParticipantIcon=False)">
<%
from fcp import fcpdefs
from fcp import mlitem
from fcutils import util
bAppendInput = bAppendInput if bAppendInput else False
preListMarkup = preListMarkup if preListMarkup else ''
postListMarkup = postListMarkup if postListMarkup else ''
numFCNames = len(fcNames) if fcNames else 0
fcNameID = 'fcfid-'+str(objType)
nameClass = ''
if objType==fcpdefs.dFromName:
nameClass = 'fromnames'
elif objType==fcpdefs.dToName:
nameClass = 'tonames'
elif objType==fcpdefs.dCopyName:
nameClass = 'ccnames'
elif objType==fcpdefs.dBCCNames:
nameClass = 'bccnames'
labelClass= 'fc-form-row multiline' if isEditable or numFCNames > 1 else 'fc-form-row'
def renderParticipantIcon(fcName,index):
if bAddParticipantIcon:
iconPath = fcpdefs.MeetingStateIconPathFromObjAttrs(fcName.ObjAttributes())
if iconPath and len(iconPath):
context.write('')
return ""
%>
%if numFCNames > 0 or isEditable: