From 74a4cbc5e851e64575b6f9e07a2b4a48f4e978f5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 26 Feb 2009 15:03:02 -0600 Subject: [PATCH] Reformatting patron attributes editor and display to conform with other standard interfaces. (Corrected) Content-Type: text/plain; charset="utf-8" --- .../prog/en/modules/members/memberentrygen.tmpl | 32 ++++++++----------- .../prog/en/modules/members/moremember.tmpl | 19 +++-------- 2 files changed, 19 insertions(+), 32 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl index abcc658..0e06841 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl @@ -25,13 +25,13 @@ }); function clear_entry(node) { - var original = node.parentNode.parentNode; + var original = node.parentNode; $("input", original).attr('value', ''); $("select", original).attr('value', ''); } function clone_entry(node) { - var original = node.parentNode.parentNode; + var original = node.parentNode; var clone = original.cloneNode(true); var newId = 50 + parseInt(Math.random() * 100000); $("input", clone).attr('id', function() { @@ -40,6 +40,9 @@ $("input", clone).attr('name', function() { return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId); }); + $("label", clone).attr('for', function() { + return $(this).attr("for").replace(/patron_attr_\d+/, 'patron_attr_' + newId); + }); $("select", clone).attr('id', function() { return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId); }); @@ -881,16 +884,11 @@
Additional attributes and identifiers - - - - - +
    -
- - - - +
+ -
TypeValue
() - +
  • + _code" name="_code" value="" /> @@ -916,16 +914,14 @@ (Password: " id="_password" name="_password" />) -
  • - Clear + Clear - New + | New -
    +
    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl index 63b1c24..6d4fc6b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -259,22 +259,13 @@ if (nodename =="barcodes[]"){

    Additional attributes and identifiers

    - - - - - +
    +
      -
    - - - +
  • ">: ()
  • -
    TypeValue
    () - - () - -
    + +
    &step=4">Edit
    -- 1.5.6.5