Newer
Older
{if $session->loggedin }
<!-- style="width: 80%; margin: auto;" was in here originally, why? -->
<div class="box" >
<div class="boxhead"><h2>User Settings</h2></div>
<div class="boxcontent">
Graham Cole
committed
<form class="admin" action="{$baseurl}{$path}" method="POST">
<fieldset>
<legend> System Details </legend>
<div class="row">
<label for="username">Username:</label>
<span class="textinput" id="username">
{$session->username}
<div class="note">If you <em>need</em> to change your username, please contact a member of admin.</div>
</span>
</div>
<div class="row">
<label for="fullname">Real name:</label>
<span class="textinput">
{$session->fullname}
<div class="note">If your name has changed (e.g. through marriage), please contact a member of admin.</div>
</span>
</div>
<div class="row">
<label for="groups">Groups: </label>
<span class="textinput"><span class="note"><a href="/Knowledge/Help/Admin%20Tools/Groups">What are “Groups”?</a></span></span>
</div>
<div class="row">
<span class="textinput" id="groups">
<ul style="margin-top: 0; margin-bottom: 0;">
{foreach name=groups from=$session->groups key=grpname item=grpid}
<li>{$grpname}</li>
{/foreach}
</ul>
<div class="note">To be added to or removed from groups, please contact a member of admin.</div>
</span>
</div>
<div class="row">
<label for="hackergotchi">Hackergotchi (user avatar):</label>
<span class="textinput" id="hackergotchi">
{if $hackergotchi}
<img src="{$baseurl}/pictures/people/{$session->username}.png" />
Graham Cole
committed
<form action="{$baseurl}{$path}" method="post">
<input type="hidden" name="action" value="clearhackergotchi" />
<input type="submit" value="Clear Hackergotchi" />
</form>
{else}
No hackergotchi
{/if}
</span>
</div>
Graham Cole
committed
<form method="post" action="{$baseurl}{$path}" enctype="multipart/form-data">
<div class="row">
<label>Update Hackergotchi:</label>
<span class="textinput">
<input name="hackergotchi" type="file" />
<div class="note">See <a href="http://en.wikipedia.org/wiki/Hackergotchi">Wikipedia's entry on Hackergotchis</a> if you've not got a clue what we're on about!</div>
<div class="note">This must be an image in PNG format with dimensions no greater than 128x128 pixels.</div>
</span>
</div>
<div class="row">
<input type="hidden" name="action" value="updatehackergotchi" />
<input type="submit" value="Change" />
</div>
</form>
</fieldset>
Graham Cole
committed
<form method="post" action="{$baseurl}{$path}">
<fieldset>
<legend> Password </legend>
<input type="hidden" name="action" value="changepass" />
<div class="row">
<span class="textinput" id="password">
<div class="row">
<label>Old Password</label>
<span class="textinput"><input type="password" name="oldpass" /></span>
</div>
<div class="row">
<label>New Password</label>
<span class="textinput">
<input type="password" name="newpass1" />
<div class="note">
Passwords should be <em>at least</em> six characters long,
with upper/lowercase, punctuation, digits and all that jazz.
</div>
</span>
</div>
<div class="row">
<label>New Password (again)</label>
<span class="textinput"><input type="password" name="newpass2" /></span>
</div>
</span>
</div>
<div class="row">
<input type="submit" value="Change" />
</div>
</fieldset>
</form>
Graham Cole
committed
<form method="post" action="{$baseurl}{$path}">
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<fieldset>
<legend> Contact Details </legend>
<input type="hidden" name="action" value="changecontact" />
<div class="row">
<label for="address">Address:</label>
<span class="textinput">
<textarea id="address" name="address" rows="4" cols="40">{$member.address}</textarea>
</span>
</div>
<div class="row">
<label for="phone">Phone:</label>
<span class="textinput">
<input type="text" name="phone" id="phone" value="{$member.phone}" style="width: 95%;" />
</span>
</div>
<div class="row">
<label for="email">External Email:</label>
<span class="textinput">
<input type="text" name="email" id="email" value="{$member.email}" style="width: 95%;" />
<div class="note">We are required by the Student Union to keep contact details for our members. Please note that these details will be held in accordance with the Data Protection Act.</div>
</span>
</div>
<div class="row">
<input type="submit" value="Change" />
</div>
</fieldset>
</form>
Graham Cole
committed
<form method="post" action="{$baseurl}{$path}">
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<fieldset>
<legend> Room Network Configuration </legend>
<input type="hidden" name="action" value="changeguestnet" />
<div class="row">
<label for="guest_mac">Current GuestNet MAC:</label>
<span class="textinput">
<input type="text" name="currentGuestNetMAC" id="currentGuestNetMAC" value="{$currentGuestNetMAC}" style="width: 95%;" disabled="disabled"/>
</span>
</div>
{if isset($newGuestNetMAC) }
<div class="row">
<label for="wireless_mac">New GuestNet MAC:</label>
<span class="textinput">
<input type="text" name="newGuestNetMAC" id="newGuestNetMAC" value="{$newGuestNetMAC}" style="width: 95%;" disabled="disabled" />
</span>
<span>
You are currently connected from a different MAC address via GuestNet. If you would like you use this
new MAC to access GuestNet, use the change button, but be aware you can only have 1 registered MAC
address at a time.
</span>
</div>
<div class="row">
<input type="submit" value="Change" />
</div>
{/if}
</fieldset>
</form>
<div class="clear"></div>
</form>
</div>
<div class="hollowfoot"><div><div></div></div></div>
</div>
{else}
<div class="errorbar">
<div><div><div>
You must be logged in to view or change your user settings.
</div></div></div>
</div>
{/if}