UploadVersion.html 1.75 KB
Newer Older
Thomas Löffler's avatar
Thomas Löffler committed
1
<f:layout name="Default" />
2 3 4

<f:section name="main">

5 6 7
    <h1>
        <f:translate key="header.uploadExtensionVersion" arguments="{0: extension.extKey}" />
    </h1>
Thomas Löffler's avatar
Thomas Löffler committed
8

9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
    <f:form method="post" action="createVersion" controller="Extension" class="form-horizontal" enctype="multipart/form-data">
        <f:form.hidden name="extension" value="{extension}" />
        <div class="form-group row">
            <label for="comment" class="col-sm-3 col-form-label">
                <f:translate key="uploadExtensionVersion.comment" />
            </label>
            <div class="col-sm-9">
                <f:form.textarea class="form-control" rows="5" cols="40" name="form[comment]" value="{form.comment}" />
            </div>
        </div>
        <div class="form-group row">
            <label for="file" class="col-sm-3 col-form-label">
                <f:translate key="uploadExtensionVersion.file" />
            </label>
            <div class="col-sm-9">
                <f:form.upload class="form-control" name="form[file]" />
            </div>
        </div>
        <div class="form-check checkbox row">
            <div class="col-sm-9 offset-sm-3">
                <div class="form-check">
                    <label class="form-check-label">
                        <f:form.checkbox class="form-check-input" name="form[gplCompliant]" value="1" />
                        <f:translate key="uploadExtensionVersion.gplHint" />
                    </label>
                </div>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-sm-9 offset-sm-3">
                <f:form.submit value="{f:translate(key:'uploadExtensionVersion.uploadVersion')}" class="btn btn-primary" />
            </div>
        </div>
    </f:form>
Thomas Löffler's avatar
Thomas Löffler committed
43 44

</f:section>