| {% extends "modules/gci/form_base.html" %} |
| {% comment %} |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| {% endcomment %} |
| |
| {% block stylesheets %} |
| {{ block.super }} |
| <link rel="stylesheet" type="text/css" media="screen" href="/{{ css_path }}/dynamicoptions.css" /> |
| {% endblock stylesheets %} |
| |
| {% block form_button %} |
| <fieldset> |
| <legend> |
| <span>Task Settings</span> |
| </legend> |
| <div id="form_row_task_difficulties" class="form-row task_difficulties"></div> |
| <div id="form_row_task_types" class="form-row task_types"></div> |
| </fieldset> |
| |
| <div class="form-row form-row-buttons"> |
| <input value="{{button_value|default:'Submit'}}" class="button" type="submit" name="{{button_name}}"> |
| </div> |
| {% endblock form_button %} |
| |
| {% block synchronous_scripts %} |
| <script type='text/javascript' src="/tiny_mce/tinymce.min.js"></script> |
| {{ block.super }} |
| {% endblock synchronous_scripts %} |
| |
| {% block dependencies %} |
| [ |
| dep.melange.autocomplete, |
| dep.jqueryui, |
| dep.uniform, |
| dep.melange.dynamicoptions, |
| null, |
| tc( |
| "/soc/content/{{ app_version }}/js/templates/modules/gci/program/base.js", |
| { |
| label: "{{ forms.0.fields.task_types.label }}", |
| initial: '{{ forms.0.task_types_json|safe }}' |
| } |
| ) |
| ] |
| {% endblock dependencies %} |