histogram: Make histograms crash less
[ninja.git] / application / views / change_password / change_password.php
blob47cbd758cfa26ec83e9b3e25aea19f0b92be38cd
1 <?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
3 <div>
4 <?php
5 if (isset($error_msg)) echo $error_msg; ?>
6 <?php echo $status_msg ?>
7 <?php
8 echo form::open('change_password/change_password');
9 echo '<h2>'._('Change password').'</h2>';
11 $fields = array(
12 'current_password' => form::password(array('name' => 'current_password', 'autocomplete' => 'off')),
13 'new_password' => form::password(array('name' => 'new_password', 'autocomplete' => 'off')),
14 'confirm_password' => form::password(array('name' => 'confirm_password', 'autocomplete' => 'off'))
16 $labels = array(
17 'current_password' => _('Current password'),
18 'new_password' => _('New password'),
19 'confirm_password' => _('Repeat new password')
22 <table style="border: none;" class="white-table">
23 <?php
24 foreach ($fields as $label => $field) {
25 echo '
26 <tr>
27 <td style="border: none; padding-right: 10px; width: 100px">'.form::label($label, $labels[$label]).'</td>
28 <td style="border: none;">'.$field.'</td>
29 </tr>';
30 } ?>
31 <tr>
32 <td style="border: none;"></td>
33 <td style="border: none;"><?php echo form::submit('change_password', _('Change password')); ?></td>
34 </tr>
35 </table>
36 <?php
39 echo form::close();
41 </div>