Use tables instead of collections in admin user view

This commit is contained in:
Patrick Jentsch 2020-01-15 13:20:20 +01:00
parent 91da024f36
commit 8dcf195e1b

View File

@ -29,53 +29,39 @@
</div> </div>
</div> </div>
<div class="col s12"></div>
<div class="col s12 m6"> <div class="col s12 m6">
<div id="corpus-list"> <h3>Corpora</h3>
<div class="card"> <div class="card">
<div class="card-content"> <div class="card-content" id="corpora">
<span class="card-title">Corpora</span>
<div class="row">
<div class="col s12">
<div class="input-field"> <div class="input-field">
<i class="material-icons prefix">search</i> <i class="material-icons prefix">search</i>
<input id="search-corpus" class="search" type="text"></input> <input id="search-corpus" class="search" type="text"></input>
<label for="search-corpus">Search corpus</label> <label for="search-corpus">Search corpus</label>
</div> </div>
</div> <table>
<div class="col s12"> <tbody class="list"></tbody>
</table>
<ul class="pagination"></ul> <ul class="pagination"></ul>
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="collection list"></div>
</div>
</div>
<div class="col s12 m6"> <div class="col s12 m6">
<div id="job-list"> <h3>Jobs</h3>
<div class="card"> <div class="card">
<div class="card-content"> <div class="card-content" id="jobs">
<span class="card-title">Jobs</span>
<div class="row">
<div class="col s12">
<div class="input-field"> <div class="input-field">
<i class="material-icons prefix">search</i> <i class="material-icons prefix">search</i>
<input id="search-job" class="search" type="text"></input> <input id="search-job" class="search" type="text"></input>
<label for="search-job">Search job</label> <label for="search-job">Search job</label>
</div> </div>
</div> <table>
<div class="col s12"> <tbody class="list"></tbody>
</table>
<ul class="pagination"></ul> <ul class="pagination"></ul>
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="collection list"></div>
</div>
</div>
<!-- Modals --> <!-- Modals -->
@ -94,7 +80,7 @@
<script> <script>
socket.emit('subscribe_foreign_user_ressources', {{ user.id }}); socket.emit('subscribe_foreign_user_ressources', {{ user.id }});
var corpusList = new CorpusList("corpus-list", foreignCorporaSubscribers); var corpusList = new CorpusList("corpora", foreignCorporaSubscribers);
var jobList = new JobList("job-list", foreignJobsSubscribers); var jobList = new JobList("jobs", foreignJobsSubscribers);
</script> </script>
{% endblock %} {% endblock %}