~schooltool-owners/schooltool.peas/packaging

« back to all changes in this revision

Viewing changes to src/schooltool/peas/browser/templates/uce_search.pt

  • Committer: Douglas Cerna
  • Date: 2015-02-17 08:43:21 UTC
  • mfrom: (9.1.28 schooltool.peas)
  • Revision ID: douglascerna@yahoo.com-20150217084321-l9mgb9oifyhjgs93
New release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<tal:block condition="not:view/manager/fromPublication"
 
2
           replace="resource_library:schooltool.table" />
 
3
 
 
4
<script>ST.state.push()</script>
 
5
<tal:script tal:replace="structure scriptlocal:container_id view/manager/html_id" />
 
6
 
 
7
<tal:block i18n:domain="schooltool"
 
8
           define="batch nocall:view/manager/batch|nothing;
 
9
                   search_id string:${view/manager/html_id}-search;
 
10
                   json_url view/view/json_url;">
 
11
  <fieldset>
 
12
    <legend><span i18n:translate="">Search</span></legend>
 
13
    <div class="row" tal:define="title_id view/search_title_id">
 
14
      <div class="label">
 
15
        <label tal:attributes="for title_id">
 
16
          <span tal:content="view/title">[title]</span>
 
17
        </label>
 
18
      </div>
 
19
      <div class="widget">
 
20
        <input type="text" class="text-widget"
 
21
               tal:attributes="
 
22
                    id title_id;
 
23
                    name title_id;
 
24
                    value python:request.get(title_id)"
 
25
               />
 
26
      </div>
 
27
      <script>
 
28
        ST.table.add_autocomplete("group_aware_person_table-ajax-view-context-members-group_aware_person_table--title", "json_uce");
 
29
      </script>
 
30
      <script>
 
31
        $(document).ready(function() {
 
32
          $(window).keydown(function(event){
 
33
            if(event.keyCode == 13) {
 
34
              event.preventDefault();
 
35
              return false;
 
36
            }
 
37
          });
 
38
        });
 
39
      </script>
 
40
    </div>
 
41
  </fieldset>
 
42
</tal:block>
 
43
<script>ST.state.pop()</script>