Sha256: e629ebd898fb06b1f30e8b98a97e21938206ba9618211df8ba3d0d2ff5385123

Contents?: true

Size: 1.68 KB

Versions: 12

Compression:

Stored size: 1.68 KB

Contents

<div>
    <div class="page-title title-block">
        <tpl:pass sp:if="@customer">
            <h2>{ @customer.name }</h2>
        </tpl:pass>
        <h2 sp:if="!@customer">_(New customer)</h2>
        <tpl:pass sp:if="!@edit">
            <a href="?edit" class="manage edit">_(Edit)</a>
        </tpl:pass>
    </div>
    <table class="info-block main" sp:if="@customer">
        <tr>
            <td class="label">Uuuid:</td><td class="data">{ @customer.uuid }</td>
        </tr>
    </table>
    <tpl:pass sp:if="@edit">
        <forms:form id="customer_form" model="Spider::Master::Customer" pk="@pk" auto_redirect="true"/>
    </tpl:pass>
    <tpl:pass sp:if="@customer && !@edit">
        <div class="list-title title-block">
            <h3>_(Servants):</h3><a sp:if="@user.can_manage_customers?" href="{ @customer.id }/servants/new" class="add manage">_(Add)</a>
        </div>
        <table class="list-table">
            <tr sp:each="@customer.servants |servant|">
                <td>
                    <a href="{ customer.id }/servants/{ servant.id }">{ servant.name }</a>
                </td>
            </tr>
        </table>
        <tpl:pass sp:if="false">
            <div class="list-title title-block">
                <h3>_(Installations):</h3><a href="{ @customer.id }/installations/new" class="add manage">_(Add)</a>
            </div>
            <table class="list-table">
                <tr sp:each="@customer.installs |installation|">
                    <td>
                        <a href="{ @customer.id }/installations/{ installation.id }">{ installation.name }</a>
                    </td>
                </tr>
            </table>
        </tpl:pass>
    </tpl:pass>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spiderfw-0.6.5 apps/master/views/customer.shtml
spiderfw-0.6.4 apps/master/views/customer.shtml
spiderfw-0.6.3 apps/master/views/customer.shtml
spiderfw-0.6.2 apps/master/views/customer.shtml
spiderfw-0.6.1 apps/master/views/customer.shtml
spiderfw-0.6.0 apps/master/views/customer.shtml
spiderfw-0.5.19 apps/master/views/customer.shtml
spiderfw-0.5.18 apps/master/views/customer.shtml
spiderfw-0.5.17 apps/master/views/customer.shtml
spiderfw-0.5.16 apps/master/views/customer.shtml
spiderfw-0.5.15 apps/master/views/customer.shtml
spiderfw-0.5.14 apps/master/views/customer.shtml