Ansprechpartner löschen im contact partial rendern.
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 20 Feb 2012 16:00:50 +0000 (17:00 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 20 Feb 2012 16:00:50 +0000 (17:00 +0100)
templates/webpages/ct/_shipto.html
templates/webpages/ct/form_header.html

index c8db22d..00dfd96 100644 (file)
@@ -4,7 +4,7 @@
       <th align="right">[% 'Shipping Address' | $T8 %]</th>
       <td>
        [% L.select_tag('shipto_id', L.options_for_select(SHIPTO, default => shipto_id, value => 'shipto_id', title_sub => \shipto_label, with_empty => 1),
-                       onchange => "\$('#shipto_table').load('ct.pl?action=get_shipto&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
+                       onchange => "\$('#shipto').load('ct.pl?action=get_shipto&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
       </td>
      </tr>
 
@@ -59,3 +59,8 @@
       <td><input id="shiptoemail" name="shiptoemail" size="45" value="[% HTML.escape(shiptoemail) %]"></td>
      </tr>
     </table>
+
+[%- IF shipto_id %]
+    <input type="submit" id="delete_shipto" name="action" value="[% 'Delete Shipto' | $T8 %]">
+    <br style="clear: left" />
+[%- END %]
index 501ebaa..814ccb0 100644 (file)
 
    <div id="shipto" class="tabcontent">
     [% INCLUDE 'ct/_shipto.html' %]
-
-    <input type="submit" id="delete_shipto" name="action" value="[% 'Delete Shipto' | $T8 %]" disabled>
-    <br style="clear: left" />
    </div>
 
    <div id="contacts" class="tabcontent">