paymentMethod.jsp
Home
/
sm-shop /
src /
main /
webapp /
pages /
admin /
payment /
paymentMethod.jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ page session="false" %>
<script>
</script>
<div class="tabbable">
<jsp:include page="/common/adminTabs.jsp" />
<div class="tab-content">
<div class="tab-pane active" id="payment-method">
<div class="sm-ui-component">
<h3><s:message code="label.payment.module.title" text="Payment method" /> - <s:message code="module.payment.${configuration.moduleCode}" text="No label found - ${configuration.moduleCode}"/></h3>
<br/>
<p><s:message code="module.payment.${configuration.moduleCode}.note" text=""/></p><br/>
<c:url var="savePaymentMethod" value="/admin/payments/savePaymentMethod.html"/>
<form:form method="POST" commandName="configuration" action="${savePaymentMethod}">
<form:errors path="*" cssClass="alert alert-error" element="div" />
<div id="store.success" class="alert alert-success" style="<c:choose><c:when test="${success!=null}">display:block;</c:when><c:otherwise>display:none;</c:otherwise></c:choose>"><s:message code="message.success" text="Request successfull"/></div>
<div class="control-group">
<label><s:message code="label.entity.enabled" text="Module enabled"/></label>
<div class="controls">
<form:checkbox path="active" />
</div>
</div>
<div class="control-group">
<label><s:message code="label.generic.default" text="Default"/></label>
<div class="controls">
<form:checkbox path="defaultSelected" />
</div>
</div>
<div class="controls">
<label><s:message code="label.generic.environment" text="Environment"/></label>
<div class="controls">
<form:select path="environment">
<form:options items="${environments}" />
</form:select>
</div>
<span class="help-inline"><form:errors path="environment" cssClass="error" /></span>
</div>
<c:if test="${customConfiguration==null}">
<jsp:include page="/pages/admin/payment/${configuration.moduleCode}.jsp"></jsp:include>
</c:if>
<form:hidden path="moduleCode" />
<div class="form-actions">
<div class="pull-right">
<button type="submit" class="btn btn-success"><s:message code="button.label.submit" text="Submit"/></button>
</div>
</div>
</form:form>
<c:if test="${customConfiguration!=null}">
<jsp:include page="/pages/admin/payments/${configuration.moduleCode}.jsp"></jsp:include>
</c:if>
<c:if test="${configuration.active && validationError==null}">
<c:url var="removeModule" value="/admin/payments/deletePaymentMethod.html"/>
<form:form method="POST" enctype="multipart/form-data" commandName="code" action="${removeModule}">
<input type="hidden" name="code" value="${configuration.moduleCode}" />
<div class="form-actions">
<div class="pull-right">
<button type="submit" class="btn-danger"><i class="icon-trash icon-large"></i><s:message code="label.generic.remove" text="Remove"/></button>
</div>
</div>
</form:form>
</c:if>
</div>
</div>
</div>
</div>