FEATURE: move recaptcha config into core application

This commit is contained in:
Michal Kváček
2017-04-05 02:01:20 +02:00
parent 870ca540c4
commit e41c589225
8 changed files with 23 additions and 30 deletions
+4
View File
@@ -21,4 +21,8 @@ return [
],
"socialSites" => "Sociální sítě",
"successfullySaved" => "Nastavení úspěšně změněno",
'recaptcha' => 'reCaptcha',
"recaptchaSecret" => "Application secret key",
"recaptchaSiteKey" => "Site key",
'useInvisibleRecaptcha' => 'Neviditelná reCAPTCHA'
];
@@ -0,0 +1,18 @@
<label class="control-label">
@lang('admin/settings.recaptchaSiteKey')
</label>
<input class="form-control" type="text" name="recaptchaSiteKey" value="{{old('recaptchaSiteKey', isset($settings->recaptchaSiteKey) ? $settings->recaptchaSiteKey['val'] : '')}}" />
<label class="control-label">
@lang('admin/settings.recaptchaSecret')
</label>
<input class="form-control" type="text" name="recaptchaSecret" value="{{old('recaptchaSecret', isset($settings->recaptchaSecret) ? $settings->recaptchaSecret['val'] : '')}}" />
<label>
<input class="checkbox" value="1"
@if(old('useInvisibleRecaptcha', setting('useInvisibleRecaptcha'))) checked @endif name="useInvisibleRecaptcha" type="checkbox">
<span>@lang('admin/settings.useInvisibleRecaptcha')</span>
</label>