This repository has been archived by the owner on Oct 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create basic UI for Motif configuration.
- Loading branch information
1 parent
e6bb9fe
commit 4b16749
Showing
12 changed files
with
205 additions
and
11 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
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
File renamed without changes.
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,9 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* This script runs when upgrading to v1.3.0 from an earlier version. | ||
* It deletes the old symlinks used for resolving Motif templates. | ||
* | ||
* @todo Finish this before releasing v1.3.0 | ||
*/ |