]> wagnertech.de Git - kivitendo-erp.git/commitdiff
"Erfassen" als normale Links anstelle von Buttons darstellen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 22 Nov 2012 15:20:27 +0000 (16:20 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 22 Nov 2012 15:20:27 +0000 (16:20 +0100)
"Erfassen" sollte als GET-Request erfolgen und nicht als POST.

templates/webpages/am/buchungsgruppe_list.html
templates/webpages/am/lead_list.html
templates/webpages/am/list_price_factors.html
templates/webpages/am/list_tax.html
templates/webpages/am/list_warehouses.html
templates/webpages/amcvar/list_cvar_configs.html
templates/webpages/bankaccounts/bank_account_list_bottom.html
templates/webpages/pe/search.html

index 7f5718d7443b37c5ae501ef35b012d65bdebf10b..55380c79f56813877e00a5cb182ef6eb7d60c2c0 100644 (file)
 </table>
 
 <br>
-<form method=post action=am.pl>
-
-<input name=callback type=hidden value="[% callback | html %]">
-
-<input type=hidden name=type value=buchungsgruppe>
-
-<input class=submit type=submit name=action value="[% 'Add' | $T8 %]">
-
-  </form>
 
+<a href="am.pl?action=add&type=buchungsgruppe&callback=[% HTML.url(callback) %]">[%- LxERP.t8('Add') %]</a>
index 5ccb55c25d0769f607fba8ddb2127d4354a3bb39..1e756bfc8360b85054a756a31af1a9ac984450a2 100644 (file)
 </table>
 
 <br>
-<form method=post action=am.pl>
-
-<input name=callback type=hidden value="[% callback | html %]">
-<input type=hidden name=type value=lead>
-<input class=submit type=submit name=action value="[% 'Add' | $T8 %]">
-
-  </form>
 
+  <a href="am.pl?action=add&type=lead&callback=[% HTML.url(callback) %]">[%- 'Add' | $T8 %]</a>
index 863b1a19271c691f8b18cb32f18857d074c7bfde..06e48a38ae1036d358bd4bc54cde17dc8d3506f6 100644 (file)
  <hr height="3">
 
  <p>
-  <form method="post" action="am.pl">
-   <input type="hidden" name="type" value="price_factor">
-   <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
-
-   <input type="submit" class="submit" name="action" value="[% 'Add' | $T8 %]">
-  </form>
+  <a href="am.pl?action=add&type=price_factor&callback=[% HTML.url(callback) %]">[%- 'Add' | $T8 %]</a>
  </p>
 
  [% L.sortable_element('#price_factor_list tbody', url => 'controller.pl?action=PriceFactor/reorder', with => 'price_factor_id') %]
-
index b5d43bc1176d15af3a52d1d2eed9866f2cac1bdc..0ea65af7e3795ebd74c978fb2d85f7f286c34520 100644 (file)
  </table>
 
  <p>
-  <form method="post" action="am.pl">
-
-   <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
-   <input type="hidden" name="type" value="tax">
-   <input class="submit" type="submit" name="action" value="[% 'Add' | $T8 %]">
-  </form>
+  <a href="am.pl?action=add&type=tax&callback=[% HTML.url(callback) %]">[%- 'Add' | $T8 %]</a>
  </p>
-
-
index 65a9a735f7c454ebb300b92f68131175fd51f59d..4761d3f32381e3c4cdf6a2161f504722c4a3210b 100644 (file)
  <hr height="3">
 
  <p>
-  <form method="post" action="am.pl">
-   <input type="hidden" name="type" value="warehouse">
-
-   <input type="submit" class="submit" name="action" value="[% 'Add' | $T8 %]">
-  </form>
+  <a href="am.pl?action=add&type=warehouse&callback=[% HTML.url(callback) %]">[%- 'Add' | $T8 %]</a>
  </p>
 
  [% L.sortable_element('#warehouse_list tbody', url => 'controller.pl?action=Warehouse/reorder', with => 'warehouse_id') %]
-
index 0a237d41e1e02b57396b5c29e0cff49a15da6ea5..ddf214396b23cc80c38b3e58af6eb19ae43e44d5 100644 (file)
@@ -88,9 +88,8 @@
   <hr height="3">
 
   <p>
-   <input type="submit" class="submit" name="action_add_cvar_config" value="[% 'Add' | $T8 %]">
+   <a href="amcvar.pl?action=add_cvar_config&callback=[% HTML.url(callback) %]">[%- 'Add' | $T8 %]</a>
   </p>
  </form>
 
  [% L.sortable_element('#cvarcfg_list tbody', url => 'controller.pl?action=CustomVariableConfig/reorder', with => 'cvarcfg_id') %]
-
index 8542aab7457bba3022f1ad4ecd4ceaaa34d9a9f1..202dd2d4c22e1cee90d08f1d9af2c9fc0ba73d48 100644 (file)
@@ -1,10 +1,4 @@
 [% USE T8 %][% USE HTML %]
- <form action="dispatcher.pl?M=bankaccounts" method="post">
-  <p>
-   [%- 'New bank account' | $T8 %]<br>
-   <input type="submit" name="A_bank_account_add" value="[%- 'Add' | $T8 %]">
-  </p>
-
-  <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
- </form>
-
+ <p>
+  <a href="dispatcher.pl?M=bankaccounts&A=bank_account_add&callback=[% HTML.url(callback) %]">[%- 'New bank account' | $T8 %]</a>
+ </p>
index 714d66ebd8be4ec3b9d75a24bc097dec4f4dfd31..9cbb93189d76cb288255efd6e86eb2271d43dccf 100644 (file)
@@ -1,5 +1,6 @@
 [%- USE T8 %]
 [%- USE LxERP %]
+[%- USE HTML %]
 
 <form method=post action="[% script %]">
 
@@ -40,6 +41,6 @@
 
 <br>
 <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
+|
+<a href="pe.pl?action=add&type=[% HTML.url(type) %]">[%- LxERP.t8('Add') %]</a>
 </form>
-
-