-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add form styling and edit help messages for keys
- Loading branch information
1 parent
aa5ca48
commit 49d75ce
Showing
3 changed files
with
16 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,39 +7,27 @@ <h1>{% if post %}Edit{% else %}New{% endif %} Tune</h1> | |
{% csrf_token %} | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
{% for field in tune_form %} | ||
<td> | ||
<div> | ||
{{ field.errors }} | ||
<div class="mb-3"> | ||
<p>{{ field.label_tag }}</p> | ||
{{ field }} | ||
{{ field.errors }} | ||
{% if field.help_text %} | ||
<p class="help">{{ field.help_text|safe }}</p> | ||
{% endif %} | ||
</div> | ||
</td> | ||
{% endfor %} | ||
<!-- {% for field in rep_form %} | ||
<td> | ||
<div> | ||
{{ field.errors }} | ||
{% for field in rep_form %} | ||
<div class="mb-3"> | ||
<p> | ||
<p>{{ field.label_tag }}</p> | ||
{{ field }} | ||
{% if field.help_text %} | ||
<p class="help">{{ field.help_text|safe }}</p> | ||
{% endif %} | ||
</div> | ||
</td> | ||
{% endfor %} --> | ||
<td> | ||
<div> | ||
<p> | ||
{{ rep_form }} | ||
{{ field.errors }} | ||
</p> | ||
</div> | ||
</td> | ||
{% endfor %} | ||
|
||
|
||
<input type="submit" value="{% if post %}Edit{% else %}New{% endif %}" /> | ||
<a href="{% url 'tune:tune_list' %}">Go Back</a> | ||
<input type="submit" class="btn btn-success" value="{% if post %}Save{% else %}Create{% endif %}" /> | ||
This comment has been minimized.
Sorry, something went wrong.
ryaustin
Collaborator
|
||
</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
seems there is no
post
in context, might be more ideal to beif tune