comparison app/views/storage/edit_pool.ctp @ 1:eb4fee3d9bb8

added StoragePools management functions (storage_controller)
author Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
date Wed, 27 Jul 2011 00:00:25 +0900
parents
children
comparison
equal deleted inserted replaced
0:261e66bd5a0c 1:eb4fee3d9bb8
1 <h2>StoragePool::EditPool</h2>
2 <h3><?php echo $pool["name"]; ?></h3>
3 <h4>StoragePool Information</h4>
4 <?php echo $this->element("storage/poolinfo",array("pool" => $pool)); ?>
5 <h4>Volumes</h4>
6 <?php echo $this->element("storage/volumeinfotable",array("volumes" => $pool["volumes"])); ?>
7 <h4>Add New Volume</h4>
8 <form method="post" action="AddVolume">
9 <input name="id" type="hidden" value="<?php echo $pool["id"]; ?>"/>
10 <table>
11 <tr>
12 <th>Volume Name</th>
13 <th>Capacity (MiB)</th>
14 <th>Allocate (MiB)</th>
15 </tr>
16 <tr>
17 <td><input type="text" name="name"/></td>
18 <td><input type="text" name="capacity"/></td>
19 <td><input type="text" name="allocate"/></td>
20 </tr>
21 </table>
22 <input type="submit" value="AddVolume"/>
23 </form>
24 <br/>
25 <h4>Delete Volume</h4>
26 <form method="post" action="DeleteVolume">
27 <input type="hidden" name="pid" value="<?php echo $pool["id"]; ?>"/>
28 <table>
29 <tr>
30 <th>Volume Name</th>
31 </tr>
32 <tr>
33 <td>
34 <select name="vname">
35 <?php
36 foreach($pool["volumes"] as $volume){
37 echo "<option value=\"".$volume["name"]."\">".$volume["name"]."</option>";
38 }
39 ?>
40 </select>
41 </td>
42 </tr>
43 </table>
44 <?php echo $this->Form->end("DeleteVolume"); ?>
45 </form>
46 <p><a href="./">Back</a></p>
47