-
Notifications
You must be signed in to change notification settings - Fork 0
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 #18 from govau/Commenting
Template updates
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{# | ||
/** | ||
* @file | ||
* Theme override for an 'input' #type form element. | ||
* | ||
* Available variables: | ||
* - attributes: A list of HTML attributes for the input element. | ||
* - children: Optional additional rendered elements. | ||
* | ||
* @see template_preprocess_input() | ||
*/ | ||
/** | ||
* @TODO: Add templating to add the correct classes via a preprocess function. | ||
* They need to be based on the eventual output of this, such as a button | ||
* (.au-btn), or a text field (.au-text-input). | ||
#} | ||
|
||
{% set classes=['au-text-input',] %} | ||
|
||
<input{{ attributes.addClass(classes) }} />{{ children }} |
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,20 @@ | ||
{# | ||
/** | ||
* @file | ||
* Theme override for an 'input' #type form element. | ||
* | ||
* Available variables: | ||
* - attributes: A list of HTML attributes for the input element. | ||
* - children: Optional additional rendered elements. | ||
* | ||
* @see template_preprocess_input() | ||
*/ | ||
/** | ||
* @TODO: Add templating to add the correct classes via a preprocess function. | ||
* They need to be based on the eventual output of this, such as a button | ||
* (.au-btn), or a text field (.au-text-input). | ||
#} | ||
|
||
{% set classes=['au-text-input',] %} | ||
|
||
<input{{ attributes.addClass(classes) }} />{{ children }} |
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,21 @@ | ||
{# | ||
/** | ||
* @file | ||
* Theme override for a 'textarea' #type form element. | ||
* | ||
* Available variables | ||
* - wrapper_attributes: A list of HTML attributes for the wrapper element. | ||
* - attributes: A list of HTML attributes for the textarea element. | ||
* - resizable: An indicator for whether the textarea is resizable. | ||
* - required: An indicator for whether the textarea is required. | ||
* - value: The textarea content. | ||
* | ||
* @see template_preprocess_textarea() | ||
*/ | ||
#} | ||
|
||
{% set classes = ['au-text-input', 'au-text-input--block'] %} | ||
|
||
<div{{ wrapper_attributes }}> | ||
<textarea{{ attributes.addClass(classes) }}>{{ value }}</textarea> | ||
</div> |