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
@@ -28,8 +28,6 @@ class ContactFormServiceProvider extends ModuleServiceProvider
*/
public function register()
{
$registrator = $this->app->make('registerSettingsExtension');
$registrator->register('contactForm', 'contactform::module.name', 'contactform::admin.settings.form');
}
private function registerWidgets()
@@ -1,5 +0,0 @@
<?php
return [
"recaptchaSecret" => "Application secret kez pro reCaptcha",
"recaptchaSiteKey" => "Site key pro reCaptcha",
];
@@ -1,5 +0,0 @@
<?php
return [
'recaptchaSiteKey' => 'reCAPTCHA site key',
'recaptchaSecret' => 'reCAPTCHA application secret key',
];
@@ -1,5 +0,0 @@
<?php
return [
"recaptchaSecret" => "Application secret key pre reCaptcha",
"recaptchaSiteKey" => "Site key pre reCaptcha",
];
@@ -1,13 +0,0 @@
<label class="control-label">
@lang('contactform::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('contactform::admin/settings.recaptchaSecret')
</label>
<input class="form-control" type="text" name="recaptchaSecret" value="{{old('recaptchaSecret', isset($settings->recaptchaSecret) ? $settings->recaptchaSecret['val'] : '')}}" />
<em><a href="https://www.google.com/recaptcha/admin#list" target="_blank">reCAPTCHA</a></em>