github.com/bitcubate/cryptojournal@v1.2.5-0.20171102134152-f578b3d788ab/src/lib/templates/fragmenta_resources/views/index.html.got.tmpl (about)

     1  <article>
     2  <h3>[[ .Fragmenta_Resources ]]</h3>
     3  
     4  <div class="row">
     5  <form accept-charset="UTF-8" action="/[[ .fragmenta_resources ]]" method="get" class="filter-form">
     6        <a class="button" href="/[[ .fragmenta_resources ]]/create">Add [[ .Fragmenta_Resources ]]</a>
     7        <input type="search" name="filter" class="right" placeholder="Search..." value="{{ .filter }}">
     8  </form>
     9  </div>
    10  
    11  <div class="row">
    12  <table class="data-table">
    13      {{ $0 := . }}
    14      {{ template "[[ .fragmenta_resources ]]/views/row.html.got" empty }}
    15      {{ range $i,$m := .[[ .fragmenta_resources ]] }}
    16         {{ set $0 "i" $i }}
    17         {{ set $0 "[[ .fragmenta_resource ]]" $m }}
    18         {{ template "[[ .fragmenta_resources ]]/views/row.html.got" $0 }}
    19      {{ end }}
    20  </table>
    21  </div>
    22  </article>