Update Settings view, add account delete link

This commit is contained in:
Daniel Supernault 2019-04-20 22:50:02 -06:00
parent 3c5cdf9e31
commit 41ad06fc7e
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -106,21 +106,34 @@
<div class="col-sm-9"> <div class="col-sm-9">
<div class="custom-control custom-radio custom-control-inline"> <div class="custom-control custom-radio custom-control-inline">
<input type="radio" id="profileLayout1" name="profile_layout" class="custom-control-input" {{Auth::user()->profile->profile_layout != 'moment' ? 'checked':''}} value="metro"> <input type="radio" id="profileLayout1" name="profile_layout" class="custom-control-input" {{Auth::user()->profile->profile_layout != 'moment' ? 'checked':''}} value="metro">
<label class="custom-control-label" for="profileLayout1">Metro</label> <label class="custom-control-label" for="profileLayout1">MetroUI</label>
</div> </div>
<div class="custom-control custom-radio custom-control-inline"> <div class="custom-control custom-radio custom-control-inline">
<input type="radio" id="profileLayout2" name="profile_layout" class="custom-control-input" {{Auth::user()->profile->profile_layout == 'moment' ? 'checked':''}} value="moment"> <input type="radio" id="profileLayout2" name="profile_layout" class="custom-control-input" {{Auth::user()->profile->profile_layout == 'moment' ? 'checked':''}} value="moment">
<label class="custom-control-label" for="profileLayout2">Moment</label> <label class="custom-control-label" for="profileLayout2">MomentUI</label>
</div> </div>
</div> </div>
</div> </div>
<hr> <hr>
@if(config('pixelfed.account_deletion') == true)
<div class="form-group row py-3">
<div class="col-12 d-flex align-items-center justify-content-between">
<a class="font-weight-bold" href="{{route('settings.remove.temporary')}}">Temporarily Disable Account</a>
<button type="submit" class="btn btn-primary font-weight-bold float-right">Submit</button>
</div>
</div>
<hr>
<p class="mb-0 text-center pt-4">
<a class="font-weight-bold text-danger" href="{{route('settings.remove.permanent')}}">Delete Account</a>
</p>
@else
<div class="form-group row"> <div class="form-group row">
<div class="col-12 d-flex align-items-center justify-content-between"> <div class="col-12 d-flex align-items-center justify-content-between">
<a class="font-weight-bold" href="{{route('settings.remove.temporary')}}">Temporarily Disable Account</a> <a class="font-weight-bold" href="{{route('settings.remove.temporary')}}">Temporarily Disable Account</a>
<button type="submit" class="btn btn-primary font-weight-bold float-right">Submit</button> <button type="submit" class="btn btn-primary font-weight-bold float-right">Submit</button>
</div> </div>
</div> </div>
@endif
</form> </form>
@endsection @endsection