67 lines
2.0 KiB
Plaintext
67 lines
2.0 KiB
Plaintext
|
% title 'UNIX.dog Account';
|
||
|
% layout 'default';
|
||
|
<% if (my $err = stash 'err') { %>
|
||
|
<p class="error">
|
||
|
<%= $err %>
|
||
|
</p>
|
||
|
<% if (my $failed = stash 'failed' and my $v = stash 'v') { %>
|
||
|
<ul class="error">
|
||
|
<% foreach my $fn (@{$failed}) { %>
|
||
|
<% my ($check, $result, @args) = @{$v->error($fn)}; %>
|
||
|
<li><%= $fn %>: <%= $check %> <%= join "-", @args %></li>
|
||
|
<% } %>
|
||
|
</ul>
|
||
|
<% } %>
|
||
|
<% } %>
|
||
|
<p>
|
||
|
Please note that this information is public. We don't recommend
|
||
|
that you publish your actual phone number or actual name, but
|
||
|
it's fun for some jokes. :)
|
||
|
</p>
|
||
|
<p>
|
||
|
Here is your current information:
|
||
|
</p>
|
||
|
%= form_for account => (method => 'POST') => begin
|
||
|
<p>
|
||
|
%= label_for gecos => 'GECOS field:'
|
||
|
%= text_field gecos => $gecos, id => 'gecos'
|
||
|
</p>
|
||
|
<p>
|
||
|
%= label_for givenName => 'First name:'
|
||
|
%= text_field givenName => $givenName, id => 'givenName'
|
||
|
</p>
|
||
|
<p>
|
||
|
%= label_for surname => 'Last name:'
|
||
|
%= text_field surname => $surname, id => 'surname'
|
||
|
</p>
|
||
|
<p>
|
||
|
%= label_for loginShell => 'Login shell:'
|
||
|
%= text_field loginShell => $loginShell, id => 'loginShell'
|
||
|
</p>
|
||
|
<p>
|
||
|
%= label_for roomNumber => 'Room number:'
|
||
|
%= text_field roomNumber => $roomNumber, id => 'roomNumber'
|
||
|
</p>
|
||
|
<p>
|
||
|
%= label_for telNum => 'Telephone number:'
|
||
|
%= text_field telNum => $telNum, id => 'telNum'
|
||
|
</p>
|
||
|
<p>
|
||
|
%= label_for sshKeys => 'SSH keys:'
|
||
|
<br>
|
||
|
%= text_area sshKeys => $sshKeys, id => 'sshKeys'
|
||
|
</p>
|
||
|
<p>
|
||
|
Leave this blank if you don't want to change your password.
|
||
|
<br>
|
||
|
%= label_for newPasswd => 'New password:'
|
||
|
%= password_field 'newPasswd', id => 'newPasswd'
|
||
|
</p>
|
||
|
<p>
|
||
|
%= label_for curPasswd => 'Current password:'
|
||
|
%= password_field 'curPasswd', id => 'curPasswd'
|
||
|
</p>
|
||
|
<input type="text" name="username" hidden="true" value="<%= $username %>">
|
||
|
%= submit_button 'Update!'
|
||
|
% end
|