aboutsummaryrefslogtreecommitdiffstats
path: root/lib/srtgui/templates/keywords-toastertable.html
blob: 154dcef876a510735ae46a47d28f4e924e048110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{% extends 'base.html' %}
{% load static %}

{% block extraheadcontent %}
  <link rel="stylesheet" href="{% static 'css/jquery-ui.min.css' %}" type='text/css'>
  <link rel="stylesheet" href="{% static 'css/jquery-ui.structure.min.css' %}" type='text/css'>
  <link rel="stylesheet" href="{% static 'css/jquery-ui.theme.min.css' %}" type='text/css'>
  <script src="{% static 'js/jquery-ui.min.js' %}">
  </script>
  {% if access.is_creator %}{% else %}<meta http-equiv="refresh" content="0; url=/" />{% endif %}
{% endblock %}

{% block title %} Select Keywords - SRTool {% endblock %}

{% block pagecontent %}

<style>
#keywordsId{
font-size: 14px;
font-weight: normal;
resize: none;
overflow-y: scroll;
}

</style>

<div class="row">
  <!-- Breadcrumbs -->
	<div class="col-md-12">
		<ul class="breadcrumb" id="breadcrumb">
			<li><a href="{% url 'landing' %}">Home</a></li><span class="divider">&rarr;</span>
			<li>Select Keywords</li>
		</ul>
	</div>
</div>

<p><b><big>Keywords: </big></b>
<a class="btn btn-default navbar-btn " id="investigate-button" href="">Add Keyword</a>
<a class="btn btn-default navbar-btn " id="exclude-button" href="">Add Keyword List</a>

<div class="row">
 <textarea rows="15" cols="50" id="keywordsId"
                    style="max-height:100px;min-height:100px; resize: none">
  foo
  bar
  lkfkf
  trrtg
  srtgsg
  sbsgseg
  stsetgg

 </textarea>
</div>

<div class="row">
  <div class="col-md-12">
    <div class="page-header">
      <h1 class="top-air" data-role="page-title"></h1>
    </div>

    {% url 'keywords' as xhr_table_url %}
    {% include 'toastertable.html' %}
  </div>
</div>


  <script>
    $(document).ready(function () {
      var tableElt = $("#{{table_name}}");
      var titleElt = $("[data-role='page-title']");

      tableElt.on("table-done", function (e, total, tableParams) {
        var title = "Select Keywords";

        if (tableParams.search || tableParams.filter) {
          if (total === 0) {
            title = "No Keywords found";
          }
          else if (total > 0) {
            title = total + " Keyword" + (total > 1 ? "s" : '') + " found";
          }
        }

        titleElt.text(title);
      });
    });
  </script>
{% endblock %}