Sha256: d16d50ffbbf44466b37d053e080d7289cce5eaa149afa148cd6b72c40a6ce308

Contents?: true

Size: 979 Bytes

Versions: 3

Compression:

Stored size: 979 Bytes

Contents

<SystemPage>
  <?r base = "#{@base}/%base%" ?>
  <h1><a href="/"> Home</a> > <a href="#@base">System</a> > <a href="#{base}/list">#{"%plural%".humanize}</a> > Search for '#@query'</h1>
  <p>
  <form action="#{base}/search">
    Search %plural%: <input type="text" name="q" />&nbsp;<input type="submit" value="Search" />
  </form>
  </p>
  <?r if @list.nil? ?>
    <p>Search method is not implemented for this object</p>
  <?r else ?>
    <table>
    <?r for obj in @list ?>
      <tr>
        <td width="100%"><a href="#{base}/edit/#{obj.oid}">#(obj.to_s)</a></td>
        <?r if obj.respond_to?(:update_time) ?>
          <td nowrap="1">#{obj.update_time.stamp(:db)}</td>
        <?r end ?>
        <td><a href="#{base}/edit/#{obj.oid}">edit</a></td>
        <td><a href="#{base}/delete/#{obj.oid}">del</a></td>
      </tr>
    <?r end ?>
    </table>
    <div class="pager" if="@pager and @pager.navigation?">
      #{@pager.navigation}
    </div>  
  <?r end ?>
</SystemPage>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nitro-0.26.0 proto/public/scaffold/search.xhtml
nitro-0.27.0 proto/public/scaffold/search.xhtml
nitro-0.28.0 proto/public/scaffold/search.xhtml