Subversion Repositories SmartDukaan

Rev

Rev 12361 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <script type="text/javascript" src="/js/jquery-1.4.2.js"></script>
        <script type="text/javascript" src="/js/jquery.validate.js"></script>
        <title>
            #set($supplier = $action.getSupplier())
            Edit $supplier.getName()
        </title>
    </head>
    <body>
        <script>
            $(document).ready(function() {
                $("form#editSupplier").validate();
            });
        </script>
        <a href="/inventory">Go to Home page</a>
        <br />                
        <h2>Edit Supplier $supplier.getName()</h2>
        <form id = "editSupplier" action="/inventory/supplier!update" method="post">
            <table >
                <tr >
                    <td >Name</td>
                    <td ><input name="name" type="text" class="required" value="$supplier.getName()" size="30"/></td>
                </tr>
                <tr >
                    <td >Phone (Max. 12 digits)</td>
                    <td ><input name="phone" type="text" class="required digits" value="$supplier.getPhone()"/></td>
                </tr>
                <tr >
                    <td >TIN (Max. 10 digits)</td>
                    <td ><input name="tin" type="text" class="required digits" value="$supplier.getTin()"/></td>
                </tr>
                <tr >
                    <td >PAN</td>
                    <td ><input name="pan" type="text" class="required" value="$supplier.getPan()"/></td>
                </tr>
                <tr >
                    <td >Fax</td>
                    <td ><input name="fax" type="text" class="required" value="$supplier.getFax()"/></td>
                </tr>
                <tr >
                    <td >Head Name</td>
                    <td ><input name="headName" type="text" class="required" value="$supplier.getHeadName()" size="30"/></td>
                </tr>
                <tr >
                    <td >Head Designation</td>
                    <td ><input name="headDesignation" type="text" value="$supplier.getHeadDesignation()"/></td>
                </tr>
                <tr >
                    <td >Head Email</td>
                    <td ><input name="headEmail" type="text" class="email required" value="$supplier.getHeadEmail()" size="30"/></td>
                </tr>
                <tr >
                    <td >Contact Person</td>
                    <td ><input name="contactName" type="text" class="required" value="$supplier.getContactName()" size="30"/></td>
                </tr>
                <tr >
                    <td >Contact Email(; separated email ids)</td>
                    <td ><input name="contactEmail" type="text" class="required" value="$supplier.getContactEmail()" size="70"/></td>
                </tr>
                <tr >
                    <td >Contact Phone (Max. 12 digits)</td>
                    <td ><input name="contactPhone" type="text" class="required digits" value="$supplier.getContactPhone()"/></td>
                </tr>
                <tr >
                    <td >Contact Fax (Max. 12 digits)</td>
                    <td ><input name="contactFax" type="text" class="required digits" value="$supplier.getContactFax()"/></td>
                </tr>
                <tr >
                    <td >Registered Address</td>
                    <td ><input name="registeredAddress" type="text" class="required" value="$supplier.getRegisteredAddress()" size="70"/></td>
                </tr>
                <tr >
                    <td >Communication Address</td>
                    <td ><input name="communicationAddress" type="text" class="required" value="$supplier.getCommunicationAddress()" size="70"/></td>
                </tr>
                <tr>
                    <td colspan="2"><input type="submit" value="Update" />
                        <input type="hidden" name="id" value="$supplier.getId()"/>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>