<div class="ui-confirm" id="installPluginByUpload">
    <h2>{{ 'CorePluginsAdmin_TeaserExtendPiwikByUpload'|translate }}</h2>

    <p class="description"> {{ 'CorePluginsAdmin_AllowedUploadFormats'|translate }} </p>

    <form enctype="multipart/form-data"
          method="post"
          id="uploadPluginForm"
          action="{{ linkTo({'action':'uploadPlugin', 'nonce': installNonce}) }}">
        <input type="file" name="pluginZip">
        <br />
        <input class="startUpload" type="submit" value="{{ 'CorePluginsAdmin_UploadZipFile'|translate }}">
    </form>
</div>

<div class="sort">
    <a href="{{ linkTo({'sort': 'popular', 'query': ''}) }}" {% if 'popular' == sort %}class="active"{% endif %}>{{ 'CorePluginsAdmin_SortByPopular'|translate }}</a>
    |
    <a href="{{ linkTo({'sort': 'newest', 'query': ''}) }}" {% if 'newest' == sort %}class="active"{% endif %}>{{ 'CorePluginsAdmin_SortByNewest'|translate }}</a>
    |
    <a href="{{ linkTo({'sort': 'alpha', 'query': ''}) }}" {% if 'alpha' == sort %}class="active"{% endif %}>{{ 'CorePluginsAdmin_SortByAlpha'|translate }}</a>
    |
    <form action="{{ linkTo({'sort': ''}) }}" method="POST">
        <input value="{{ query }}" placeholder="{{ 'General_Search'|translate }}" type="text" name="query"/>
        <button type="submit">{{ 'General_Search'|translate }}</button>
    </form>
</div>
