$def with (disk_state)
$var title = _("Disk State")
$var tab: panel
$var rawcss = ["plugins/disk_image/css/disk.css"]

<div id="diskimage">
    <img src="/static/plugins/disk_image/diskprofile.png" alt="disk"/>
</div>

<div id="info">
<p>
    <em>$_("Name")</em>: $disk_state.name<br/>
    <em>$_("Description")</em>: $disk_state.description<br/>
</p>
</div>

<div class="clear"></div>

<p>
    <h3>$_p("Computers")</h3>
    <ul>
        $for c in disk_state.computers:
            <li><a href="/navigator/computer/$c.name">$c.name</a></li>
    </ul>

    <h3>$_p("Organizative units")</h3>
    <ul>
        $for o in disk_state.ous:
            <li><a href="/navigator/ou/$o.name">$o.description</a></li>
    </ul>
</p>

<div id="disks">
$for disk in disk_state.get_disks():
    <p><img src="/static/plugins/disk_image/small_diskprofile.png" alt="small disk"/>$_p("disk:") $disk.number</p>
    $:render.plugins.disk_image.disk_widget(disk)
</div>
