<isdecorate template="common/layout/page">

    <isif condition="${pdict.message && pdict.message != ''}">
        <div class="container mt-3 mb-3">
            <h3 class="primary-text">${pdict.message}</h3>
        </div>
    </isif>

    <div class="container mt-3 mb-3"> 
        <form action="${URLUtils.url('Cyborg-HandleForm')}"  method="POST">

            <div class="form-row">

                <iscomment> human name </iscomment>
                <div class="col form-group">
                    <label for="humanname">
                        ${ pdict.cyborgForm.humanname.label }
                    </label>
                    <input class="form-control" type="text" id="humanname" 
                        <isprint value="${pdict.cyborgForm.humanname.attributes}" encoding="off" />
                        <isprint value="${pdict.disabled ? 'disabled':''}" encoding="off" />
                    />
                </div>

                <iscomment> cyborg name </iscomment>
                <div class="col form-group">
                    <label for="cyborgname">
                        ${pdict.cyborgForm.cyborgname.label}
                    </label>
                    <input class="form-control" type="text" id="cyborgname" 
                        <isprint value="${pdict.cyborgForm.cyborgname.attributes}" encoding="off" />
                        <isprint value="${pdict.disabled ? 'disabled':''}" encoding="off" />
                    />
                </div>

                <iscomment> email </iscomment>
                <div class="col form-group">
                    <label for="email">
                        ${pdict.cyborgForm.email.label}
                    </label>
                    <input class="form-control" type="text" id="email" 
                        <isprint value="${pdict.cyborgForm.email.attributes}" encoding="off" />
                        <isprint value="${pdict.disabled ? 'disabled':''}" encoding="off" />
                    />
                </div>
            </div>
            <iscomment> mostly human </iscomment>
            <div class="form-row">
                <div class="form-check form-check-inline">
                    <input type="checkbox" id="mostlyhuman"
                        <isprint value="${pdict.cyborgForm.mostlyhuman.attributes}" encoding="off" />
                        <isprint value="${pdict.disabled ? 'disabled':''}" encoding="off" />
                    />
                    <label class="form-check-label" for="mostlyhuman">${pdict.cyborgForm.mostlyhuman.label}
                    </label>

                </div>
            </div>

            <isif condition="${pdict.disabled}">
                <a href="${ URLUtils.url('Cyborg') }">Back to Edit</a>
            <iselse/>
                <iscomment> submit button </iscomment>
                <div class="form-row">
                    <button type="submit" class="btn btn-primary">
                        ${Resource.msg('button.submit.promo.code','cart', null)}
                    </button>
                </div>
            </isif>

        </form>
    </div>

</isdecorate>