Fixes #128: Profiles page details are only displayed when social user profiles is enabled
This commit is contained in:
parent
b2443d0ff9
commit
3b76f20738
@ -62,35 +62,37 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<fieldset class="mt-4">
|
||||
<legend class="ml-md-5">Public profile</legend>
|
||||
@if (UserConfig::get('social_user_profiles'))
|
||||
<fieldset class="mt-4 mb-4">
|
||||
<legend class="ml-md-5">Public profile</legend>
|
||||
|
||||
<div class="form-group row{{ $errors->has('profile_alias') ? ' has-danger' : '' }}">
|
||||
<label class="col-md-4 col-form-label text-md-right" for="profile-alias">@lang('forms.profile_alias_label')</label>
|
||||
<div class="form-group row{{ $errors->has('profile_alias') ? ' has-danger' : '' }}">
|
||||
<label class="col-md-4 col-form-label text-md-right" for="profile-alias">@lang('forms.profile_alias_label')</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control{{ $errors->has('profile_alias') ? ' is-invalid' : '' }}" id="profile-alias" name="profile_alias" value="{{ old('profile_alias', $user->profile_alias) }}">
|
||||
<small id="emailHelp" class="form-text text-muted">@lang('forms.profile_alias_help')</small>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control{{ $errors->has('profile_alias') ? ' is-invalid' : '' }}" id="profile-alias" name="profile_alias" value="{{ old('profile_alias', $user->profile_alias) }}">
|
||||
<small id="emailHelp" class="form-text text-muted">@lang('forms.profile_alias_help')</small>
|
||||
|
||||
@if ($errors->has('profile_alias'))
|
||||
<div class="invalid-feedback">
|
||||
<strong>{{ $errors->first('profile_alias') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="enable-profile-page" name="enable_profile_page"@if (old('enable_profile_page', $user->enable_profile_page)) checked="checked"@endif>
|
||||
<label class="form-check-label" for="enable-profile-page">@lang('forms.enable_profile_page_label')</label>
|
||||
@if ($errors->has('profile_alias'))
|
||||
<div class="invalid-feedback">
|
||||
<strong>{{ $errors->first('profile_alias') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="text-right mt-5">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="enable-profile-page" name="enable_profile_page"@if (old('enable_profile_page', $user->enable_profile_page)) checked="checked"@endif>
|
||||
<label class="form-check-label" for="enable-profile-page">@lang('forms.enable_profile_page_label')</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
@endif
|
||||
|
||||
<div class="text-right">
|
||||
<a href="{{ route('home') }}" class="btn btn-link">@lang('forms.cancel_action')</a>
|
||||
<button type="submit" class="btn btn-success"><i class="fa fa-fw fa-check"></i> @lang('forms.save_action')</button>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user