Subversion Repositories SmartDukaan

Rev

Rev 7266 | 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>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="css/rechargewebapp_18042013.css" type="text/css" />
        <style>
                .searchStore {
                        height: 23px;
            border: 1px solid #999999;
            padding: 2px 5px 2px 10px;
            font-size: 16px;
            color: #777777;
            box-shadow: 1px -1px 10px -1px #999999 inset;
                        width:100px
                }
                
                .submitButton {
                        height: 25px;
            width: 50px;
            font-weight: bold;
            font-size: 15px;
            background-color: #2789c1;
            border: 1px solid blue;
            border-radius: 2px;
            color: white;
                }
                
                table, td, th
                {
                        border:1px solid #2789C1;
                        border-collapse:collapse;
                        border-spacing:0;
                }
                th
                {
                        background-color:#2789C1;
                        color:white;
                        text-align:center;
                        padding:5px;
                }
                td
        {
                        text-align:center;
                        padding:5px;
        }
        </style>
</head>

#set($circles = $action.getCircles())

<body style="margin: 0;">
    <div style="line-height:37px;height:37px;background-color:#333;color:white;border-bottom: 5px solid white;">
        <span style="margin-left:20px;font-weight:bold;font-size:15px">SAHOLIC RECHARGE ADMIN CONSOLE </span>
        <span style="margin-left:120px;"><a style="color:white;" href="/rch/admin">Home</a></span>
        <span style="margin-left:50px;"><a style="color:white;" href="/rch/admin!doLogout">Logout</a></span>
    </div>

    <div id="main" style="width:800px;margin: 5px 0 0 50px;">
                <form style="margin:25px;" action="/rch/delete-frc" method="post">
                        <span>
                        Select a circle  
                        </span>
                        <select style="height: 25px;border: 1px solid #2789C1;font-size: 15px;" name="circle">
                                <option value="0">Choose circle</option>
                                #foreach($circle in $circles)
                                                #if($circle.getId() == $action.getCircle())
                                                        #set($circleName = $circle.getName())
                                                        #set($circleId = $circle.getId())
                                                        <option value="$circle.getId()" selected="true">$circle.getName()</option>
                                                #else
                                                        <option value="$circle.getId()">$circle.getName()</option>
                                                #end
                                        #end
                        </select>
                        <input type="submit" class='submitButton' value="GO"></input>
                </form>

        #if($action.getMessage() != "")
                <div style="width:600px;font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
                $action.getMessage()
        </div>
        #end
        
        #if($action.getFrcs().size() > 0)
                <h3>Available FRC</h3>
                <form action="/rch/delete-frc!destroy">
                        <input type="hidden" name="circle" value="$circleId">
                <table width="750px">
                <thead>
                  <tr>
                                        <th>SELECT</th>
                    <th>Circle</th>
                                <th>Operator</th>
                    <th>Denomination</th>
                                <th>Discount</th>
                  </tr>
                </thead>
                <tbody>
                        #foreach ( $frc in $action.getFrcs() )
                          <tr>
                                        <td><input type="checkbox" name="frcIdToDelete" value="$frc.getId()"></input></td>
                    <td>$circleName</td>
                                <td>$action.getOperatorsMap().get($frc.getOperatorId())</td>
                                <td>$frc.getDenomination()</td>
                                <td>$frc.getMaxDiscount()</td>
                  </tr>
                        #end
                </tbody>
                        </table>
                        <input type="submit" value="DELETE" class="submitButton" style="background-color:red;width:125px;margin-top:25px;"></input>
                </form>
        #end
    </div>

</body>

</html>