Skip to content
Code-Schnipsel Gruppen Projekte
Commit c0d021f6 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

- locale -> settings

- Issue #12  wiki eintrag in cronverwaltung verlinken
Übergeordneter b49f1280
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -25,8 +25,7 @@ define('package/quiqqer/cron/bin/History', [
'Ajax',
'Locale'
],function(QUI, QUIPanel, QUIConfirm, QUIButton, QUIButtonSeperator, Grid, Ajax, QUILocale)
{
], function (QUI, QUIPanel, QUIConfirm, QUIButton, QUIButtonSeperator, Grid, Ajax, QUILocale) {
"use strict";
var lg = 'quiqqer/cron';
......@@ -34,48 +33,45 @@ define('package/quiqqer/cron/bin/History', [
return new Class({
Extends : QUIPanel,
Type : 'package/quiqqer/cron/bin/History',
Extends: QUIPanel,
Type : 'package/quiqqer/cron/bin/History',
Binds : [
Binds: [
'$onCreate',
'$onResize'
],
options : {
title : 'Cron-History',
icon : 'icon-long-arrow-right'
options: {
title: 'Cron-History',
icon : 'icon-long-arrow-right'
},
initialize : function(options)
{
this.parent( options );
initialize: function (options) {
this.parent(options);
this.addEvents({
onCreate : this.$onCreate,
onResize : this.$onResize
onCreate: this.$onCreate,
onResize: this.$onResize
});
},
/**
* Load the History list
*/
loadData : function()
{
loadData: function () {
var self = this,
options = this.$Grid.options;
this.Loader.show();
Ajax.get('package_quiqqer_cron_ajax_history_get', function(result)
{
self.$Grid.setData( result );
Ajax.get('package_quiqqer_cron_ajax_history_get', function (result) {
self.$Grid.setData(result);
self.Loader.hide();
}, {
'package' : 'quiqqer/cron',
params : JSON.encode({
perPage : options.perPage,
page : options.page
'package': 'quiqqer/cron',
params : JSON.encode({
perPage: options.perPage,
page : options.page
})
});
},
......@@ -83,52 +79,51 @@ define('package/quiqqer/cron/bin/History', [
/**
* event : on Create
*/
$onCreate : function()
{
var self = this,
Content = this.getContent(),
$onCreate: function () {
var self = this,
Content = this.getContent(),
Container = new Element('div', {
'class' : 'box',
'class': 'box',
styles : {
width : '100%',
height : '100%'
width : '100%',
height: '100%'
}
}).inject( Content );
}).inject(Content);
this.$Grid = new Grid(Container, {
columnModel : [{
header : QUILocale.get('quiqqer/system', 'createdate'),
dataIndex : 'lastexec',
dataType : 'date',
width : 150
columnModel: [{
header : QUILocale.get('quiqqer/system', 'createdate'),
dataIndex: 'lastexec',
dataType : 'date',
width : 150
}, {
header : QUILocale.get( lg, 'cron.id' ),
dataIndex : 'cronid',
dataType : 'string',
width : 50
header : QUILocale.get(lg, 'cron.id'),
dataIndex: 'cronid',
dataType : 'string',
width : 50
}, {
header : QUILocale.get( lg, 'cron.title'),
dataIndex : 'cronTitle',
dataType : 'string',
width : 200
header : QUILocale.get(lg, 'cron.title'),
dataIndex: 'cronTitle',
dataType : 'string',
width : 200
}, {
header : QUILocale.get('quiqqer/system', 'user_id'),
dataIndex : 'uid',
dataType : 'string',
width : 100
header : QUILocale.get('quiqqer/system', 'user_id'),
dataIndex: 'uid',
dataType : 'string',
width : 100
}, {
header : QUILocale.get('quiqqer/system', 'username'),
dataIndex : 'username',
dataType : 'string',
width : 150
header : QUILocale.get('quiqqer/system', 'username'),
dataIndex: 'username',
dataType : 'string',
width : 150
}],
pagination : true
});
this.$Grid.addEvents({
onRefresh : function() {
onRefresh: function () {
self.loadData();
}
});
......@@ -139,18 +134,16 @@ define('package/quiqqer/cron/bin/History', [
/**
* event : on resize
*/
$onResize : function()
{
if ( !this.$Grid ) {
$onResize: function () {
if (!this.$Grid) {
return;
}
var Content = this.getContent(),
size = Content.getSize();
this.$Grid.setHeight( size.y - 40 );
this.$Grid.setWidth( size.x - 40 );
this.$Grid.setHeight(size.y - 40);
this.$Grid.setWidth(size.x - 40);
}
});
});
......@@ -27,6 +27,37 @@
<de><![CDATA[Konnte Aufgabe nicht editieren. Befehl existiert nicht.]]></de>
<en><![CDATA[Cannot edit Cron. Cron command not exists.]]></en>
</locale>
<locale name="settings.title">
<de><![CDATA[Cron Einstellungen]]></de>
<en><![CDATA[Cron settings]]></en>
</locale>
<locale name="settings.cron.title">
<de><![CDATA[Allgemeine Einstellungen]]></de>
<en><![CDATA[General settings]]></en>
</locale>
<locale name="settings.cron.executeOnAdminLogin">
<de><![CDATA[Crons ausführen wenn sich in die Administration eingeloggt wird]]></de>
<en><![CDATA[Execute Crons when logged into the Administration]]></en>
</locale>
<locale name="settings.cron.executeOnAdminLogin.description">
<de><![CDATA[
Weitere Infos wie das automatische ausführen von Crons finden Sie im Wiki:<br />
<a href="https://dev.quiqqer.com/quiqqer/package-cron/wikis/administration" target="_blank">https://dev.quiqqer.com/quiqqer/package-cron/wikis/administration</a>
]]></de>
<en><![CDATA[
Learn more about how to run automatically by Cron, see the wiki:<br />
<a href="https://dev.quiqqer.com/quiqqer/package-cron/wikis/administration" target="_blank">https://dev.quiqqer.com/quiqqer/package-cron/wikis/administration</a>
]]></en>
</locale>
<locale name="settings.cron.showAdminMessageIfCronNotRun">
<de><![CDATA[Cron Hinweise anzeigen wenn sich ein Administrator einloggt hat.]]></de>
<en><![CDATA[Show Cron informations when an an administrator has logged in.]]></en>
</locale>
<locale name="settings.cron.showAdminMessageIfCronNotRun.description">
<de><![CDATA[Der Administrator bekommt eine Nachricht wenn die Crons die letzten 24h nicht liefen.]]></de>
<en><![CDATA[The administrator receives a message when the Cron did not run the last 24 hours]]></en>
</locale>
</groups>
<groups name="quiqqer/cron" datatype="js">
<locale name="cron.id">
......
......@@ -16,29 +16,38 @@
</config>
<window>
<title>Cron Einstellungen</title>
<title>
<locale group="quiqqer/cron" var="settings.title" />
</title>
<params>
<icon>icon-time</icon>
</params>
<categories>
<category name="cron_settings">
<text>Allgemeine Einstellungen</text>
<text>
<locale group="quiqqer/cron" var="settings.title" />
</text>
<icon>icon-time</icon>
<settings title="settings" name="settings">
<title>Allgemeine Cron Einstellungen</title>
<title>
<locale group="quiqqer/cron" var="settings.cron.title" />
</title>
<input conf="settings.executeOnAdminLogin" type="checkbox">
<text>
Crons ausführen wenn sich in die Administration eingeloggt wird
<locale group="quiqqer/cron" var="settings.cron.executeOnAdminLogin" />
</text>
<description>
<locale group="quiqqer/cron" var="settings.cron.executeOnAdminLogin.description" />
</description>
</input>
<input conf="settings.showAdminMessageIfCronNotRun" type="checkbox">
<text>
Cron Hinweise an einen Administration in der Administration anzeigen
<locale group="quiqqer/cron" var="settings.cron.showAdminMessageIfCronNotRun" />
</text>
<description>
Der Administrator Benutzer bekommt eine Nachricht wenn die Crons die letzten 24h nicht liefen
<locale group="quiqqer/cron" var="settings.cron.showAdminMessageIfCronNotRun.description" />
</description>
</input>
</settings>
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren