Subversion Repositories linid-dm

[/] [sample/] [branches/] [Tapestry-5.4-beta/] [src/] [main/] [resources/] [org/] [linid/] [dm/] [sample/] [tap5/] [components/] [entry/] [SampleEntryCreator.tml] - Rev 505

Compare with Previous | Blame | View Log

<t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd" xmlns:p="tapestry:parameter">

<t:if test="mustGetParentDn">

        <t:form t:id="firstform" >
                <h3>${message:page.create.selectstandardaccount}</h3>
            <t:errors t:banner="${message:default-banner}" />
            
            <div class="input-group">
                    <t:textfield 
                                t:mixins="jquery/autocomplete"
                                t:id="getParentDn"
                                t:value="overridedParentDn"
                                class="form-control" />
                                
                        <span class="input-group-addon">
                                <t:submit
                                        t:id="getParentDnSubmit"
                                        t:image="asset:context:layout/images/arrow_refresh.png" />
                        </span>
                </div>
                
        </t:form>
        
<p:else>

        <t:if test="parentDnEntry">
                <h3>${message:page.create.selectedstandardaccount} ${parentDnId}</h3>
        </t:if>
        
        <t:form t:id="form">
            <t:errors t:banner="${message:default-banner}" />
                <t:if test="canAccess">
                <div class="table-responsive">
                        <table class="table table-striped">
                        <tbody>
                                <tr t:type="loop"
                                        t:source="sortedAttributeIds"
                                        t:value="currentAttributeId"
                                        t:volatile="true">
                                        <t:if test="shownAtCreation">
                                                <t:if test="writable">
                                                        <t:edit.attributeeditor 
                                                                        model="model"  
                                                                        object="currentValues"  
                                                                        attributedefinition="currentAttributeDefinition"
                                                                        plusicon="inherit:plusicon"
                                                                        minusicon="inherit:minusicon"
                                                                        addValueButtonId="addValueButton"
                                                                        addSubmitCtxId="addSubmitCtx"
                                                                        deleteValueButtonId="deleteValueButton"
                                                                        deleteSubmitCtxId="deleteSubmitCtx" />
                                                </t:if>
                                        </t:if>
                                </tr>

                        </tbody>
                        </table>
                        </div>
                        
                        <hr />
                        
                        <div class="buttons text-center">
                                <t:submit t:id="commit" value="${message:general.submit-label}" class="btn btn-success" />
                                <t:submit t:id="reset"  value="${message:general.reset-label}" class="btn btn-danger" />
                                <t:textfield t:id="addSubmitCtx" class="hidden" value="addSubmitCtx" />
                                <t:submit t:id="addValueButton" class="hidden" t:clientid="addValueButton" />
                                <t:textfield t:id="deleteSubmitCtx" class="hidden" value="deleteSubmitCtx" />
                                <t:submit t:id="deleteValueButton" class="hidden" t:clientid="deleteValueButton" />
                        </div>

                </t:if>
        </t:form>

</p:else>
</t:if>

</t:container>

Compare with Previous | Blame | View Log