mirror of https://github.com/interlegis/sapl.git
Edward
9 years ago
6 changed files with 96 additions and 15 deletions
@ -1,10 +1,13 @@ |
|||||
-r test-requirements.txt |
-r test-requirements.txt |
||||
autopep8 |
autopep8==1.2.2 |
||||
beautifulsoup4 |
beautifulsoup4==4.4.1 |
||||
django-debug-toolbar |
django-debug-toolbar==1.4 |
||||
django-extensions |
django-extensions==1.6.1 |
||||
flake8 |
django-floppyforms==1.6.1 |
||||
ipdb |
easy-thumbnails==2.3 |
||||
isort |
flake8==2.5.4 |
||||
pygraphviz |
ipdb==0.9.0 |
||||
pytest-ipdb==0.1-prerelease2 # nao instala sem fixar a versao |
isort==4.2.2 |
||||
|
pygraphviz==1.3rc2 |
||||
|
pytest-ipdb==0.1-prerelease2 |
||||
|
|
||||
|
After Width: | Height: | Size: 6.2 KiB |
@ -0,0 +1,64 @@ |
|||||
|
{% load i18n staticfiles thumbnail %} |
||||
|
|
||||
|
<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 value.url %} |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<img src="{{ value.url }}" |
||||
|
alt="{{ value }}" class="img-thumbnail"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<input type="checkbox" |
||||
|
name="{{ checkbox_name }}" |
||||
|
id="{{ checkbox_id }}" /> |
||||
|
<label for="{{ checkbox_id }}"> |
||||
|
{% trans "Clear" %} |
||||
|
</label> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
{% else %} |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<img src="{% static 'img/perfil.png' %}"" |
||||
|
class="img-thumbnail"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
{% endif %} |
||||
|
<div> |
||||
|
<br /> |
||||
|
<div class="form-inline"> |
||||
|
<input type="{{ type }}" name="{{ name }}" |
||||
|
{% if required %}required{% endif %} |
||||
|
class="filestyle" |
||||
|
data-icon="false" |
||||
|
data-classButton="btn btn-default" |
||||
|
data-classInput="form-control"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
{% include 'bootstrap3/layout/help_text_and_errors.html' %} |
||||
|
</div> |
||||
|
</div> |
Loading…
Reference in new issue