您可以自訂HTML程式碼和CSS檔案,為AEM Forms應用程式提供獨特的組織專屬外觀和風格。 例如,您可以變更任務或「起點」的背景顏色和高度。 下列範例提供變更的指示:
開啟您的專案。
Capture.xcodeproj
在Xcode中MWSWindows.sln
在Visual Studio中。導覽至「範本」資料夾。
閇啟 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應用程式現在會顯示指示,而非說明。