From 0155bc3231d9bf98125d4d9d7878701b35f05148 Mon Sep 17 00:00:00 2001 From: juliotoscano Date: Mon, 5 Dec 2016 09:30:08 -0300 Subject: [PATCH] exam css --- app/templates/home.html | 4 ++-- core/templates/base.html | 2 +- exam/static/css/exam.css | 3 ++- exam/templates/exam/create.html | 13 +++++++++---- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/app/templates/home.html b/app/templates/home.html index 850d44a..4878fa5 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -13,9 +13,9 @@ var numberPages = 0 ; // Indicates the number of pages {% endif %} var baseUrl = '{% url "app:index" %}'; - - + {% endif %} + {% endblock %} {% block breadcrumbs %} diff --git a/core/templates/base.html b/core/templates/base.html index bf0815a..d59aa90 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -43,7 +43,7 @@ - + diff --git a/exam/static/css/exam.css b/exam/static/css/exam.css index eeb0bc3..97331da 100644 --- a/exam/static/css/exam.css +++ b/exam/static/css/exam.css @@ -1,3 +1,4 @@ .primary-label-TF{ padding-left: 0px; -} \ No newline at end of file +} +.title-questions-exam{padding-left:1.5%;} \ No newline at end of file diff --git a/exam/templates/exam/create.html b/exam/templates/exam/create.html index 339d7d1..7652af3 100644 --- a/exam/templates/exam/create.html +++ b/exam/templates/exam/create.html @@ -2,6 +2,10 @@ {% load i18n widget_tweaks static django_bootstrap_breadcrumbs %} +{% block style %} + +{% endblock %} + {% block breadcrumbs %} {{ block.super }} {% breadcrumb 'Create exam' 'course:create_exam' %} @@ -56,7 +60,6 @@ -
@@ -77,6 +80,7 @@ //Insert Create select with question type var idQuestionType = 1; $("#addQuestion").on("click", function(event){ + var title = '

Choice your questions:


'; var element = '
' + '
' + '
' + '
' - ; + ; if (idQuestionType == 1){ - $(element).insertAfter('#buttonAddQuestion'); - }else{ + $(title).insertBefore('#buttonAddQuestion'); + $(element).insertBefore('#buttonAddQuestion'); + }else{ var idhr = '#hr_'+(idQuestionType-1); $(element).insertAfter(idhr); } -- libgit2 0.21.2