Subversion Repositories linid-dm

[/] [sample/] [branches/] [Tapestry-5.4-beta/] [src/] [main/] [resources/] [org/] [linid/] [dm/] [sample/] [tap5/] [components/] [entry/] [SampleBaseEntryBeanEditor.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">

<form t:id="form">

    <t:errors 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="writable">
                                                <t:edit.attributeeditor
                                                        model="model"
                                                        object="currentValues"
                                                        attributedefinition="currentAttributeDefinition"
                                                        plusicon="context:/layout/images/add.png"
                                                        minusicon="context:/layout/images/delete.png"
                                                        addValueButtonId="addValueButton"
                                                        addSubmitCtxId="addSubmitCtx"
                                                        deleteValueButtonId="deleteValueButton"
                                                        deleteSubmitCtxId="deleteSubmitCtx" />
                                        <p:else>
                                                <t:if test="showReadableOnly">
                                                
                                                
                                                <p:else>
                                                        <t:edit.attributeviewer
                                                                model="model"  
                                                                object="currentValues"
                                                                attributedefinition="currentAttributeDefinition" />
                                                </p:else>
                                                </t:if>
                                        </p:else>
                                        </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.cancel-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>
</form>

</t:container>

Compare with Previous | Blame | View Log