Skip to content

Commit

Permalink
add button to create file actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Oct 17, 2024
1 parent 146c93c commit 8e612eb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tin/static/css/choose.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
box-sizing: border-box;
}

.multi-part-container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}

.row {
display: flex;
flex-wrap: wrap;
Expand Down
6 changes: 5 additions & 1 deletion tin/templates/assignments/choose_file_action.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@

{% block main %}
{% if course_actions %}
<h2>Your File Actions</h2>
<div class="multi-part-container">
<h2>Your File Actions</h2>
<a class="btn tin-btn" href="{% url 'assignments:create_file_action' course.id %}">Create new file action</a>
</div>


<div class="row" id="course-actions">
{% for action in course_actions %}
Expand Down
2 changes: 2 additions & 0 deletions tin/templates/assignments/custom_file_action.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ <h2>Create a File Action</h2>
</p>
{% endif %}

<p>For an explanation of what file actions are, and how to use them, check out <a href="https://tjcsl.github.io/tin">Tin's documentation</a></p>

<form method="post" action="{% url 'assignments:create_file_action' course.id %}?{{ request.GET.urlencode }}">
{% csrf_token %}
<div class="tbl">
Expand Down

0 comments on commit 8e612eb

Please sign in to comment.