Преглед изворни кода

fix cancel setup otp button not working

Jason Rivard пре 6 година
родитељ
комит
2779cf97bc
1 измењених фајлова са 2 додато и 8 уклоњено
  1. 2 8
      webapp/src/main/webapp/WEB-INF/jsp/setupotpsecret.jsp

+ 2 - 8
webapp/src/main/webapp/WEB-INF/jsp/setupotpsecret.jsp

@@ -95,21 +95,15 @@
                     <pwm:display key="Button_Skip"/>
                 </button>
                 <% } %>
-                <pwm:if test="<%=PwmIfTest.showCancel%>">
-                    <pwm:if test="<%=PwmIfTest.forcedPageView%>" negate="true">
-                        <button type="submit" name="button" class="btn" id="button-cancel">
-                            <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-times"></span></pwm:if>
-                            <pwm:display key="Button_Cancel"/>
-                        </button>
-                    </pwm:if>
-                </pwm:if>
             </form>
+            <%@ include file="/WEB-INF/jsp/fragment/cancel-button.jsp" %>
         </div>
     </div>
     <div class="push"></div>
 </div>
 <pwm:script-ref url="/public/resources/js/responses.js"/>
 <pwm:script-ref url="/public/resources/js/otpsecret.js"/>
+<%@ include file="/WEB-INF/jsp/fragment/cancel-form.jsp" %>
 <%@ include file="fragment/footer.jsp" %>
 </body>
 </html>