This repository has been archived by the owner on Oct 6, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from paragonie/issue-129
Allow Motifs to be Configured (See #129)
- Loading branch information
Showing
25 changed files
with
414 additions
and
104 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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<h2>{{ __(title) }}</h2> | ||
|
||
<form method="post">{{ form_token() }} | ||
{% include cargo("bridge_motifs_config_overloaded") ignore missing %} | ||
|
||
<div class="text-right form-button-group no-border"> | ||
<a href="{{ cabin_url() }}motifs" class="pure-button pure-button-tertiary"> | ||
{{ __("Cancel") }} | ||
</a> | ||
|
||
<button type="submit" class="pure-button pure-button-primary"> | ||
<i class="fa fa-paint-brush"></i> | ||
{{ __("Save Motif Configuration") }} | ||
</button> | ||
</div> | ||
</form> |
6 changes: 6 additions & 0 deletions
6
src/Cabin/Bridge/Lens/cargo/bridge_motifs_config_overloaded.twig
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{# For motifs that fail to override this template. #} | ||
<textarea name="motif_config">{{ | ||
motif_config|json_encode( | ||
constant("JSON_PRETTY_PRINT") | ||
) | ||
}}</textarea> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends base_template() %} | ||
|
||
{% block main %} | ||
{% include cargo("bridge_motifs_config") %} | ||
{% endblock %} |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
use Airship\Engine\Security\Filter\{ | ||
BoolFilter, | ||
GeneralFilterContainer | ||
}; | ||
|
||
/** | ||
* @return $motifInputFilter | ||
*/ | ||
$motifInputFilter = (new GeneralFilterContainer()) | ||
->addFilter( | ||
'bridge.gradient', | ||
new BoolFilter() | ||
) | ||
; |
Oops, something went wrong.