]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/settings/index.tt2
Add discord_id
[ndwebbie.git] / root / src / settings / index.tt2
index c2a88ce8eb5a71ae017a91dfaf556c4ba8b2e883..8cafbf4890200404918ffe880fd707d3a62eff55 100644 (file)
@@ -9,6 +9,14 @@
        <br>
        <input type="submit" value="Change">
 </fieldset></form>
+<form action="[% c.uri_for('changeDiscordId') %]" method="post"><fieldset> <legend>Discord ID</legend>
+       <input type="text" name="discord_id" value="[% discord_id | html %]" class="discord_id">
+       <br><input type="submit" value="Change">
+</fieldset></form>
+<form action="[% c.uri_for('changeEmail') %]" method="post"><fieldset> <legend>Email</legend>
+       <input type="text" name="email" value="[% email | html %]" class="email">
+       <br><input type="submit" value="Change">
+</fieldset></form>
 <form action="[% c.uri_for('changeBirthday') %]" method="post"><fieldset> <legend>Birthday</legend>
        YYYY-MM-DD:
        <input type="text" name="birthday" value="[% birthday %]" id="birthday">
@@ -63,6 +71,7 @@ $(document).ready(function(){
                                        $("#tzcountry").append(opt);
                                        opt.attr('value',$(this).text()).text($(this).text());
                                });
+                               $("#tzcountry").change();
                        });
                }
        });