diff options
-rwxr-xr-x | LedgerSMB/Form.pm | 4 | ||||
-rwxr-xr-x | bin/rc.pl | 18 | ||||
-rwxr-xr-x | bin/rp.pl | 12 |
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 @@ -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 |; } @@ -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> |