forked from projects/fipamo
ro
c7aef33845
the settings page was failing to load because it was referencing a parameter in the mail config data array that did not exist. that's been fixed so the page loads properly
32 lines
2.5 KiB
PHP
32 lines
2.5 KiB
PHP
@if($mailOption == "option-smtp")
|
|
<div id="mail-smtp" data-enabled='true'>
|
|
<input type='text' class="input-dark" name='smtp-domain' id='smtp-domain' placeholder='domain'value="{{$mailConfig['smtp']['domain']}}"/>
|
|
<input type='text' class="input-dark" name='smtp-email' id='smtp-email' placeholder='email' value="{{$mailConfig['smtp']['email']}}" />
|
|
<input type='text' class="input-dark" name='smtp-pass' id='smtp-pass' placeholder='password' value="{{$mailConfig['smtp']['password']}}"/>
|
|
</div>
|
|
<div id="mail-mg" data-enabled='false'>
|
|
<input type='text' class="input-dark" name='mg-domain' id='mg-domain' placeholder='domain' value="{{$mailConfig['mailgun']['domain']}}" />
|
|
<input type='text' class="input-dark" name='mg-key' id='mg-key' placeholder='api key' value="{{$mailConfig['mailgun']['api-key']}}"/>
|
|
</div>
|
|
@elseif($mailOption == 'option-mg')
|
|
<div id="mail-smtp" data-enabled='false'>
|
|
<input type='text' class="input-dark" name='smtp-domain' id='smtp-domain' placeholder='domain'value="{{$mailConfig['smtp']['domain']}}"/>
|
|
<input type='text' class="input-dark" name='smtp-email' id='smtp-email' placeholder='email' value="{{$mailConfig['smtp']['email']}}" />
|
|
<input type='text' class="input-dark" name='smtp-pass' id='smtp-pass' placeholder='password' value="{{$mailConfig['smtp']['password']}}"/>
|
|
</div>
|
|
<div id="mail-mg" data-enabled='true'>
|
|
<input type='text' class="input-dark" name='mg-domain' id='mg-domain' placeholder='domain' value="{{$mailConfig['mailgun']['domain']}}" />
|
|
<input type='text' class="input-dark" name='mg-key' id='mg-key' placeholder='api key' value="{{$mailConfig['mailgun']['api-key']}}"/>
|
|
</div>
|
|
@else
|
|
<div id="mail-smtp" data-enabled='false'>
|
|
<input type='text' class="input-dark" name='smtp-domain' id='smtp-domain' placeholder='domain'value="{{$mailConfig['smtp']['domain']}}"/>
|
|
<input type='text' class="input-dark" name='smtp-email' id='smtp-email' placeholder='email' value="{{$mailConfig['smtp']['email']}}" />
|
|
<input type='text' class="input-dark" name='smtp-pass' id='smtp-pass' placeholder='password' value="{{$mailConfig['smtp']['password']}}"/>
|
|
</div>
|
|
<div id="mail-mg" data-enabled='false'>
|
|
<input type='text' class="input-dark" name='mg-domain' id='mg-domain' placeholder='domain' value="{{$mailConfig['mailgun']['domain']}}" />
|
|
<input type='text' class="input-dark" name='mg-key' id='mg-key' placeholder='api key' value="{{$mailConfig['mailgun']['api-key']}}"/>
|
|
</div>
|
|
@endif
|