mirror of
https://github.com/friendica/friendica
synced 2024-12-23 17:20:16 +00:00
e6036b8266
This simplifies some logic in if-conditions, because smarty just returns an empty string for undefined variables. Also, this commit removes unnecessary values from HTML input attributes.
11 lines
686 B
Smarty
11 lines
686 B
Smarty
<div class="form-group field input file">
|
|
<label for="id_{{$field.0}}" id="label_{{$field.0}}">{{$field.1}}{{if $field.4}} <span class="required" title="{{$field.4}}">*</span>{{/if}}</label>
|
|
<div class="input-group" id="{{$field.0}}">
|
|
<input class="form-control file" name="{{$field.0}}" id="id_{{$field.0}}" type="text" value="{{$field.2}}" {{if $field.4}}required{{/if}} aria-describedby="{{$field.0}}_tip">
|
|
<span class="input-group-addon image-select"><i class="fa fa-picture-o"></i></span>
|
|
</div>
|
|
{{if $field.3}}
|
|
<span class="help-block" id="{{$field.0}}_tip" role="tooltip">{{$field.3 nofilter}}</span>
|
|
{{/if}}
|
|
<div id="end_{{$field.0}}" class="field_end"></div>
|
|
</div>
|