annotate core/themes/classy/templates/form/textarea.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Theme override for a 'textarea' #type form element.
Chris@0 5 *
Chris@0 6 * Available variables
Chris@0 7 * - wrapper_attributes: A list of HTML attributes for the wrapper element.
Chris@0 8 * - attributes: A list of HTML attributes for the <textarea> element.
Chris@0 9 * - resizable: An indicator for whether the textarea is resizable.
Chris@0 10 * - required: An indicator for whether the textarea is required.
Chris@0 11 * - value: The textarea content.
Chris@0 12 *
Chris@0 13 * @see template_preprocess_textarea()
Chris@0 14 */
Chris@0 15 #}
Chris@0 16 {%
Chris@0 17 set classes = [
Chris@0 18 'form-textarea',
Chris@0 19 resizable ? 'resize-' ~ resizable,
Chris@0 20 required ? 'required',
Chris@0 21 ]
Chris@0 22 %}
Chris@0 23 <div{{ wrapper_attributes.addClass('form-textarea-wrapper') }}>
Chris@0 24 <textarea{{ attributes.addClass(classes) }}>{{ value }}</textarea>
Chris@0 25 </div>