Merge lp:~ivo-kracht/launchpad/bug-806660 into lp:launchpad

Proposed by Ivo Kracht
Status: Merged
Approved by: Abel Deuring
Approved revision: no longer in the source branch.
Merged at revision: 15500
Proposed branch: lp:~ivo-kracht/launchpad/bug-806660
Merge into: lp:launchpad
Diff against target: 34 lines (+10/-4)
1 file modified
lib/lp/registry/templates/person-editemails.pt (+10/-4)
To merge this branch: bzr merge lp:~ivo-kracht/launchpad/bug-806660
Reviewer Review Type Date Requested Status
Richard Harding (community) Approve
Review via email: mp+112125@code.launchpad.net

Commit message

seperate form for the "Add new address" section

Description of the change

I moved the “Add a new address“ section into a seperate html form. It should now activate the “Add“ button when something is typed into the textbox.

Pre-imp call with adeuring

As far as I (and Abel Deuring) can see there are no tests that check this so I don't list any. I ran all story tests though and there where no errors or failures.

= Launchpad lint =

Checking for conflicts and issues in changed files.

Linting changed files:
  lib/lp/registry/templates/person-editemails.pt

To post a comment you must log in.
Revision history for this message
Richard Harding (rharding) wrote :

Thanks for the change. Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/registry/templates/person-editemails.pt'
2--- lib/lp/registry/templates/person-editemails.pt 2009-09-16 23:54:18 +0000
3+++ lib/lp/registry/templates/person-editemails.pt 2012-06-26 14:45:44 +0000
4@@ -28,8 +28,7 @@
5 <metal:block use-macro="context/@@launchpad_form/widget_row" />
6 </tal:widget>
7 <tr>
8- <td></td>
9- <td>
10+ <td colspan="2">
11 <input
12 tal:replace="structure view/action_set_preferred/render" />
13 <input tal:replace="structure
14@@ -52,11 +51,18 @@
15 </tr>
16 </tal:block>
17
18+ </table>
19+ </metal:widgets>
20+ <metal:widgets fill-slot="buttons" />
21+ </div>
22+
23+ <div metal:use-macro="context/@@launchpad_form/form">
24+ <metal:widgets fill-slot="widgets">
25+ <table class="form">
26 <tal:widget define="widget nocall:view/widgets/newemail">
27 <metal:block use-macro="context/@@launchpad_form/widget_row" />
28 <tr>
29- <td></td>
30- <td>
31+ <td colspan="2">
32 <input tal:replace="structure view/action_add_email/render" />
33 </td>
34 </tr>