Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1321

Přidáno uživatelem Ondřej Fibich před téměř 13 roky(ů)

Upravy:

- zobrazeni popisku praci u zobrazeni pracovniho vykazu
- umozneni specifikovat DOM ID gridu

Zobrazit rozdíly:

freenetis/branches/testing/application/i18n/cs_CZ/texts.php
'hide' => 'Skrýt',
'hide form items' => 'Skrýt položky formuláře',
'hide this table' => 'Schovat tuto tabulku',
'hide whole descriptions' => 'Skrýt celé popisky',
'history' => 'Historie',
'history of phone services between' => 'Historie telefonních služeb mezi',
'history of phone services between user and phone' => 'Historie telefonních služeb mezi uživatelem a číslem',
......
'show vlan' => 'Zobrazit VLAN',
'show vlan interface' => 'Zobrazit VLAN rozhraní',
'show voip account' => 'Zobrazit VoIP účet',
'show whole descriptions' => 'Zobrazit celé popisky',
'show work' => 'Zobrazit práci',
'show work report' => 'Zobrazit pracovní výkaz',
'show work reports' => 'Zobrazit pracovní výkazy',
freenetis/branches/testing/application/controllers/work_reports.php
(
'use_paginator' => false,
'use_selector' => false,
'total_items' => count($works)
'total_items' => count($works),
'id' => 'work_reports__show_grid'
));
if ($can_vote)
freenetis/branches/testing/application/libraries/Grid.php
protected $form_submit_value = '';
protected $form_extra_buttons = array();
protected $buttons = array();
protected $id = NULL;
private $first_add_button;
/**
......
$this->template->form = $this->form;
$this->template->form_extra_buttons = $this->form_extra_buttons;
$this->template->form_submit_value = ($this->form_submit_value != '') ? $this->form_submit_value : __('Update');
$this->template->id = $this->id;
return $this->template->render();
}
freenetis/branches/testing/application/views/js/work_reports_show.php
return false;
});
// current state of description
var work_report__show_descr__state = true;
$('#work_report__show_descr').click(function ()
{
$('#work_reports__show_grid tbody tr td:nth-child(2) .help').each(function (i)
{
var shortcut = $(this).text();
var title = $(this).attr('title');
$(this).text(title);
$(this).attr('title', shortcut);
});
work_report__show_descr__state = !work_report__show_descr__state;
if (work_report__show_descr__state)
{
$(this).text('<?php echo __('Show whole descriptions'); ?>');
}
else
{
$(this).text('<?php echo __('Hide whole descriptions'); ?>');
}
return false;
});
freenetis/branches/testing/application/views/work_reports/show.php
<br /><br />
<h3><?php echo __('Works') ?></h3>
<a href="#" id="work_report__show_descr"><?php echo __('Show whole descriptions') ?></a> |
<?php echo $works_grid ?>
freenetis/branches/testing/application/views/grid_template.php
?>
<?php echo ($label) ? $label.$separator : '' ?>
<table class="main grid_table tablesorter" cellspacing="0">
<table<?php echo (empty($id) ? '' : ' id="' . $id . '"') ?> class="main grid_table tablesorter" cellspacing="0">
<?php if ($show_labels): ?>
<thead>
<tr>

Také k dispozici: Unified diff