<h2>Pre-defined queries for this store</h2>

<?for query $arg?>
  <h3>
    <a href="#query/db/[?t encodeFragment(query.title)?]"><?t query.title?></a>
    <?if userRole("site")?>
      (<span class="linkish">delete</span>)
      <?event click deleteDBQuery(query.title);?>
    <?if.?>
  </h3>
  <pre class="query-text"><?t query.text?></pre>
<?for.?>

<?if !$arg.length?>
<p>There are no pre-defined queries.</p>
<?if.?>

<?if userRole("site")?>
  <p>You can add new queries by saving a query and then adding it from your saved query list.</p>
<?if.?>
