<div class="wrap">

    <div id="icon-fontbird" class="icon32"><br /></div>
    <h2>Collection Manager</h2>
    <ul id="collection-container" class="item-list ">
        <?php foreach ($collections as $item) : ?>
                <li class="<?php if ($item->actived): ?>actived<?php endif ?>" ">
                    <a class="name <?php if ($item->actived): ?>actived<?php endif ?>" href="<?php echo AxcotoFontBird::singleton()->uri('collection', 'collection/open/' . $item->id) ?>">
                <?php echo $item->name ?>
                <?php if ($item->actived): ?>(Active)<?php endif ?>
                    </a>

            <?php if (!$item->actived) : ?>
                            <a title="make default" href="<?php echo AxcotoFontBird::singleton()->uri('collection', 'collection/active/' . $item->id) ?>" class="active">Active</a>
            <?php endif ?>
                            <a title="make default" href="<?php echo AxcotoFontBird::singleton()->uri('collection', 'collection/removeCollection/' . $item->id) ?>" class="remove">Remove</a>
                        </li>
        <?php endforeach ?>
    </ul>
    <div class="clear"></div>
        <form method="POST" action="" name="new-collection">
        <fieldset>
            <div id="icon-add-collection" class="icon32"><br /></div>
            <h2>Add Collection</h2>

            <?php wp_nonce_field('add_collection', 'name'); ?>
            <ul  class="form">
                <li>
                    <label>Name</label><input type="text" name="collection_name" />
            <input type="submit" name="add" value="Add" />
                </li>
            </ul>

        </fieldset>
    </form>

</div>
