Skip to content

Commit

Permalink
Merge pull request #13 from Joana-Martins/clear-button
Browse files Browse the repository at this point in the history
Normalize clear buttons
  • Loading branch information
rlaiola authored Nov 6, 2024
2 parents 91186cf + c5ae0d2 commit a53322d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/admin/site.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ function sitech(n) {
<input type="submit" name="Submit1" value="Send" onClick="conf()">
<input type="submit" name="Submit2" value="Start Now" onClick="conf()">
<input type="submit" name="Submit3" value="Stop Now" onClick="conf()">
<input type="reset" name="Submit4" value="Restore fields">
<input type="reset" name="Submit4" value="Clear">
<br>
<input type="submit" name="Logoff" value="Logoff all users" onClick="conf()">
<input type="submit" name="Logins" value="Disable logins" onClick="conf()">
Expand Down Expand Up @@ -605,11 +605,12 @@ function sitech(n) {
<tr>
<td width="25%" align=right>Import file:</td>
<td width="75%">
<input type="file" name="importfile" size="40">
<input type="file" id="importfile" name="importfile" size="40">
</td>
</tr>
</table>
<input type="submit" name="Submit" value="Import" onClick="conf()">
<input type="button" onclick="document.getElementById('importfile').value=''" value="Clear">
</center>
<?php } ?>
</form>
Expand Down
2 changes: 1 addition & 1 deletion src/admin/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ function conf5() {
<?php if(isset($u)) { ?>
<input type="submit" name="Delete" value="Delete" onClick="conf4()">
<?php } ?>
<input type="submit" name="Cancel" value="Cancel" onClick="conf5()">
<input type="submit" name="Clear" value="Clear" onClick="conf5()">
<?php if(isset($u)) { ?>
<br><br><b>WARNING: deleting a user will completely remove EVERYTHING related to it (including runs, clarifications, etc).<b><br>
<?php } ?>
Expand Down
1 change: 1 addition & 0 deletions src/optionlower.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function computeHASH()
</center>
<center>
<input type="submit" name="Submit" value="Send">
<input type="reset" name="Clear" value="Clear">
</center>
</form>

Expand Down
1 change: 1 addition & 0 deletions src/team/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ function conf2(url) {
</script>
<center>
<input type="submit" name="Submit" value="Send" onClick="conf()">
<input type="reset" name="Submit2" value="Clear">
</center>
</form>

Expand Down

0 comments on commit a53322d

Please sign in to comment.