Merge pull request #1048 from mmollick/master
Cleaning up dashboard forms
This commit is contained in:
@@ -35,6 +35,18 @@ class SettingsController extends Controller
|
||||
'icon' => 'ion-gear-b',
|
||||
'active' => false,
|
||||
],
|
||||
'analytics' => [
|
||||
'title' => trans('dashboard.settings.analytics.analytics'),
|
||||
'url' => route('dashboard.settings.analytics'),
|
||||
'icon' => 'ion-stats-bars',
|
||||
'active' => false,
|
||||
],
|
||||
'localization' => [
|
||||
'title' => trans('dashboard.settings.localization.localization'),
|
||||
'url' => route('dashboard.settings.localization'),
|
||||
'icon' => 'ion-earth',
|
||||
'active' => false,
|
||||
],
|
||||
'security' => [
|
||||
'title' => trans('dashboard.settings.security.security'),
|
||||
'url' => route('dashboard.settings.security'),
|
||||
@@ -76,6 +88,38 @@ class SettingsController extends Controller
|
||||
->withSubMenu($this->subMenu);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the settings analytics view.
|
||||
*
|
||||
* @return \Illuminate\View\View
|
||||
*/
|
||||
public function showAnalyticsView()
|
||||
{
|
||||
$this->subMenu['analytics']['active'] = true;
|
||||
|
||||
Session::flash('redirect_to', $this->subMenu['analytics']['url']);
|
||||
|
||||
return View::make('dashboard.settings.analytics')
|
||||
->withPageTitle('Analytics - Dashboard')
|
||||
->withSubMenu($this->subMenu);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the settings localization view.
|
||||
*
|
||||
* @return \Illuminate\View\View
|
||||
*/
|
||||
public function showLocalizationView()
|
||||
{
|
||||
$this->subMenu['localization']['active'] = true;
|
||||
|
||||
Session::flash('redirect_to', $this->subMenu['localization']['url']);
|
||||
|
||||
return View::make('dashboard.settings.localization')
|
||||
->withPageTitle('Localization - Dashboard')
|
||||
->withSubMenu($this->subMenu);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the settings theme view.
|
||||
*
|
||||
|
||||
@@ -218,6 +218,14 @@ class DashboardRoutes
|
||||
'as' => 'setup',
|
||||
'uses' => 'SettingsController@showSetupView',
|
||||
]);
|
||||
$router->get('analytics', [
|
||||
'as' => 'analytics',
|
||||
'uses' => 'SettingsController@showAnalyticsView',
|
||||
]);
|
||||
$router->get('localization', [
|
||||
'as' => 'localization',
|
||||
'uses' => 'SettingsController@showLocalizationView',
|
||||
]);
|
||||
$router->get('security', [
|
||||
'as' => 'security',
|
||||
'uses' => 'SettingsController@showSecurityView',
|
||||
|
||||
@@ -36,7 +36,7 @@ class ComposerServiceProvider extends ServiceProvider
|
||||
$factory->composer(['index', 'incident', 'subscribe'], StatusPageComposer::class);
|
||||
$factory->composer(['index', 'incident', 'subscribe', 'dashboard.settings.theme'], ThemeComposer::class);
|
||||
$factory->composer('dashboard.*', DashboardComposer::class);
|
||||
$factory->composer(['setup', 'dashboard.settings.app-setup'], TimezoneLocaleComposer::class);
|
||||
$factory->composer(['setup', 'dashboard.settings.localization'], TimezoneLocaleComposer::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -163,6 +163,12 @@ return [
|
||||
'images-only' => 'Kun billeder kan uploades.',
|
||||
'too-big' => 'Filen du prøvede at uploade er for stort, billet skal være mindre end :size',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'Sikkerhed',
|
||||
'two-factor' => 'Brugere uden two-factor login',
|
||||
|
||||
@@ -93,20 +93,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'Sidens navn',
|
||||
'site-url' => 'Sidens URL',
|
||||
'site-timezone' => 'Tidszone',
|
||||
'site-locale' => 'Sprog',
|
||||
'date-format' => 'Datoformat',
|
||||
'incident-date-format' => 'Datoformat for hændelser',
|
||||
'display-graphs' => 'Vis grafer på statussiden?',
|
||||
'about-this-page' => 'Om',
|
||||
'days-of-incidents' => 'Hvor mange dage skal der vises hændelser for?',
|
||||
'banner' => 'Bannerbillede',
|
||||
'banner-help' => 'Det anbefales ikke at uploade billeder bredere end 930px.',
|
||||
'subscribers' => 'Tillad at man kan tilmelde sig emailnotifikationer?',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Google Analytics kode',
|
||||
'analytics_gosquared' => 'GoSquared Analytics kode',
|
||||
'analytics_piwik_url' => 'URL til Piwik installation (uden http(s)://)',
|
||||
'analytics_piwik_siteid' => 'Piwik\'s id',
|
||||
'subscribers' => 'Tillad at man kan tilmelde sig emailnotifikationer?',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'Tidszone',
|
||||
'site-locale' => 'Sprog',
|
||||
'date-format' => 'Datoformat',
|
||||
'incident-date-format' => 'Datoformat for hændelser',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'Tilladte domæner',
|
||||
|
||||
@@ -163,6 +163,12 @@ return [
|
||||
'images-only' => 'Es können nur Bilder hochgeladen werden.',
|
||||
'too-big' => 'Die von Ihnen hochgeladene Datei ist zu groß. Laden Sie ein Bild welches kleiner als :size ist hoch',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'Sicherheit',
|
||||
'two-factor' => 'Nutzer ohne Zwei-Faktor-Authentifizierung',
|
||||
|
||||
@@ -92,20 +92,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'Seitenname',
|
||||
'site-url' => 'URL ihrer Seite',
|
||||
'site-timezone' => 'Zeitzone ihrer Seite',
|
||||
'site-locale' => 'Sprache ihrer Seite',
|
||||
'date-format' => 'Datumsformat',
|
||||
'incident-date-format' => 'Vorfall Zeitstempel-Format',
|
||||
'display-graphs' => 'Graphen auf der Statusseite anzeigen?',
|
||||
'about-this-page' => 'Über diese Seite',
|
||||
'days-of-incidents' => 'Wie viele Tage mit Vorfällen sollen gezeigt werden?',
|
||||
'banner' => 'Banner',
|
||||
'banner-help' => 'Es wird empfohlen, dass Sie keine Dateien die breiter als 930 Pixel sind hochladen .',
|
||||
'subscribers' => 'Personen die Anmeldung für E-Mail-Benachrichtigung erlauben?',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Google Analytics Code',
|
||||
'analytics_gosquared' => 'GoSquared Analytics Code',
|
||||
'analytics_piwik_url' => 'URL der Piwik-Instanz (ohne http(s)://)',
|
||||
'analytics_piwik_siteid' => 'Piwik\'s Seiten-ID',
|
||||
'subscribers' => 'Personen die Anmeldung für E-Mail-Benachrichtigung erlauben?',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'Zeitzone ihrer Seite',
|
||||
'site-locale' => 'Sprache ihrer Seite',
|
||||
'date-format' => 'Datumsformat',
|
||||
'incident-date-format' => 'Vorfall Zeitstempel-Format',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'Erlaubte Domains',
|
||||
|
||||
@@ -163,6 +163,12 @@ return [
|
||||
'images-only' => 'crwdns346:0crwdne346:0',
|
||||
'too-big' => 'crwdns347:0crwdne347:0',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'crwdns348:0crwdne348:0',
|
||||
'two-factor' => 'crwdns474:0crwdne474:0',
|
||||
|
||||
@@ -92,20 +92,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'crwdns233:0crwdne233:0',
|
||||
'site-url' => 'crwdns398:0crwdne398:0',
|
||||
'site-timezone' => 'crwdns399:0crwdne399:0',
|
||||
'site-locale' => 'crwdns400:0crwdne400:0',
|
||||
'date-format' => 'crwdns401:0crwdne401:0',
|
||||
'incident-date-format' => 'crwdns485:0crwdne485:0',
|
||||
'display-graphs' => 'crwdns472:0crwdne472:0',
|
||||
'about-this-page' => 'crwdns402:0crwdne402:0',
|
||||
'days-of-incidents' => 'crwdns403:0crwdne403:0',
|
||||
'banner' => 'crwdns404:0crwdne404:0',
|
||||
'banner-help' => 'crwdns405:0crwdne405:0',
|
||||
'subscribers' => 'crwdns513:0crwdne513:0',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'crwdns486:0crwdne486:0',
|
||||
'analytics_gosquared' => 'crwdns487:0crwdne487:0',
|
||||
'analytics_piwik_url' => 'crwdns511:0crwdne511:0',
|
||||
'analytics_piwik_siteid' => 'crwdns512:0crwdne512:0',
|
||||
'subscribers' => 'crwdns513:0crwdne513:0',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'crwdns399:0crwdne399:0',
|
||||
'site-locale' => 'crwdns400:0crwdne400:0',
|
||||
'date-format' => 'crwdns401:0crwdne401:0',
|
||||
'incident-date-format' => 'crwdns485:0crwdne485:0',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'crwdns407:0crwdne407:0',
|
||||
|
||||
@@ -163,6 +163,12 @@ return [
|
||||
'images-only' => 'Only images may be uploaded.',
|
||||
'too-big' => 'The file you uploaded is too big. Upload an image smaller than :size',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'Security',
|
||||
'two-factor' => 'Users without two-factor authentication',
|
||||
|
||||
@@ -93,20 +93,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'Site Name',
|
||||
'site-url' => 'Site URL',
|
||||
'site-timezone' => 'Site Timezone',
|
||||
'site-locale' => 'Site Language',
|
||||
'date-format' => 'Date Format',
|
||||
'incident-date-format' => 'Incident Timestamp Format',
|
||||
'display-graphs' => 'Display graphs on status page?',
|
||||
'about-this-page' => 'About this page',
|
||||
'days-of-incidents' => 'How many days of incidents to show?',
|
||||
'banner' => 'Banner Image',
|
||||
'banner-help' => "It's recommended that you upload files no bigger than 930px wide .",
|
||||
'subscribers' => 'Allow people to signup to email notifications?',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Google Analytics code',
|
||||
'analytics_gosquared' => 'GoSquared Analytics code',
|
||||
'analytics_piwik_url' => 'URL of your Piwik instance (without http(s)://)',
|
||||
'analytics_piwik_siteid' => 'Piwik\'s site id',
|
||||
'subscribers' => 'Allow people to signup to email notifications?',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'Site Timezone',
|
||||
'site-locale' => 'Site Language',
|
||||
'date-format' => 'Date Format',
|
||||
'incident-date-format' => 'Incident Timestamp Format',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'Allowed domains',
|
||||
|
||||
@@ -115,6 +115,12 @@ return [
|
||||
'images-only' => 'Sólo puedes subir imágenes.',
|
||||
'too-big' => 'El archivo subido es demasiado grande. Sube una imagen con tamaño menor a: tamaño',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'Seguridad',
|
||||
],
|
||||
|
||||
@@ -84,19 +84,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'Nombre del sitio',
|
||||
'site-url' => 'URL del sitio',
|
||||
'site-timezone' => 'Zona horaria del sitio',
|
||||
'site-locale' => 'Idioma del sitio',
|
||||
'date-format' => 'Formato de la fecha',
|
||||
'display-graphs' => '¿Visualizar gráficas en la página de estado?',
|
||||
'about-this-page' => 'Sobre esta página',
|
||||
'days-of-incidents' => '¿Cuántos días de incidentes mostrar?',
|
||||
'banner' => 'Imagen de inicio',
|
||||
'banner-help' => 'Se recomienda subir una imagen no más grande de 930px de ancho.',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Código de Google Analytics',
|
||||
'analytics_gosquared' => 'Código de GoSquared Analytics',
|
||||
'analytics_piwik_url' => 'URL de tu instancia Piwik (sin http(s)://)',
|
||||
'analytics_piwik_siteid' => 'Id sitio Piwik',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'Zona horaria del sitio',
|
||||
'site-locale' => 'Idioma del sitio',
|
||||
'date-format' => 'Formato de la fecha',
|
||||
'incident-date-format' => 'Incident Timestamp Format',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'Dominios permitidos',
|
||||
'allowed-domains-help' => 'Separados por coma. El dominio establecido en la configuración del sitio formará automáticamente parte de los dominios permitidos.',
|
||||
|
||||
@@ -163,6 +163,12 @@ return [
|
||||
'images-only' => 'Seules les images peuvent être déposées.',
|
||||
'too-big' => 'Le fichier déposé est trop grand. Déposer une image d\'une taille inférieur à :size',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'Sécurité',
|
||||
'two-factor' => 'Utilisateurs sans authentification à deux facteurs',
|
||||
|
||||
@@ -92,20 +92,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'Nom du site',
|
||||
'site-url' => 'Url du site',
|
||||
'site-timezone' => 'Fuseau horaire du site',
|
||||
'site-locale' => 'Langage du site',
|
||||
'date-format' => 'Format Date',
|
||||
'incident-date-format' => 'Format de la date de l\'incident',
|
||||
'display-graphs' => 'Afficher les graphiques sur la page de status ?',
|
||||
'about-this-page' => 'À propos de cette page',
|
||||
'days-of-incidents' => 'Combien de jours d\'incidents à montrer?',
|
||||
'banner' => 'Image de la bannière',
|
||||
'banner-help' => 'Il est recommandé que vous téléchargez des fichiers ne dépassant pas les 930px large .',
|
||||
'subscribers' => 'Permettre aux gens de s\'inscrire aux notifications par courrier électronique ?',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Code de Google Analytics',
|
||||
'analytics_gosquared' => 'Code de GoSquared Analytics',
|
||||
'analytics_piwik_url' => 'URL de votre instance de Piwik (sans http(s)://)',
|
||||
'analytics_piwik_siteid' => 'Id de site de Piwik',
|
||||
'subscribers' => 'Permettre aux gens de s\'inscrire aux notifications par courrier électronique ?',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'Fuseau horaire du site',
|
||||
'site-locale' => 'Langage du site',
|
||||
'date-format' => 'Format Date',
|
||||
'incident-date-format' => 'Format de la date de l\'incident',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'Domaines autorisés',
|
||||
|
||||
@@ -163,6 +163,12 @@ return [
|
||||
'images-only' => 'Hanya gambar yang bisa diunggah.',
|
||||
'too-big' => 'Berkas yang anda unggah terlalu besar. Mohon unggah gambar dengan ukuran tidak lebih dari :size',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'Keamanan',
|
||||
'two-factor' => 'User tanpa otentikasi dua-faktor',
|
||||
|
||||
@@ -92,20 +92,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'Nama Situs',
|
||||
'site-url' => 'URL',
|
||||
'site-timezone' => 'Zona Waktu',
|
||||
'site-locale' => 'Bahasa',
|
||||
'date-format' => 'Format Tanggal',
|
||||
'incident-date-format' => 'Format Waktu Insiden',
|
||||
'display-graphs' => 'Tampilkan grafik di halaman status?',
|
||||
'about-this-page' => 'Tentang halaman ini',
|
||||
'days-of-incidents' => 'Berapa hari insiden akan ditampilkan?',
|
||||
'banner' => 'Gambar Banner',
|
||||
'banner-help' => 'Disarankan gambar yang anda unggah tidak lebih lebar dari 930px.',
|
||||
'subscribers' => 'Bolehkan pengunjung mendaftar notifikasi email?',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Kode Google Analytics',
|
||||
'analytics_gosquared' => 'Kode GoSquared Analytics',
|
||||
'analytics_piwik_url' => 'URL Piwik anda (tanpa http(s)://)',
|
||||
'analytics_piwik_siteid' => 'ID situs Piwik',
|
||||
'subscribers' => 'Bolehkan pengunjung mendaftar notifikasi email?',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'Zona Waktu',
|
||||
'site-locale' => 'Bahasa',
|
||||
'date-format' => 'Format Tanggal',
|
||||
'incident-date-format' => 'Format Waktu Insiden',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'Domain yang dibolehkan',
|
||||
|
||||
@@ -159,6 +159,12 @@ return [
|
||||
'images-only' => 'Possono essere caricate solo immagini.',
|
||||
'too-big' => 'Il file che hai caricato è troppo grande. Carica un\'immagine più piccola di :size',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'Sicurezza',
|
||||
'two-factor' => 'Utenti senza verifica in 2 passaggi',
|
||||
|
||||
@@ -92,20 +92,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'Nome del sito',
|
||||
'site-url' => 'URL del sito',
|
||||
'site-timezone' => 'Fuso orario del sito',
|
||||
'site-locale' => 'Lingua del sito',
|
||||
'date-format' => 'Formato Data',
|
||||
'incident-date-format' => 'Formato Timestamp dell\'incidente',
|
||||
'display-graphs' => 'Visualizzare grafici sulla Status Page?',
|
||||
'about-this-page' => 'Su questa pagina',
|
||||
'days-of-incidents' => 'Quanti giorni di incidenti mostrare?',
|
||||
'banner' => 'Immagine Banner',
|
||||
'banner-help' => 'Si consiglia di caricare file non più grandi di 930px di larghezza.',
|
||||
'subscribers' => 'Consentire alle persone di iscriversi alle notifiche email?',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Codice Google Analytics',
|
||||
'analytics_gosquared' => 'Codice GoSquared Analytics',
|
||||
'analytics_piwik_url' => 'URL della tua istanza Piwik (senza http(s)://)',
|
||||
'analytics_piwik_siteid' => 'ID sito Piwik',
|
||||
'subscribers' => 'Consentire alle persone di iscriversi alle notifiche email?',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'Fuso orario del sito',
|
||||
'site-locale' => 'Lingua del sito',
|
||||
'date-format' => 'Formato Data',
|
||||
'incident-date-format' => 'Formato Timestamp dell\'incidente',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'Domini consentiti',
|
||||
|
||||
@@ -142,6 +142,12 @@ return [
|
||||
'images-only' => '이미지만 업로드 할 수 있습니다.',
|
||||
'too-big' => '업로드 한 파일이 너무 큽니다. :size 보다 작은 이미지를 올려주세요.',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => '보안',
|
||||
'two-factor' => '2단계 인증을 사용하지 않는 사용자',
|
||||
|
||||
@@ -92,20 +92,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => '사이트 이름',
|
||||
'site-url' => '사이트 URL',
|
||||
'site-timezone' => '사이트 시간대',
|
||||
'site-locale' => '사이트 언어',
|
||||
'date-format' => '날짜 형식',
|
||||
'incident-date-format' => '문제 Timestamp 형식',
|
||||
'display-graphs' => '상태 페이지에 그래프 보이기',
|
||||
'about-this-page' => '이 페이지에 대하여',
|
||||
'days-of-incidents' => '몇 일 동안 사건을 표시하시겠습니까?',
|
||||
'banner' => '배너 이미지',
|
||||
'banner-help' => '가로가 930 픽셀보다 작은 이미지를 업로드 하는 것을 권장합니다.',
|
||||
'subscribers' => '이메일 알림을 받기 위한 회원가입 허용',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Google Analytics 코드',
|
||||
'analytics_gosquared' => 'GoSquared Analytics 코드',
|
||||
'analytics_piwik_url' => 'Piwik 인스턴스의 URL ( "http(s)://" 제외 )',
|
||||
'analytics_piwik_siteid' => 'Piwik 사이트 id',
|
||||
'subscribers' => '이메일 알림을 받기 위한 회원가입 허용',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => '사이트 시간대',
|
||||
'site-locale' => '사이트 언어',
|
||||
'date-format' => '날짜 형식',
|
||||
'incident-date-format' => '문제 Timestamp 형식',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => '허용된 도메인',
|
||||
|
||||
@@ -163,6 +163,12 @@ return [
|
||||
'images-only' => 'Alleen afbeeldingen kunnen worden geüpload.',
|
||||
'too-big' => 'Het bestand dat u heeft geüpload is te groot. Upload een afbeelding kleiner dan :size',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'Beveiliging',
|
||||
'two-factor' => 'Gebruikers zonder authenticatie in twee stappen',
|
||||
|
||||
@@ -92,20 +92,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'Site Naam',
|
||||
'site-url' => 'Site URL',
|
||||
'site-timezone' => 'Site tijdzone',
|
||||
'site-locale' => 'Taal van de site',
|
||||
'date-format' => 'Datum formaat',
|
||||
'incident-date-format' => 'Incident Tijdsaanduiding Formaat',
|
||||
'display-graphs' => 'Grafieken tonen op statuspagina?',
|
||||
'about-this-page' => 'Over deze pagina',
|
||||
'days-of-incidents' => 'Hoeveel dagen moeten incidenten getoond worden?',
|
||||
'banner' => 'Banner afbeelding',
|
||||
'banner-help' => 'Het wordt aanbevolen dat u geen bestanden upload die breeder zijn dan 930px.',
|
||||
'subscribers' => 'Bezoekers toestaan om te abonneren op e-mail notificaties?',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Google Analytics-code',
|
||||
'analytics_gosquared' => 'GoSquared Analytics-code',
|
||||
'analytics_piwik_url' => 'URL van uw Piwik exemplaar (zonder http(s)://)',
|
||||
'analytics_piwik_siteid' => 'Site-id van Piwik',
|
||||
'subscribers' => 'Bezoekers toestaan om te abonneren op e-mail notificaties?',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'Site tijdzone',
|
||||
'site-locale' => 'Taal van de site',
|
||||
'date-format' => 'Datum formaat',
|
||||
'incident-date-format' => 'Incident Tijdsaanduiding Formaat',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'Toegestane domeinen',
|
||||
|
||||
@@ -142,6 +142,12 @@ return [
|
||||
'images-only' => 'Można wgrywać tylko pliki graficzne.',
|
||||
'too-big' => 'Wgrany plik jest zbyt duży. Wgraj plik mnijeszy niż :size',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'Bezpieczeństwo',
|
||||
'two-factor' => 'Użytkownicy bez autentykacji dwuetapowej',
|
||||
|
||||
@@ -86,19 +86,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'Nazwa strony',
|
||||
'site-url' => 'Adres URL strony',
|
||||
'site-timezone' => 'Strefa czasowa',
|
||||
'site-locale' => 'Język',
|
||||
'date-format' => 'Format daty',
|
||||
'display-graphs' => 'Wyświetlać wykresy na panelu głównym?',
|
||||
'about-this-page' => 'O tej stronie',
|
||||
'days-of-incidents' => 'Ile dni incydentów pokazywać?',
|
||||
'banner' => 'Obrazek z logo',
|
||||
'banner-help' => 'Zaleca się wrzuać pliki nie szersze niż 930px.',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Google Analytics code',
|
||||
'analytics_gosquared' => 'GoSquared Analytics code',
|
||||
'analytics_piwik_url' => 'URL of your Piwik instance (without http(s)://)',
|
||||
'analytics_piwik_siteid' => 'Piwik\'s site id',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'Strefa czasowa',
|
||||
'site-locale' => 'Język',
|
||||
'date-format' => 'Format daty',
|
||||
'incident-date-format' => 'Incident Timestamp Format',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'Dozwolone domenyw',
|
||||
'allowed-domains-help' => 'Oddzielone przecinkiem. Domena ustawiona powyżej jest dozwolona domyślnie.',
|
||||
|
||||
@@ -163,6 +163,12 @@ return [
|
||||
'images-only' => 'Somente imagens podem ser carregadas.',
|
||||
'too-big' => 'O arquivo que você carregou é muito grande. Envie uma imagem inferior à :size',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'Segurança',
|
||||
],
|
||||
|
||||
@@ -93,20 +93,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'Nome do site',
|
||||
'site-url' => 'URL do site',
|
||||
'site-timezone' => 'Fuso horário do site',
|
||||
'site-locale' => 'Idioma do site',
|
||||
'date-format' => 'Formato da Data',
|
||||
'incident-date-format' => 'Formato da data para incidentes',
|
||||
'display-graphs' => 'Exibir gráficos na página de status?',
|
||||
'about-this-page' => 'Sobre esta página',
|
||||
'days-of-incidents' => 'Exibir quantos dias de incidentes?',
|
||||
'banner' => 'Imagem do banner',
|
||||
'banner-help' => 'É recomendável que você faça upload de arquivos menores que 930px.',
|
||||
'subscribers' => 'Permitir assinaturas de notificações por email?',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Código do Google Ananlytics',
|
||||
'analytics_gosquared' => 'Código do GoSquared Analytics',
|
||||
'analytics_piwik_url' => 'URL do Piwik (sem http(s)://)',
|
||||
'analytics_piwik_siteid' => 'ID do Piwik',
|
||||
'subscribers' => 'Permitir assinaturas de notificações por email?',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'Fuso horário do site',
|
||||
'site-locale' => 'Idioma do site',
|
||||
'date-format' => 'Formato da Data',
|
||||
'incident-date-format' => 'Formato da data para incidentes',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'Domínios permitidos',
|
||||
|
||||
@@ -142,6 +142,12 @@ return [
|
||||
'images-only' => 'Могут быть загружены только изображения.',
|
||||
'too-big' => 'Загруженный вами файл слишком большой. Загрузите картинку меньше чем :size',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => 'Безопасность',
|
||||
'two-factor' => 'Пользователи без двухфакторной аутентификации',
|
||||
|
||||
@@ -92,20 +92,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => 'Название сайта',
|
||||
'site-url' => 'URL сайта',
|
||||
'site-timezone' => 'Часовой пояс сайта',
|
||||
'site-locale' => 'Язык сайта',
|
||||
'date-format' => 'Формат даты',
|
||||
'incident-date-format' => 'Формат даты и времени инцидента',
|
||||
'display-graphs' => 'Отображать графики на статусной странице?',
|
||||
'about-this-page' => 'Об этой странице',
|
||||
'days-of-incidents' => 'Сколько дней показывать инциденты?',
|
||||
'banner' => 'Картинка-баннер',
|
||||
'banner-help' => 'Рекомендуется загружать картинки не больше 930 пикс. в ширину.',
|
||||
'subscribers' => 'Разрешить посетителям подписываться на email-уведомления?',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Код Google Analytics',
|
||||
'analytics_gosquared' => 'Код GoSquared Analytics',
|
||||
'analytics_piwik_url' => 'URL установки Piwik (без http(s)://)',
|
||||
'analytics_piwik_siteid' => 'Идентификатор сайта в Piwik',
|
||||
'subscribers' => 'Разрешить посетителям подписываться на email-уведомления?',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => 'Часовой пояс сайта',
|
||||
'site-locale' => 'Язык сайта',
|
||||
'date-format' => 'Формат даты',
|
||||
'incident-date-format' => 'Формат даты и времени инцидента',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => 'Разрешенные домены',
|
||||
|
||||
@@ -142,6 +142,12 @@ return [
|
||||
'images-only' => '只能上传图像。',
|
||||
'too-big' => '你上传的文件太大了。上传的图像大小应小于:size',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics' => 'Analytics',
|
||||
],
|
||||
'localization' => [
|
||||
'localization' => 'Localization',
|
||||
],
|
||||
'security' => [
|
||||
'security' => '安全',
|
||||
'two-factor' => '没有启用双因素身份验证的用户',
|
||||
|
||||
@@ -92,20 +92,24 @@ return [
|
||||
'app-setup' => [
|
||||
'site-name' => '站点名称',
|
||||
'site-url' => '站点URL',
|
||||
'site-timezone' => '站点时区',
|
||||
'site-locale' => '站点语言',
|
||||
'date-format' => '日期格式',
|
||||
'incident-date-format' => '事件的时间戳格式',
|
||||
'display-graphs' => '是否在状态页上显示图表',
|
||||
'about-this-page' => '关于这个页面',
|
||||
'days-of-incidents' => '显示多少天的事件?',
|
||||
'banner' => '横幅图像',
|
||||
'banner-help' => '建议上传文件宽度不大于930像素。',
|
||||
'subscribers' => '允许用户订阅邮件通知吗?',
|
||||
],
|
||||
'analytics' => [
|
||||
'analytics_google' => 'Google Analytics 代码',
|
||||
'analytics_gosquared' => 'GoSquared Analytics 代码',
|
||||
'analytics_piwik_url' => '输入Piwik实例的URL(不含http(s)://)',
|
||||
'analytics_piwik_siteid' => 'Piwik 的站点 id',
|
||||
'subscribers' => '允许用户订阅邮件通知吗?',
|
||||
],
|
||||
'localization' => [
|
||||
'site-timezone' => '站点时区',
|
||||
'site-locale' => '站点语言',
|
||||
'date-format' => '日期格式',
|
||||
'incident-date-format' => '事件的时间戳格式',
|
||||
],
|
||||
'security' => [
|
||||
'allowed-domains' => '允许的域',
|
||||
|
||||
@@ -104,14 +104,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.incidents.incident_time') }}</label>
|
||||
<label>{{ trans('forms.incidents.incident_time') }}</label> <small class="text-muted">{{ trans('forms.optional') }}</small>
|
||||
<input type="text" name="created_at" class="form-control" rel="datepicker-any">
|
||||
<span class="help-block">{{ trans('forms.optional') }}</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.incidents.notify_subscribers') }}</label>
|
||||
<input type="checkbox" name="notify" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
|
||||
<span class="help-block">{{ trans('forms.optional') }}</span>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="notify" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
|
||||
{{ trans('forms.incidents.notify_subscribers') }}
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
|
||||
@@ -77,9 +77,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.incidents.incident_time') }}</label>
|
||||
<label>{{ trans('forms.incidents.incident_time') }}</label> <small class="text-muted">{{ trans('forms.optional') }}</small>
|
||||
<input type="text" name="created_at" class="form-control" rel="datepicker-any" value="{{ $incident->created_at_datetimepicker }}">
|
||||
<span class="help-block">{{ trans('forms.optional') }}</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
|
||||
@@ -46,10 +46,12 @@
|
||||
<label for="metric-places">{{ trans('forms.metrics.places') }}</label>
|
||||
<input type="number" min="0" max="4" class="form-control" name="metric[places]" id="metric-places" required value="{{ Input::old('metric.places') }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.metrics.display-chart') }}</label>
|
||||
<input type="hidden" value="0" name="metric[display_chart]">
|
||||
<input type="checkbox" value="1" name="metric[display_chart]" class="form-control" checked>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="hidden" value="0" name="metric[display_chart]">
|
||||
<input type="checkbox" value="1" name="metric[display_chart]" checked>
|
||||
{{ trans('forms.metrics.display-chart') }}
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class='form-group'>
|
||||
|
||||
@@ -46,10 +46,12 @@
|
||||
<label for="metric-places">{{ trans('forms.metrics.places') }}</label>
|
||||
<input type="number" min="0" max="4" class="form-control" name="metric[places]" id="metric-places" required value="{{ $metric->places }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.metrics.display-chart') }}</label>
|
||||
<input type="hidden" value="0" name="metric[display_chart]">
|
||||
<input type="checkbox" value="1" name="metric[display_chart]" class="form-control" {{ $metric->display_chart ? 'checked' : null }}>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="hidden" value="0" name="metric[display_chart]">
|
||||
<input type="checkbox" value="1" name="metric[display_chart]" {{ $metric->display_chart ? 'checked' : null }}>
|
||||
{{ trans('forms.metrics.display-chart') }}
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
|
||||
@@ -43,10 +43,11 @@
|
||||
<label>{{ trans('forms.incidents.scheduled_at') }}</label>
|
||||
<input type="text" name="incident[scheduled_at]" class="form-control" rel="datepicker" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.incidents.notify_subscribers') }}</label>
|
||||
<input type="checkbox" name="incident[notify]" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
|
||||
<span class="help-block">{{ trans('forms.optional') }}</span>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="incident[notify]" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
|
||||
{{ trans('forms.incidents.notify_subscribers') }}
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
|
||||
66
resources/views/dashboard/settings/analytics.blade.php
Normal file
66
resources/views/dashboard/settings/analytics.blade.php
Normal file
@@ -0,0 +1,66 @@
|
||||
@extends('layout.dashboard')
|
||||
|
||||
@section('content')
|
||||
<div class="content-panel">
|
||||
@if(isset($sub_menu))
|
||||
@include('dashboard.partials.sub-sidebar')
|
||||
@endif
|
||||
<div class="content-wrapper">
|
||||
<div class="header sub-header" id="application-setup">
|
||||
<span class="uppercase">
|
||||
{{ trans('dashboard.settings.analytics.analytics') }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<form id="settings-form" name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@include('dashboard.partials.errors')
|
||||
<fieldset>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.analytics.analytics_google') }}</label>
|
||||
<input type="text" name="app_analytics" class="form-control" value="{{ Setting::get('app_analytics') }}" placeholder="UA-12345-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.analytics.analytics_gosquared') }}</label>
|
||||
<input type="text" name="app_analytics_gs" class="form-control" value="{{ Setting::get('app_analytics_gs') }}" placeholder="GSN-12345-A">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.analytics.analytics_piwik_url') }}</label>
|
||||
<input type="text" name="app_analytics_pi_url" class="form-control" value="{{ Setting::get('app_analytics_pi_url') }}" placeholder="piwik.example.org">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.analytics.analytics_piwik_siteid') }}</label>
|
||||
<input type="number" min="1" max="100" name="app_analytics_pi_siteid" class="form-control" value="{{ Setting::get('app_analytics_pi_siteid') ?: 1 }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-success">{{ trans('forms.save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -43,94 +43,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.app-setup.analytics_google') }}</label>
|
||||
<input type="text" name="app_analytics" class="form-control" value="{{ Setting::get('app_analytics') }}" placeholder="UA-12345-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.app-setup.analytics_gosquared') }}</label>
|
||||
<input type="text" name="app_analytics_gs" class="form-control" value="{{ Setting::get('app_analytics_gs') }}" placeholder="GSN-12345-A">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.app-setup.analytics_piwik_url') }}</label>
|
||||
<input type="text" name="app_analytics_pi_url" class="form-control" value="{{ Setting::get('app_analytics_pi_url') }}" placeholder="piwik.example.org">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.app-setup.analytics_piwik_siteid') }}</label>
|
||||
<input type="number" min="1" max="100" name="app_analytics_pi_siteid" class="form-control" value="{{ Setting::get('app_analytics_pi_siteid') ?: 1 }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.app-setup.site-timezone') }}</label>
|
||||
<select name="app_timezone" class="form-control" required>
|
||||
<option value="">Select Timezone</option>
|
||||
@foreach($timezones as $region => $list)
|
||||
<optgroup label="{{ $region }}">
|
||||
@foreach($list as $timezone => $name)
|
||||
<option value="{{ $timezone }}" @if(Setting::get('app_timezone') == $timezone) selected @endif>
|
||||
{{ $name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</optgroup>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>
|
||||
{{ trans('forms.settings.app-setup.date-format') }}
|
||||
<a href="http://php.net/manual/en/function.date.php" target="_blank"><i class="icon ion-help-circled"></i></a>
|
||||
</label>
|
||||
<input type="text" class="form-control" name="date_format" value="{{ Setting::get('date_format') ?: 'l jS F Y' }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>
|
||||
{{ trans('forms.settings.app-setup.incident-date-format') }}
|
||||
<a href="http://php.net/manual/en/function.date.php" target="_blank"><i class="icon ion-help-circled"></i></a>
|
||||
</label>
|
||||
<input type="text" class="form-control" name="incident_date_format" value="{{ Setting::get('incident_date_format') ?: 'l jS F Y H:i:s' }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.app-setup.site-locale') }}</label>
|
||||
<select name="app_locale" class="form-control" required>
|
||||
<option value="">Select Language</option>
|
||||
@foreach($langs as $lang => $name)
|
||||
<option value="{{ $lang }}" @if(Setting::get('app_locale') == $lang) selected @endif>
|
||||
{{ $name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
@@ -141,28 +53,34 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.app-setup.subscribers') }}</label>
|
||||
<input type="hidden" value="0" name="enable_subscribers">
|
||||
<input type="checkbox" value="1" name="enable_subscribers" class="form-control" {{ Setting::get('enable_subscribers') ? 'checked' : null }}>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="hidden" value="0" name="enable_subscribers">
|
||||
<input type="checkbox" value="1" name="enable_subscribers" {{ Setting::get('enable_subscribers') ? 'checked' : null }}>
|
||||
{{ trans('forms.settings.app-setup.subscribers') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.app-setup.display-graphs') }}</label>
|
||||
<input type="hidden" value="0" name="display_graphs">
|
||||
<input type="checkbox" value="1" name="display_graphs" class="form-control" {{ Setting::get('display_graphs') ? 'checked' : null }}>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="hidden" value="0" name="display_graphs">
|
||||
<input type="checkbox" value="1" name="display_graphs" {{ Setting::get('display_graphs') ? 'checked' : null }}>
|
||||
{{ trans('forms.settings.app-setup.display-graphs') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('setup.show_support') }}</label>
|
||||
<input type="hidden" value="0" name="show_support">
|
||||
<input type="checkbox" value="1" name="show_support" class="form-control" {{ Setting::get('show_support') ? 'checked' : null }}>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="hidden" value="0" name="show_support">
|
||||
<input type="checkbox" value="1" name="show_support" {{ Setting::get('show_support') ? 'checked' : null }}>
|
||||
{{ trans('setup.show_support') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
91
resources/views/dashboard/settings/localization.blade.php
Normal file
91
resources/views/dashboard/settings/localization.blade.php
Normal file
@@ -0,0 +1,91 @@
|
||||
@extends('layout.dashboard')
|
||||
|
||||
@section('content')
|
||||
<div class="content-panel">
|
||||
@if(isset($sub_menu))
|
||||
@include('dashboard.partials.sub-sidebar')
|
||||
@endif
|
||||
<div class="content-wrapper">
|
||||
<div class="header sub-header" id="application-setup">
|
||||
<span class="uppercase">
|
||||
{{ trans('dashboard.settings.localization.localization') }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<form id="settings-form" name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@include('dashboard.partials.errors')
|
||||
<fieldset>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.localization.site-timezone') }}</label>
|
||||
<select name="app_timezone" class="form-control" required>
|
||||
<option value="">Select Timezone</option>
|
||||
@foreach($timezones as $region => $list)
|
||||
<optgroup label="{{ $region }}">
|
||||
@foreach($list as $timezone => $name)
|
||||
<option value="{{ $timezone }}" @if(Setting::get('app_timezone') == $timezone) selected @endif>
|
||||
{{ $name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</optgroup>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>
|
||||
{{ trans('forms.settings.localization.date-format') }}
|
||||
<a href="http://php.net/manual/en/function.date.php" target="_blank"><i class="icon ion-help-circled"></i></a>
|
||||
</label>
|
||||
<input type="text" class="form-control" name="date_format" value="{{ Setting::get('date_format') ?: 'l jS F Y' }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>
|
||||
{{ trans('forms.settings.localization.incident-date-format') }}
|
||||
<a href="http://php.net/manual/en/function.date.php" target="_blank"><i class="icon ion-help-circled"></i></a>
|
||||
</label>
|
||||
<input type="text" class="form-control" name="incident_date_format" value="{{ Setting::get('incident_date_format') ?: 'l jS F Y H:i:s' }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.localization.site-locale') }}</label>
|
||||
<select name="app_locale" class="form-control" required>
|
||||
<option value="">Select Language</option>
|
||||
@foreach($langs as $lang => $name)
|
||||
<option value="{{ $lang }}" @if(Setting::get('app_locale') == $lang) selected @endif>
|
||||
{{ $name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-success">{{ trans('forms.save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -91,9 +91,11 @@
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.settings.theme.dashboard-login') }}</label>
|
||||
<input type="checkbox" value="1" name="dashboard_login_link" class="form-control" {{ Setting::get('dashboard_login_link') ? 'checked' : null }}>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" value="1" name="dashboard_login_link" {{ Setting::get('dashboard_login_link') ? 'checked' : null }}>
|
||||
{{ trans('forms.settings.theme.dashboard-login') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user