Some adjustments,

This commit is contained in:
Víðir Valberg Guðmundsson 2019-03-26 13:24:23 +01:00
parent 8c4d99d9e8
commit b3a7825b56
2 changed files with 15 additions and 8 deletions

View file

@ -24,37 +24,44 @@
<h4>Your information</h4>
</div>
<div class="panel-body">
<table class="table table-striped">
<tr>
<td>
<td width="30%">
<b>Name</b><br />
<small>(not visible to the public)</small></td>
<td>{{ profile.name|default:"N/A" }}</td>
<small>Not visible to the public.</small></td>
<td width="70%">
{{ profile.name|default:"N/A" }}
</td>
</tr>
<tr>
<td>
<b>Description</b><br />
<small>(not visible to the public)</small>
<small>Not visible to the public.</small>
</td>
<td>{{ profile.description|default:"N/A" }}</td>
</tr>
<tr>
<td>
<b>Public Credit Name</b><br />
<small>(visible to the public, leave empty if you want no credits on this website)</small>
<small>Visible to the public, leave empty if you want no credits on this website.</small>
</td>
<td>
{{ profile.public_credit_name|default:"N/A" }} {% if profile.public_credit_name %}({% if profile.public_credit_name_approved %}<span class="text-success">approved</span>{% else %}<span class="text-danger">pending approval</span>{% endif %}){% endif %}</td>
</tr>
<tr>
<td>
<b>NickServ username</b><br />
<small>(visible to the public on IRC, used to handle team channel ACLs)</small>
<small>Visible to the public on IRC, used to handle team channel ACLs.</small>
</td>
<td>
{{ profile.nickserv_username|default:"N/A" }}
</td>
</tr>
</table>
</div>
</div>

View file

@ -6,7 +6,7 @@
<form method="POST">
{% csrf_token %}
{% bootstrap_form form %}
<button type="submit" class="btn btn-black"><i class="fas fa-save"></i> Submit</button>
<a href="{% url 'profiles:detail' %}" class="btn btn-black"><i class="fas fa-times"></i> Cancel</a>
<button type="submit" class="btn btn-success"><i class="fas fa-save"></i> Submit</button>
<a href="{% url 'profiles:detail' %}" class="btn btn-danger"><i class="fas fa-times"></i> Cancel</a>
</form>
{% endblock profile_content %}