// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
// TODO: Improve titles for consistency, so that each title explains correctly what each
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
// TODO: Improve titles for consistency, so that each title explains correctly what each
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Login',
// TODO: translate the following.
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Anmelden',
'label.mark_paid' => 'Mark paid',
'label.week_note' => 'Week note',
'label.week_list' => 'Week list',
+'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Login',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Sesión iniciada',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
// TODO: Improve titles for consistency, so that each title explains correctly what each
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'ورود',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Kirjautuminen',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Connexion',
'label.mark_paid' => 'Σήμανση πληρωμένα',
'label.week_note' => 'Σημείωση εβδομάδας',
'label.week_list' => 'Λίστα εβδομάδων',
+// TODO: translate the following.
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Σύνδεση',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'כניסה',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Bejelentkezés',
'label.mark_paid' => 'Segna come pagato',
'label.week_note' => 'Nota settimanale',
'label.week_list' => 'Lista settimanale',
+// TODO: translate the following.
+// 'label.work_units' => 'Work units',
// Form titles.
// TODO: Improve titles for consistency, so that each title explains correctly what each
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'ログイン',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => '로그인',
'label.mark_paid' => 'Markeer als betaald',
'label.week_note' => 'Week aantekening',
'label.week_list' => 'Week overzicht',
+// TODO: translate the following.
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Aanmelden',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Innlogging',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Logowanie',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Login',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Login',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
// TODO: Improve titles for consistency, so that each title explains correctly what each
'label.mark_paid' => 'Отметить оплату',
'label.week_note' => 'Комментарий недели',
'label.week_list' => 'Список недели',
+'label.work_units' => 'Единицы работы',
// Form titles.
'title.login' => 'Вход в систему',
// 'button.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Prihlásenie',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Prijava',
// 'button.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => 'Prijava',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Rubriker för formulär
'title.login' => 'Logga in',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
// Form titles.
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => '登录',
// 'label.mark_paid' => 'Mark paid',
// 'label.week_note' => 'Week note',
// 'label.week_list' => 'Week list',
+// 'label.work_units' => 'Work units',
// Form titles.
'title.login' => '登錄',
} else {
configureLabel.style.visibility = "hidden";
}
+
+ var workUnitsCheckbox = document.getElementById("work_units");
+ configureLabel = document.getElementById("work_units_config");
+ if (workUnitsCheckbox.checked){
+ configureLabel.style.visibility = "visible";
+ } else {
+ configureLabel.style.visibility = "hidden";
+ }
}
</script>
<td align="right" nowrap>{$forms.groupForm.week_view.control}</td>
<td><label for="week_view">{$i18n.label.week_view}</label> <span id="week_view_config"><a href="week_view.php">{$i18n.label.configure}</a></span></td>
</tr>
+ {if defined('WORK_UNITS_DEBUG')}
+ <tr>
+ <td align="right" nowrap>{$forms.groupForm.work_units.control}</td>
+ <td><label for="week_view">{$i18n.label.work_units}</label> <span id="work_units_config"><a href="week_view.php">{$i18n.label.configure}</a></span></td>
+ </tr>
+ {/if}
{/if}
<tr>
$cl_locking = $request->getParameter('locking');
$cl_quotas = $request->getParameter('quotas');
$cl_week_view = $request->getParameter('week_view');
+ $cl_work_units = $request->getParameter('work_units');
} else {
$cl_group = $user->group;
$cl_currency = ($user->currency == ''? CURRENCY_DEFAULT : $user->currency);
$cl_locking = in_array('lk', $plugins);
$cl_quotas = in_array('mq', $plugins);
$cl_week_view = in_array('wv', $plugins);
+ $cl_work_units = in_array('wu', $plugins);
}
$form = new Form('groupForm');
$form->addInput(array('type'=>'checkbox','name'=>'locking','value'=>$cl_locking,'onchange'=>'handlePluginCheckboxes()'));
$form->addInput(array('type'=>'checkbox','name'=>'quotas','value'=>$cl_quotas,'onchange'=>'handlePluginCheckboxes()'));
$form->addInput(array('type'=>'checkbox','name'=>'week_view','value'=>$cl_week_view,'onchange'=>'handlePluginCheckboxes()'));
+if (defined('WORK_UNITS_DEBUG')) {
+ $form->addInput(array('type'=>'checkbox','name'=>'work_units','value'=>$cl_work_units,'onchange'=>'handlePluginCheckboxes()'));
+}
+
$form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('button.save')));
if ($user->can('delete_group')) $form->addInput(array('type'=>'submit','name'=>'btn_delete','value'=>$i18n->get('button.delete')));