Skip to content

Commit

Permalink
refactor: fix blade formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt authored and github-actions[bot] committed Aug 28, 2024
1 parent 5148c71 commit c5149ed
Show file tree
Hide file tree
Showing 6 changed files with 237 additions and 227 deletions.
24 changes: 13 additions & 11 deletions resources/views/account/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,20 @@
<h3>Character Warning Visibility</h3>
<p>This setting will change how characters with content warnings are displayed to you.</p>
{!! Form::open(['url' => 'account/warning']) !!}
<div class="form-group row">
<label class="col-md-2 col-form-label">Setting</label>
<div class="col-md-10">
{!! Form::select('content_warning_visibility',
['0' => '0: Character has pop-up warning and censored icons.', '1' => '1: Character has pop-up warnings only.', '2' => '2: No warnings will appear on characters.'],
Auth::user()->settings->content_warning_visibility, ['class' => 'form-control'])
!!}
</div>
</div>
<div class="text-right">
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
<div class="form-group row">
<label class="col-md-2 col-form-label">Setting</label>
<div class="col-md-10">
{!! Form::select(
'content_warning_visibility',
['0' => '0: Character has pop-up warning and censored icons.', '1' => '1: Character has pop-up warnings only.', '2' => '2: No warnings will appear on characters.'],
Auth::user()->settings->content_warning_visibility,
['class' => 'form-control'],
) !!}
</div>
</div>
<div class="text-right">
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
</div>
{!! Form::close() !!}
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</div>
</div>
<div class="row">
<div class="col-md-{{ config('lorekeeper.settings.enable_character_content_warnings' ) ? 6 : 12 }}">
<div class="col-md-{{ config('lorekeeper.settings.enable_character_content_warnings') ? 6 : 12 }}">
<div class="form-group">
{!! Form::label('Character Code') !!} {!! add_help('This code identifies the character itself. You don\'t have to use the automatically generated code, but this must be unique among all characters (as it\'s used to generate the character\'s page URL).') !!}
{!! Form::text('slug', old('slug'), ['class' => 'form-control', 'id' => 'code']) !!}
Expand Down
Loading

0 comments on commit c5149ed

Please sign in to comment.