]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/settings/index.tt2
Move sms and hostname to settings
[ndwebbie.git] / root / src / settings / index.tt2
index 8cafbf4890200404918ffe880fd707d3a62eff55..78e1a145970ddb76135cd15436fa6dbcb5d37783 100644 (file)
@@ -9,6 +9,20 @@
        <br>
        <input type="submit" value="Change">
 </fieldset></form>
+<form action="[% c.uri_for('postsmsupdate') %]" method="post">
+<fieldset class="forum-post"> <legend>SMS</legend>
+       <p>Number:
+       <input type="text" name="sms" value="[% u.sms %]">
+       Info to DCs: <input type="text" name="smsnote" value="[% u.sms_note | html %]">
+       </p>
+       <p>
+       Wake me up if needed:
+       <input type="checkbox" name="callme" value="TRUE"
+       [% IF u.call_if_needed %]checked[% END %]>
+       <input type="submit" value="Submit">
+       </p>
+</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">
@@ -19,7 +33,7 @@
 </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">
+       <input type="text" name="birthday" value="[% u.birthday %]" id="birthday">
        <br><input type="submit" value="Change">
 </fieldset></form>
 <form action="[% c.uri_for('changePassword') %]" method="post"> <fieldset> <legend>Change password</legend>
        <input type="submit" value="Change"></p>
        <p>Remember that GMT stays the same all year, so if you're in the UK you should pick Europe/London.</p>
 </form></fieldset>
+<form action="[% c.uri_for('posthostupdate') %]" method="post">
+<fieldset class="forum-post"> <legend>Hostname</legend>
+       <p>Hostname:
+       <input style="width:25em" type="text" name="hostname" value="[% u.hostmask %]">
+       <input type="submit" value="Submit">
+       </p>
+</fieldset>
+</form>
+</div>
 [%- site.stylesheets = ['ui/ui.datepicker.css'] %]
 <script type="text/javascript" src="/static/ui/ui.core.min.js"></script>
 <script type="text/javascript" src="/static/ui/ui.datepicker.min.js"></script>