Sha256: 5ffc1a564c5efaceb8b1ebda93628b6789c939da69456ac4438b7724f8d79585

Contents?: true

Size: 1.67 KB

Versions: 36

Compression:

Stored size: 1.67 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>_(Servers):</h3><a sp:if="@user.can_manage_customers?" href="{ @customer.id }/servers/new" class="add manage">_(Add)</a>
        </div>
        <table class="list-table">
            <tr sp:each="@customer.servers |server|">
                <td>
                    <a href="{ customer.id }/server/{ server.id }">{ server.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

36 entries across 36 versions & 1 rubygems

Version Path
spiderfw-1.0.1 apps/master/views/customer.shtml
spiderfw-1.0.0 apps/master/views/customer.shtml
spiderfw-0.6.39 apps/master/views/customer.shtml
spiderfw-0.6.38 apps/master/views/customer.shtml
spiderfw-0.6.37 apps/master/views/customer.shtml
spiderfw-0.6.35 apps/master/views/customer.shtml
spiderfw-0.6.34 apps/master/views/customer.shtml
spiderfw-0.6.33 apps/master/views/customer.shtml
spiderfw-0.6.32 apps/master/views/customer.shtml
spiderfw-0.6.31 apps/master/views/customer.shtml
spiderfw-0.6.30 apps/master/views/customer.shtml
spiderfw-0.6.29 apps/master/views/customer.shtml
spiderfw-0.6.28 apps/master/views/customer.shtml
spiderfw-0.6.27 apps/master/views/customer.shtml
spiderfw-0.6.26 apps/master/views/customer.shtml
spiderfw-0.6.26.pre1 apps/master/views/customer.shtml
spiderfw-0.6.25 apps/master/views/customer.shtml
spiderfw-0.6.24 apps/master/views/customer.shtml
spiderfw-0.6.23 apps/master/views/customer.shtml
spiderfw-0.6.22 apps/master/views/customer.shtml