Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 933

Přidáno uživatelem Michal Kliment před více než 13 roky(ů)

Oprava mensi chyby na profilu clena. Zobrazovani aplikacniho hesla na profilu clena a uzivatele az na vyzadani (do te doby skryte za hvezdicky).

Zobrazit rozdíly:

freenetis/branches/testing/media/css/style.css
.right {
text-align: right;
}
#show_application_password_link {
float: right;
margin-right: 40px;
}
freenetis/branches/testing/application/i18n/cs_CZ/texts.php
'help' => 'Nápověda',
'help register' => 'Registr nápovědy',
'help text not found' => 'Text nápovědy nenalezen.',
'hide' => 'Skrýt',
'hide this table' => 'Schovat tuto tabulku',
'history' => 'Historie',
'history of phone services between' => 'Historie telefonních služeb mezi',
freenetis/branches/testing/application/controllers/members.php
// user edit link
if ($member->type != $former_type_id && $this->acl_check_edit('Users_Controller','users', $member->id))
$user_links[] = html::anchor(url_lang::base().'users/edit/'.$member->id, url_lang::lang('texts.Edit'));
$user_links[] = html::anchor(url_lang::base().'users/edit/'.$user->id, url_lang::lang('texts.Edit'));
// user's devices link
if ($this->acl_check_view('Devices_Controller', 'devices', $member->id))
freenetis/branches/testing/application/views/main.php
return window.confirm('<?php echo url_lang::lang('texts.Do you really want to delete this record') ?>?');
})
$(document).ready(function(){
$("#application_password_span").addClass("dispNone");
$("#fake_application_password_span").removeClass("dispNone");
$("#show_application_password_link").removeClass("dispNone");
$("#show_application_password_link").click(function () {
$("#application_password_span").toggleClass("dispNone");
$("#fake_application_password_span").toggleClass("dispNone");
if ($("#application_password_span").hasClass("dispNone"))
$("#show_application_password_link").text("<?php echo url_lang::lang('texts.Show') ?>");
else
$("#show_application_password_link").text("<?php echo url_lang::lang('texts.Hide') ?>");
return false;
});
});
$.validator.addMethod('ip_address', function(value) {
return value.match(/^((25[0-5])|(2[0-4][0-9])|(1[0-9][0-9])|([1-9][0-9])|[0-9])\.((25[0-5])|(2[0-4][0-9])|(1[0-9][0-9])|([1-9][0-9])|[0-9])\.((25[0-5])|(2[0-4][0-9])|(1[0-9][0-9])|([1-9][0-9])|[0-9])\.((25[0-5])|(2[0-4][0-9])|(1[0-9][0-9])|([1-9][0-9])|[0-9])$/);
}, '<?php echo url_lang::lang('texts.Invalid IP address') ?>');
freenetis/branches/testing/application/views/members_show.php
<?php if ($this->acl_check_view('Users_Controller', 'application_password', $member->id)) { ?>
<tr>
<th><?php echo url_lang::lang('texts.Application password').'&nbsp;'.help::hint('application_password') ?></th>
<td><?php echo $user->application_password ?></td>
<td>
<span id="application_password_span"><?php echo $user->application_password ?></span>
<span id="fake_application_password_span" class="dispNone">***********</span>
<a id="show_application_password_link" class="dispNone" href="#"><?php echo url_lang::lang('texts.Show') ?></a>
<div class="clear"></div>
</td>
</tr>
<?php } ?>
<?php if ($this->acl_check_view('Users_Controller', 'comment', $member->id)) { ?>
freenetis/branches/testing/application/views/users_show.php
<td><?php echo $user_data->birthday ?></td>
</tr>
<tr>
<th><?php echo url_lang::lang('texts.Application password').'&nbsp;'.help::hint('application_password') ?></th>
<td>
<span id="application_password_span"><?php echo $user_data->application_password ?></span>
<span id="fake_application_password_span" class="dispNone">***********</span>
<a id="show_application_password_link" class="dispNone" href="#"><?php echo url_lang::lang('texts.Show') ?></a>
<div class="clear"></div>
</td>
</tr>
<tr>
<th><?php echo url_lang::lang('texts.Comment') ?></th>
<td><?php echo trim($user_data->comment)!='' ? $user_data->comment : '&nbsp;'; ?></td>
</tr>

Také k dispozici: Unified diff