Sha256: 0550c5295cae35ecec99975647d41a3d9e91574f3b362f2feafcb9cb4fa01d5f

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

<SystemPage>
  <?r base = "#{@base}/%base%" ?>
  <h1><a href="/"> Home</a> > <a href="#@base">System</a> > <a href="#{base}/list">#{"%plural%".humanize}</a> > Advanced Search</h1>
  <p>
  <form action="#{base}/search">
    Search #{"%plural%".humanize}: <input type="text" name="q" />&nbsp;<input type="submit" value="Search" /> 
    <a href="#{base}/advanced_search">Advanced search</a>
  </form>
  </p>
  <?r if @list.nil? ?>
    <h3>Enter properties for advanced search:</h3>
    #{form_for %klass%.new, :submit => 'Search', :action => :self, :no_relations => true}
  <?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

2 entries across 2 versions & 1 rubygems

Version Path
nitro-0.30.0 proto/public/scaffold/advanced_search.xhtml
nitro-0.31.0 proto/public/scaffold/advanced_search.xhtml