Improving sustainability : removing duplicate strings --- .../prog/en/modules/tools/letter.tmpl | 54 +------------------- 1 files changed, 2 insertions(+), 52 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl index 7dbb3ba..985e636 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl @@ -171,7 +171,6 @@ $(document).ready(function() { <!-- TMPL_IF NAME="add_form" --> - <form action="/cgi-bin/koha/tools/letter.pl" name="Aform" method="post"> <input type="hidden" name="op" value="add_validate" /> <input type="hidden" name="checked" value="0" /> @@ -183,10 +182,9 @@ $(document).ready(function() { <fieldset class="rows"> <legend><!-- TMPL_IF name="modify" -->Modify notice<!-- TMPL_ELSE -->Add notice<!-- /TMPL_IF --></legend> <ol> - <!-- TMPL_IF NAME="modify" --> <li> <label for="module">Koha module:</label> - <select name="module" id="module"> + <!-- TMPL_IF NAME="modify" --><select name="module" id="module"><!-- /TMPL_IF --> <!-- TMPL_IF NAME="adding" --> <select name="module" id="module" onchange="javascript:window.location.href = unescape(window.location.pathname)+'?op=add_form&module='+this.value+'&content='+window.document.forms['Aform'].elements['content'].value;"><!--/TMPL_IF--> <!--TMPL_IF Name="catalogue"--> <option value="catalogue" selected="selected">Catalog</option> <!--TMPL_ELSE--> @@ -225,56 +223,8 @@ $(document).ready(function() { </select> </li> <li> - <span class="label">Code:</span><input type="hidden" id="code" name="code" value="<!-- TMPL_VAR NAME="code" -->" /><!-- TMPL_VAR NAME="code" --> + <span class="label">Code:</span><!--TMPL_IF Name="adding"--><input type="text" id="code" name="code" size="20" maxlength="20" /><!--TMPL_ELSE--><input type="hidden" id="code" name="code" value="<!-- TMPL_VAR NAME="code" -->" /><!-- TMPL_VAR NAME="code" --><!--/TMPL_IF--> </li> - <!-- /TMPL_IF --> - - <!-- TMPL_IF NAME="adding" --> - <li> - <label for="module">Koha module:</label> - <select name="module" id="module" onchange="javascript:window.location.href = unescape(window.location.pathname)+'?op=add_form&module='+this.value+'&content='+window.document.forms['Aform'].elements['content'].value;"> - <!--TMPL_IF Name="catalogue"--> - <option value="catalogue" selected="selected">Catalog</option> - <!--TMPL_ELSE--> - <option value="catalogue" >Catalog</option> - <!--/TMPL_IF--> - <!--TMPL_IF Name="serial"--> - <option value="serial" selected="selected">Serials (Routing List)</option> - <!--TMPL_ELSE--> - <option value="serial">Serials (Routing List)</option> - <!--/TMPL_IF--> - <!--TMPL_IF Name="claimacquisition"--> - <option value="claimacquisition" selected="selected">Claim Acquisition</option> - <!--TMPL_ELSE--> - <option value="claimacquisition">Claim Acquisition</option> - <!--/TMPL_IF --> - <!--TMPL_IF Name="claimissues"--> - <option value="claimissues" selected="selected">Claim Serial Issues</option> - <!--TMPL_ELSE--> - <option value="claimissues">Claim Serial Issues</option> - <!--/TMPL_IF--> - <!--TMPL_IF Name="circulation"--> - <option value="circulation" selected="selected">Circulation</option> - <!--TMPL_ELSE--> - <option value="circulation">Circulation</option> - <!--/TMPL_IF--> - <!--TMPL_IF Name="members"--> - <option value="members" selected="selected">Members</option> - <!--TMPL_ELSE--> - <option value="members">Members</option> - <!--/TMPL_IF--> - <!--TMPL_IF Name="reserves"--> - <option value="reserves" selected="selected">Holds</option> - <!--TMPL_ELSE--> - <option value="reserves">Holds</option> - <!--/TMPL_IF--> - </select> - </li> - <li> - <label for="code">Code:</label><input type="text" id="code" name="code" size="20" maxlength="20" /> - </li> - <!-- /TMPL_IF --> - <li> <label for="name">Name:</label><input type="text" id="name" name="name" size="60" value="<!-- TMPL_VAR NAME="name" -->" /> </li> -- 1.6.0.4 _______________________________________________ Koha-patches mailing list Koha-patches@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-patches