forked from corowne/lorekeeper
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4ab4bb
commit 1e23dd7
Showing
9 changed files
with
71 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
<div class="col-lg-4 p-2"> | ||
<div class="card character-bio w-100 p-3"> | ||
<div class="row"> | ||
<div class="col-lg-4 col-md-6 col-4"> | ||
<h5>Species</h5> | ||
</div> | ||
<div class="col-lg-8 col-md-6 col-8">{!! $myo['species'] !!}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-lg-4 col-md-6 col-4"> | ||
<h5>Subtype</h5> | ||
</div> | ||
<div class="col-lg-8 col-md-6 col-8">{!! $myo['subtype'] !!}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-lg-4 col-md-6 col-4"> | ||
<h5>Rarity</h5> | ||
</div> | ||
<div class="col-lg-8 col-md-6 col-8">{!! $myo['rarity'] !!}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-lg-4 col-md-6 col-4"> | ||
<h5>Sex</h5> | ||
<div class="row"> | ||
<div class="col-lg-4 col-md-6 col-4"> | ||
<h5>Species</h5> | ||
</div> | ||
<div class="col-lg-8 col-md-6 col-8">{!! $myo['species'] !!}</div> | ||
</div> | ||
<div class="col-lg-8 col-md-6 col-8">{!! $myo['sex'] !!}</div> | ||
</div> | ||
@if(config('lorekeeper.character_pairing.colours')) | ||
<div class="row"> | ||
<div class="col-lg-4 col-md-6 col-4"> | ||
<h5>Colours</h5> | ||
<h5>Subtype</h5> | ||
</div> | ||
<div class="col-lg-8 col-md-6 col-8"> | ||
{!! $myo['palette'] ?? '<div class="alert alert-info">No colours generated. Inheritance likely disabled.</div>' !!} | ||
<div class="col-lg-8 col-md-6 col-8">{!! $myo['subtype'] !!}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-lg-4 col-md-6 col-4"> | ||
<h5>Rarity</h5> | ||
</div> | ||
<div class="col-lg-8 col-md-6 col-8">{!! $myo['rarity'] !!}</div> | ||
</div> | ||
@endif | ||
<div class="mb-3"> | ||
<div> | ||
<h5>Traits</h5> | ||
<div class="row"> | ||
<div class="col-lg-4 col-md-6 col-4"> | ||
<h5>Sex</h5> | ||
</div> | ||
<div class="col-lg-8 col-md-6 col-8">{!! $myo['sex'] !!}</div> | ||
</div> | ||
@if (config('lorekeeper.character_pairing.colours')) | ||
<div class="row"> | ||
<div class="col-lg-4 col-md-6 col-4"> | ||
<h5>Colours</h5> | ||
</div> | ||
<div class="col-lg-8 col-md-6 col-8"> | ||
{!! $myo['palette'] ?? '<div class="alert alert-info">No colours generated. Inheritance likely disabled.</div>' !!} | ||
</div> | ||
</div> | ||
@endif | ||
<div class="mb-3"> | ||
<div> | ||
<h5>Traits</h5> | ||
</div> | ||
|
||
<div> | ||
@if (count($myo['features']) > 0) | ||
@foreach ($myo['features'] as $feature) | ||
<div> | ||
<strong>{!! $feature->displayName !!}:</strong> | ||
({!! $feature->rarity->displayName !!}) | ||
{{ isset($myo['feature_data'][$loop->index]) ? '(' . $myo['feature_data'][$loop->index] . ')' : '' }} | ||
</div> | ||
@endforeach | ||
@else | ||
<div>No traits listed.</div> | ||
@endif | ||
<div> | ||
@if (count($myo['features']) > 0) | ||
@foreach ($myo['features'] as $feature) | ||
<div> | ||
<strong>{!! $feature->displayName !!}:</strong> | ||
({!! $feature->rarity->displayName !!}) | ||
{{ isset($myo['feature_data'][$loop->index]) ? '(' . $myo['feature_data'][$loop->index] . ')' : '' }} | ||
</div> | ||
@endforeach | ||
@else | ||
<div>No traits listed.</div> | ||
@endif | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
resources/views/character/admin/_edit_image_colours.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{!! Form::open(['url' => 'admin/character/image/' . $image->id . '/colours', 'class' => 'form-horizontal',]) !!} | ||
{!! Form::open(['url' => 'admin/character/image/' . $image->id . '/colours', 'class' => 'form-horizontal']) !!} | ||
|
||
{!! Form::hidden('edit', true) !!} | ||
{!! Form::hidden('edit', true) !!} | ||
|
||
<div class="mt-2"> | ||
@foreach(json_decode($image->colours, false) as $key => $colour) | ||
<div class="form-group"> | ||
{!! Form::color('colours[' . $key . ']', $colour, ['class' => 'form-control', 'required' => 'required']) !!} | ||
</div> | ||
@endforeach | ||
</div> | ||
<div class="mt-2"> | ||
@foreach (json_decode($image->colours, false) as $key => $colour) | ||
<div class="form-group"> | ||
{!! Form::color('colours[' . $key . ']', $colour, ['class' => 'form-control', 'required' => 'required']) !!} | ||
</div> | ||
@endforeach | ||
</div> | ||
|
||
{!! Form::submit('Update', ['class' => 'btn btn-primary']) !!} | ||
{!! Form::submit('Update', ['class' => 'btn btn-primary']) !!} | ||
|
||
{!! Form::close() !!} | ||
{!! Form::close() !!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters