~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/templates/packagesearch-macros.pt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-04 18:33:35 UTC
  • mfrom: (13607.2.2 bug-820900)
  • Revision ID: launchpad@pqm.canonical.com-20110804183335-81w3lyus7i0xof1u
[r=allenap][bug=820900] Display an error when the filtering option
        passed is not a valid key.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    <div style="float:left; margin-right:1px;">
66
66
      <label for="field.name_filter">Show packages or packagesets named:</label>
67
67
    </div>
68
 
    <div style="float:left;">
 
68
    <div style="float:left;"
 
69
      tal:define="widget nocall:view/widgets/package_type;
 
70
                  field_name widget/context/__name__;
 
71
                  error python:view.getFieldError(field_name);">
69
72
      <input
70
73
        id="field.name_filter" title="Package Name" size="20"
71
74
        type="text" name="field.name_filter"
72
75
        tal:attributes="value request/field.name_filter|nothing"/>
73
76
      <input type="submit" value="Filter" />
74
 
     <br />
75
 
     <tal:package_type
76
 
       replace="structure view/widgets/package_type" />
77
 
    </div>
 
77
      <br />
 
78
      <tal:package_type
 
79
        replace="structure widget" />
 
80
      <div class="error message" tal:condition="error"
 
81
        tal:content="structure error">Error message</div>
 
82
      </div>
78
83
    <div class="clearfix"></div>
79
84
  </form>
80
85