##
## Copyright 2008-2009 LinkedIn, Inc
## 
## Licensed under the Apache License, Version 2.0 (the "License"); you may not
## use this file except in compliance with the License. You may obtain a copy of
## the License at
## 
## http://www.apache.org/licenses/LICENSE-2.0
## 
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
## License for the specific language governing permissions and limitations under
## the License.
##

<html>
  <head>
    <title>Voldemort Administration</title>
    <style>
      h1 {font-weight: bold; 
        font-size: 30pt; 
        text-align: center}
      h2 {font-weight: bold; 
        font-size: 20pt; 
        text-align: center}
      body {background-color: darkred}
      .content {background-color: white; 
            border: 3px solid black; 
            margin: 20px; 
            margin-left: 100px; 
            margin-right: 100px; 
            padding: 10px;
            min-height: 800px}
    </style>
  </head>
  <body>
    <div class="content">
      <h2>Fetch Data Files</h2>
      <form method="post">
        <input type="hidden" name="operation" value="fetch"/>
        <table align="center">
          <tr>
            <td>Store</td>
            <td>
              <select name="store">
                #foreach($store in $stores)
                  <option value="$store.name">$store.name</option>
                #end
              </select>
            </td>
          </tr>
          <tr>
            <td>Store Directory</td>
            <td><input type="text" name="dir"/></td>
          </tr>
          <tr>
            <td colspan="2">
              <input type="submit" value="Submit"/>
            </td>
          </tr>
        </table>
      </form>
      <h2>Swap Data Files</h2>
      <form method="post">
        <input type="hidden" name="operation" value="swap"/>
        <table align="center">
          <tr>
            <td>Store</td>
            <td>
              <select name="store">
                #foreach($store in $stores)
                  <option value="$store.name">$store.name</option>
                #end
              </select>
            </td>
          </tr>
          <tr>
            <td>Store Directory</td>
            <td><input type="text" name="dir"/></td>
          </tr>
          <tr>
            <td colspan="2">
              <input type="submit" value="Submit"/>
            </td>
          </tr>
        </table>
      </form>
      
    </div>
  </body>
</html>