]> git.mxchange.org Git - friendica.git/commitdiff
New parameter for textareas to make them readonly
authorMichael <heluecht@pirati.ca>
Tue, 15 Aug 2023 20:22:15 +0000 (20:22 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 15 Aug 2023 20:22:15 +0000 (20:22 +0000)
view/templates/field_textarea.tpl
view/theme/frio/templates/field_textarea.tpl

index edd48d1d0fd448ea8ec10de902003f3f7180a155..f5221b56980b407f837da0673f6f827414c11fb4 100644 (file)
@@ -1,7 +1,7 @@
 
        <div class="field textarea">
                <label for="id_{{$field.0}}">{{$field.1}}{{if $field.4}} <span class="required" title="{{$field.4}}">*</span>{{/if}}</label>
-               <textarea name="{{$field.0}}" id="id_{{$field.0}}"{{if $field.4}} required{{/if}} aria-describedby="{{$field.0}}_tip" dir="auto">{{$field.2}}</textarea>
+               <textarea class="form-control text-autosize" name="{{$field.0}}" id="id_{{$field.0}}" {{if $field.4}} required{{/if}}{{if $field.5}} {{$field.5}}{{/if}} aria-describedby="{{$field.0}}_tip" dir="auto">{{$field.2}}</textarea>
        {{if $field.3}}
                <span class="field_help" role="tooltip" id="{{$field.0}}_tip">{{$field.3 nofilter}}</span>
        {{/if}}
index 72bcc232a1dc7ae0fa7751d2aec4490ca38f0f38..ef9838f56597a216883fdecaf6b18c68c7a67095 100644 (file)
@@ -2,7 +2,7 @@
        {{if $field.1}}
                <label for="id_{{$field.0}}">{{$field.1}}{{if $field.4}} <span class="required" title="{{$field.4}}">*</span>{{/if}}</label>
        {{/if}}
-               <textarea class="form-control text-autosize" name="{{$field.0}}" id="id_{{$field.0}}"{{if $field.4}} required{{/if}} aria-describedby="{{$field.0}}_tip">{{$field.2}}</textarea>
+               <textarea class="form-control text-autosize" name="{{$field.0}}" id="id_{{$field.0}}"{{if $field.4}} required{{/if}}{{if $field.5}} {{$field.5}}{{/if}} aria-describedby="{{$field.0}}_tip">{{$field.2}}</textarea>
        {{if $field.3}}
                <span class="help-block" id="{{$field.0}}_tip" role="tooltip">{{$field.3 nofilter}}</span>
        {{/if}}