<%@page import="mainapp.PricingOptions"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    PricingOptions opts = new PricingOptions();
%>
<form method="POST" action="${pageContext.request.contextPath}/SaveOptionsAction">
    <h1 style="text-align: center">Ρυθμίσεις</h1>
    <hr />
    <h6 class="form_error" style="text-align: center">
        ${errorMessage}
    </h6>
    <table>
        <tr>
            <td><label for="normal_price">Τιμή (&euro;)</label></td>
            <td><input type="number" name="normal_price" id="normal_price" step="0.1" value="<%= opts.getNormalPrice() %>"/></td>
        </tr>
        <tr>
            <td><label for="bio_price">Τιμή ΒΙΟ (&euro;)</label></td>
            <td><input type="number" name="bio_price" id="bio_price" step="0.1" value="<%= opts.getBioPrice()%>"/></td>
        </tr>
        <tr>
            <td><label for="step">Ποσό μεταβολής τιμής / 0.1 οξύτητας</label></td>
            <td><input type="number" name="step" id="step" step="any" value="<%= opts.getAcidityStep()%>"/></td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" value="Αποθήκευση"/></td>
        </tr>
    </table>
</form>