summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/Form.pm4
-rwxr-xr-xbin/rc.pl18
-rwxr-xr-xbin/rp.pl12
3 files changed, 17 insertions, 17 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index a917943e..ee1c42f9 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -1313,8 +1313,8 @@ sub add_date {
sub print_button {
my ($self, $button, $name) = @_;
- print qq|<input class="submit" type="submit" name="action" value="$button->{$name}{value}" accesskey="$button->{$name}{key}" title="$button->{$name}{value} [Alt-$button->{$name}{key}]" />\n|;
-}
+ print qq|<button class="submit" type="submit" name="action" value="$name" accesskey="$button->{$name}{key}" title="$button->{$name}{value} [Alt-$button->{$name}{key}]">$button->{$name}{value}</button>\n|;
+}
# Database routines used throughout
diff --git a/bin/rc.pl b/bin/rc.pl
index 32301e77..498a2ea0 100755
--- a/bin/rc.pl
+++ b/bin/rc.pl
@@ -167,7 +167,7 @@ sub reconciliation {
$form->hide_form(qw(path login sessionid));
print qq|
-<input type=submit class=submit name=action value="|.$locale->text('Continue').qq|">
+<button type="submit" class="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button>
</form>
|;
@@ -315,8 +315,8 @@ function check_errors(){
<input type=button name=calculate class=submit onClick="custom_calc_total()"
value='Calculate'>
|;
- print qq|</table><input type=submit name=action value="|.
- $locale->text("close_till").qq|">|;
+ print qq|</table><button type="submit" name="action" value="close_till">|.
+ $locale->text("close_till").qq|</button>|;
print qq|
</form>
@@ -665,14 +665,14 @@ sub display_form {
|;
if ($form->{'pos'}){
- $close_next = qq|<input type=submit class=submit name=action
- value="|.$locale->text('close_next').qq|">|;
+ $close_next = qq|<button type="submit" class="submit" name="action"
+ value="close_next">|.$locale->text('close_next').qq|</button>|;
$done = "";
}
else {
$close_next = "";
- $done = qq|<input type=submit class=submit name=action
- value="|.$locale->text('Done').qq|">|;
+ $done = qq|<button type="submit" class="submit" name="action"
+ value="done">|.$locale->text('Done').qq|</button>|;
}
if ($form->{'pos'}){
$difference = qq|
@@ -743,8 +743,8 @@ sub display_form {
print qq|
<br>
-<input type=submit class=submit name=action value="|.$locale->text('Update').qq|">
-<input type=submit class=submit name=action value="|.$locale->text('Select all').qq|">
+<button type="submit" class="submit" name="action" value="update">|.$locale->text('Update').qq|</button>
+<button type="submit" class="submit" name="action" value="select_all">|.$locale->text('Select all').qq|</button>
$done
$close_next |;
}
diff --git a/bin/rp.pl b/bin/rp.pl
index 752ea264..34d43438 100755
--- a/bin/rp.pl
+++ b/bin/rp.pl
@@ -769,11 +769,11 @@ $gifi
</table>
<br>
-<input type=hidden name=path value=$form->{path}>
-<input type=hidden name=login value=$form->{login}>
-<input type=hidden name=sessionid value=$form->{sessionid}>
+<input type="hidden" name="path" value="$form->{path}">
+<input type="hidden" name="login" value="$form->{login}">
+<input type="hidden" name="sessionid" value="$form->{sessionid}">
-<input type=submit class=submit name=action value="|.$locale->text('Continue').qq|">
+<button type="submit" class="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button>
</form>
|;
@@ -1876,10 +1876,10 @@ sub e_mail {
</tr>
</table>
-<input type=hidden name=nextsub value=send_email>
+<input type="hidden" name="nextsub" value="send_email">
<br>
-<input name=action class=submit type=submit value="|.$locale->text('Continue').qq|">
+<button name="action" class="submit" type="submit" value="continue">|.$locale->text('Continue').qq|</button>
</form>
</body>