mirror of https://github.com/interlegis/sapl.git
LeandroJatai
5 months ago
1 changed files with 66 additions and 0 deletions
@ -0,0 +1,66 @@ |
|||
{% load i18n staticfiles thumbnail %} |
|||
{% load webpack_static from webpack_loader %} |
|||
<div id="div_{{ field.auto_id }}" |
|||
class="control-group |
|||
{% if form_show_errors %} |
|||
{% if field.errors %} error{% endif %} |
|||
{% endif %} |
|||
{% if field.css_classes %} {{ field.css_classes }}{% endif %}"> |
|||
|
|||
{% if field.label %} |
|||
<label for="{{ field.id_for_label }}" |
|||
class="control-label |
|||
{{ label_class }} |
|||
{% if field.field.required %} |
|||
requiredField |
|||
{% endif %}"> |
|||
{{ field.label|safe }}{% if field.field.required %} |
|||
<span class="asteriskField">*</span>{% endif %} |
|||
</label> |
|||
{% endif %} |
|||
|
|||
<div class="controls {{ field_class }}"> |
|||
<div class="fileupload fileupload-new" |
|||
data-provides="fileupload"> |
|||
{% if widget.value.url %} |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<img src="{{ widget.value.url }}" |
|||
height="300" width="300" |
|||
alt="{{ widget.value }}" class="img-thumbnail"/> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<input type="checkbox" |
|||
name="{{ widget.checkbox_name }}" |
|||
id="{{ widget.checkbox_id }}" /> |
|||
<label for="{{ widget.checkbox_id }}"> |
|||
{% trans "Clear" %} |
|||
</label> |
|||
</div> |
|||
</div> |
|||
|
|||
{% else %} |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<img src="{% webpack_static 'img/perfil.png' %}" |
|||
class="img-thumbnail"/> |
|||
</div> |
|||
</div> |
|||
{% endif %} |
|||
<div> |
|||
<br /> |
|||
<div class="form-inline"> |
|||
<input type="{{ widget.type }}" name="{{ widget.name }}" |
|||
{% if widget.required %}required{% endif %} |
|||
class="filestyle" |
|||
data-icon="false" |
|||
data-classButton="btn btn-outline-primary" |
|||
data-classInput="form-control"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
{% include 'bootstrap3/layout/help_text_and_errors.html' %} |
|||
</div> |
|||
</div> |
Loading…
Reference in new issue