forked from apluslms/a-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce46d6f
commit d43a3b0
Showing
17 changed files
with
406 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% extends "edit_course/edit_course_base.html" %} | ||
{% load i18n %} | ||
{% load bootstrap %} | ||
{% load course %} | ||
{% load editcourse %} | ||
|
||
{% block editbreadcrumblist %} | ||
{{ block.super }} | ||
<li><a href="{{ instance|url:'course-submission-tags' }}">{% translate "SUBMISSION_TAGS" %}</a></li> | ||
<li class="active">{% translate "ADD_NEW_SUBMISSION_TAG" %}</li> | ||
{% endblock %} | ||
{% block view_tag %}edit-course,course-submission-tags{% endblock %} | ||
|
||
{% block coursecontent %} | ||
<br /> | ||
<form method="post" class="well form-horizontal"> | ||
{% csrf_token %} | ||
<legend>{% translate "ADD_SUBMISSION_TAG" %}</legend> | ||
{{ form|bootstrap_horizontal }} | ||
<div class="form-group"> | ||
<div class="col-sm-10 col-sm-offset-2"> | ||
<button type="submit" class="aplus-button--default aplus-button--md">{% translate "SAVE" %}</button> | ||
<a href="{{ instance|url:'course-submission-tags' }}" class="aplus-button--secondary aplus-button--md" role="button">{% translate "CANCEL" %}</a> | ||
</div> | ||
</div> | ||
</form> | ||
{% endblock %} |
36 changes: 36 additions & 0 deletions
36
edit_course/templates/edit_course/submissiontag_delete.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% extends "edit_course/edit_course_base.html" %} | ||
{% load i18n %} | ||
{% load bootstrap %} | ||
{% load course %} | ||
{% load editcourse %} | ||
{% load colortag %} | ||
|
||
{% block editbreadcrumblist %} | ||
{{ block.super }} | ||
<li><a href="{{ instance|url:'course-tags' }}">{% translate "TAGS" %}</a></li> | ||
<li class="active">{% translate "REMOVE_SUBMISSION_TAG" %}</li> | ||
{% endblock %} | ||
{% block view_tag %}edit-course,course-submission-tags{% endblock %} | ||
|
||
{% block coursecontent %} | ||
<br /> | ||
<form method="post" class="well form-horizontal"> | ||
{% csrf_token %} | ||
<legend> | ||
{% translate "REMOVE_SUBMISSION_TAG_CONFIRMATION" %} | ||
</legend> | ||
|
||
<div class="alert alert-danger"> | ||
{% translate "REMOVE_SUBMISSION_TAG_CONFIRMATION_ALERT" %} | ||
{{ object|colortag }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
<input class="aplus-button--danger aplus-button--md" type="submit" value="{% translate 'REMOVE' %}" /> | ||
<a class="aplus-button--secondary aplus-button--md" role="button" href="{{ instance|url:'course-submission-tags' }}"> | ||
{% translate "CANCEL" %} | ||
</a> | ||
</div> | ||
</form> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% extends "edit_course/edit_course_base.html" %} | ||
{% load i18n %} | ||
{% load bootstrap %} | ||
{% load course %} | ||
{% load editcourse %} | ||
|
||
{% block editbreadcrumblist %} | ||
{{ block.super }} | ||
<li><a href="{{ instance|url:'course-submission-tags' }}">{% translate "SUBMISSION_TAGS" %}</a></li> | ||
<li class="active">{% translate "EDIT_SUBMISSION_TAG" %}</li> | ||
{% endblock %} | ||
{% block view_tag %}edit-course,course-submission-tags{% endblock %} | ||
|
||
{% block coursecontent %} | ||
<br /> | ||
<form method="post" class="well form-horizontal"> | ||
{% csrf_token %} | ||
<legend>{% translate "EDIT_SUBMISSION_TAG" %}</legend> | ||
{{ form|bootstrap_horizontal }} | ||
<div class="form-group"> | ||
<div class="col-sm-10 col-sm-offset-2"> | ||
<button type="submit" class="aplus-button--default aplus-button--md">{% translate "SAVE" %}</button> | ||
<a href="{{ instance|url:'course-submission-tags' }}" role="button" class="aplus-button--secondary aplus-button--md">{% translate "CANCEL" %}</a> | ||
</div> | ||
</div> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{% extends "edit_course/edit_course_base.html" %} | ||
{% load i18n %} | ||
{% load bootstrap %} | ||
{% load course %} | ||
{% load editcourse %} | ||
{% load colortag %} | ||
|
||
{% block editbreadcrumblist %} | ||
{{ block.super }} | ||
<li class="active">{% translate "TAGS" %}</li> | ||
{% endblock %} | ||
{% block view_tag %}edit-course,course-submission-tags{% endblock %} | ||
|
||
{% block coursecontent %} | ||
<br /> | ||
<p> | ||
<a class="aplus-button--secondary aplus-button--sm" role="button" href="{{ instance|url:'course-submission-tags-add' }}"> | ||
<span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> | ||
{% translate "ADD_NEW_SUBMISSION_TAG" %} | ||
</a> | ||
</p> | ||
<div class="panel panel-primary"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">{% translate "SUBMISSION_TAGS" %}</h3> | ||
</div> | ||
<table class="table table-striped table-bordered table-condensed"> | ||
<tr> | ||
<th>{% translate "TAG" %}</th> | ||
<th>{% translate "SLUG" %}</th> | ||
<th>{% translate "DESCRIPTION" %}</th> | ||
<th>{% translate "ACTIONS" %}</th> | ||
</tr> | ||
{% with hide_tooltip=True %} | ||
{% for tag in object_list %} | ||
<tr> | ||
<td>{{ tag|colortag }}</td> | ||
<td>{{ tag.slug }}</td> | ||
<td>{{ tag.description }}</td> | ||
<td> | ||
<a href="{{ tag|url:'course-submission-tags-edit' }}" class="aplus-button--secondary aplus-button--xs" role="button"> | ||
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span> | ||
{% translate "EDIT" %} | ||
</a> | ||
<a href="{{ tag|url:'course-submission-tags-remove' }}" class="aplus-button--secondary aplus-button--xs" role="button"> | ||
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> | ||
{% translate "REMOVE" %} | ||
</a> | ||
</td> | ||
</tr> | ||
{% empty %} | ||
<tr> | ||
<td colspan="4">{% translate "NO_SUBMISSION_TAGS" %}</td> | ||
</tr> | ||
{% endfor %} | ||
{% endwith %} | ||
</table> | ||
</div> | ||
{% endblock %} |
28 changes: 28 additions & 0 deletions
28
edit_course/templates/edit_course/submissiontagging_add.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% extends "edit_course/edit_course_base.html" %} | ||
{% load i18n %} | ||
{% load bootstrap %} | ||
{% load course %} | ||
{% load editcourse %} | ||
{% load static %} | ||
|
||
{% block editbreadcrumblist %} | ||
{{ block.super }} | ||
<li><a href="{{ instance|url:'course-submission-tags' }}">{% translate "TAGS" %}</a></li> | ||
<li class="active">{% translate "ADD_NEW_SUBMISSION_TAGGING" %}</li> | ||
{% endblock %} | ||
{% block view_tag %}edit-course,course-submission-tags{% endblock %} | ||
|
||
{% block coursecontent %} | ||
<br /> | ||
<form method="post" class="well form-horizontal"> | ||
{% csrf_token %} | ||
<legend>{% translate "ADD_NEW_SUBMISSION_TAGGING" %}</legend> | ||
{{ form|bootstrap_horizontal }} | ||
<div class="form-group"> | ||
<div class="col-sm-10 col-sm-offset-2"> | ||
<button type="submit" class="aplus-button--default aplus-button--md">{% translate "SAVE" %}</button> | ||
<a href="{{ instance|url:'course-submission-tags' }}" role="button" class="aplus-button--secondary aplus-button--md">{% translate "CANCEL" %}</a> | ||
</div> | ||
</div> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.