From 63ad6b6efb056efcd33feb82e508d3e418f22740 Mon Sep 17 00:00:00 2001 From: Carlos Vega <carlos.vega@.uni.lu> Date: Fri, 28 Sep 2018 17:39:34 +0200 Subject: [PATCH] removed unnecessary code. Fixed issue #222 in template doctors/edit.html as well --- smash/web/templates/doctors/add.html | 1 - smash/web/templates/doctors/edit.html | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/smash/web/templates/doctors/add.html b/smash/web/templates/doctors/add.html index d3fe6a0f..b09413fc 100644 --- a/smash/web/templates/doctors/add.html +++ b/smash/web/templates/doctors/add.html @@ -38,7 +38,6 @@ {{ field.label }} </label> - {{field.field.widget.attrs.class}} <div class="col-sm-8"> {{ field|add_class:'form-control' }} </div> diff --git a/smash/web/templates/doctors/edit.html b/smash/web/templates/doctors/edit.html index 0cec140d..c8435067 100644 --- a/smash/web/templates/doctors/edit.html +++ b/smash/web/templates/doctors/edit.html @@ -6,6 +6,11 @@ {{ block.super }} <!-- DataTables --> <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> + <style type="text/css"> + .hidden_form_field{ + display: none; + } + </style> {% endblock styles %} {% block ui_active_tab %}'workers'{% endblock ui_active_tab %} @@ -29,7 +34,7 @@ <div class="box-body"> {% for field in form %} - <div class="col-md-6 form-group {% if field.errors %}has-error{% endif %}"> + <div class="col-md-6 form-group {% if field.errors %}has-error{% endif %} {{ field.field.widget.attrs.class }}"> <label for="{# TODO #}" class="col-sm-4 control-label"> {{ field.label }} </label> -- GitLab