Commit 558aae6846fdc43689311e0d3baae74e4d1b916c

Authored by Matheus Lins
1 parent 52ba6c42

replicate course 2 #189

Showing 1 changed file with 135 additions and 0 deletions   Show diff stats
courses/templates/course/replicate.html 0 → 100644
... ... @@ -0,0 +1,135 @@
  1 +{% extends 'course/view.html' %}
  2 +
  3 +{% load static i18n %}
  4 +{% load widget_tweaks %}
  5 +
  6 +{% block breadcrumbs %}
  7 + <ol class="breadcrumb">
  8 + <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li>
  9 + <li class="active">{% trans 'Replicate Course' %}</li>
  10 + </ol>
  11 +{% endblock %}
  12 +
  13 +{% block content %}
  14 +<div class="card card-content">
  15 + <div class="card-body">
  16 + <form method="post" action="" enctype="multipart/form-data">{% csrf_token %}
  17 + <div class="form-group is-fileinput">
  18 + <label for="id_name">Name</label>
  19 +
  20 +
  21 + <input class="form-control" id="id_name" maxlength="100" name="name" type="text" required="" value="{{course.name}}">
  22 +
  23 + <span class="help-block">Course name</span>
  24 +
  25 + </div>
  26 +
  27 + <div class="form-group is-fileinput">
  28 + <label for="id_objectivies">Objectives</label>
  29 +
  30 + <textarea class="form-control" cols="80" id="id_objectivies" name="objectivies" rows="5">{{course.objectivies}}</textarea>
  31 +
  32 + <span class="help-block">Course objective</span>
  33 +
  34 + </div>
  35 +
  36 + <div class="form-group is-fileinput">
  37 + <label for="id_content">Content</label>
  38 +
  39 +
  40 + <textarea class="form-control" cols="80" id="id_content" name="content" rows="5">{{course.content}}</textarea>
  41 +
  42 + <span class="help-block">Course modules</span>
  43 +
  44 + </div>
  45 +
  46 + <div class="form-group is-fileinput">
  47 + <label for="id_max_students">Number of studets maximum</label>
  48 +
  49 +
  50 + <input class="form-control" id="id_max_students" min="0" name="max_students" type="number" value="{{course.max_students}}">
  51 +
  52 + <span class="help-block">Max number of students that a class can have</span>
  53 +
  54 + </div>
  55 +
  56 + <div class="form-group is-fileinput">
  57 + <label for="id_init_register_date">Course registration start date</label>
  58 +
  59 +
  60 + <input type="date" class="form-control" name="init_register_date" value="None" min="2016-10-24">
  61 +
  62 + <span class="help-block">Date that starts the registration period of the course (dd/mm/yyyy)</span>
  63 +
  64 + </div>
  65 +
  66 + <div class="form-group is-fileinput">
  67 + <label for="id_end_register_date">Course registration end date</label>
  68 +
  69 +
  70 + <input type="date" class="form-control" name="end_register_date" value="None" min="2016-10-24">
  71 +
  72 + <span class="help-block">Date that ends the registration period of the course (dd/mm/yyyy)</span>
  73 +
  74 + </div>
  75 +
  76 + <div class="form-group is-fileinput">
  77 + <label for="id_init_date">Course start date</label>
  78 +
  79 +
  80 + <input type="date" class="form-control" name="init_date" value="None" min="2016-10-24">
  81 +
  82 + <span class="help-block">Date that the course starts (dd/mm/yyyy)</span>
  83 +
  84 + </div>
  85 +
  86 + <div class="form-group is-fileinput">
  87 + <label for="id_end_date">Course end date</label>
  88 +
  89 +
  90 + <input type="date" class="form-control" name="end_date" value="None" min="2016-10-24">
  91 +
  92 + <span class="help-block">Date that the course ends (dd/mm/yyyy)</span>
  93 +
  94 + </div>
  95 +
  96 + <div class="form-group is-fileinput">
  97 + <label for="id_image">Imagem</label>
  98 +
  99 +
  100 + <input class="form-control" id="id_image" name="image" type="file">
  101 + <div class="input-group">
  102 + <input type="text" readonly="" class="form-control" placeholder="Choose your photo...">
  103 + <span class="input-group-btn input-group-sm">
  104 + <button type="button" class="btn btn-fab btn-fab-mini">
  105 + <i class="material-icons">attach_file</i>
  106 + </button>
  107 + </span>
  108 + </div>
  109 +
  110 + <span class="help-block">Representative image of the course</span>
  111 +
  112 + </div>
  113 +
  114 + <div class="form-group is-fileinput">
  115 + <label for="id_category">CourseCategory</label>
  116 +
  117 +
  118 + <select class="form-control" id="id_category" name="category" required="">
  119 + {% for category in categorys_courses %}
  120 + <option value="{{category.id}}">{{category}}</option>
  121 + {% endfor %}
  122 + </select>
  123 +
  124 + <span class="help-block">CourseCategory which the course belongs</span>
  125 +
  126 + </div>
  127 +
  128 + <div class="row text-center">
  129 + <input type="submit" value="Create" class="btn btn-primary">
  130 + </div>
  131 + </form>
  132 + </div>
  133 +</div>
  134 +</br>
  135 +{% endblock %}
0 136 \ No newline at end of file
... ...