您可以自訂HTML程式碼和CSS檔案,為AEM Forms應用程式提供獨特的組織特定外觀和感覺。 例如,您可以變更工作或「起點」的背景顏色和高度。 以下範例提供變更的指示:
開啟您的專案。
Capture.xcodeproj
MWSWindows.sln
。導覽至範本檔案夾。
開啟template.html
檔案進行編輯。
找到下列字串:
<%if ( (task.description !== "") && (task.description !== null) && (typeof task.description !== null) && (typeof task.description !== 'undefined') ) {%>
<div class="description_details">
<%= task.description %>
</div>
<%} else
將其更換為<%
。
在template.html
檔案中找到下列程式碼:
<ul id="task_menu_list">
<li class="approve" title="<%= task.availableCommands.directCommands[0]%>" data-routename="<%= task.availableCommands.directCommands[0]%>">
<%= task.availableCommands.directCommands[0]%>
</li>
<li class="reject last" title="<%= task.availableCommands.directCommands[1]%>" data-routename="<%= task.availableCommands.directCommands[1]%>">
<%= task.availableCommands.directCommands[1]%>
</li>
注釋以下行並保存檔案。
task.availableCommands.directCommands[1]%>">
<%= task.availableCommands.directCommands[1]%>
</li>
導覽至css資料夾。
開啟_style.css
檔案進行編輯。
對於背景影像,請將#323232
更改為#fff
。
保存更改並關閉_style.css
檔案。
開啟AEM Forms應用程式。
AEM Forms應用程式現在會顯示指示而非說明。