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> <h4>Your information</h4>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<td> <td width="30%">
<b>Name</b><br /> <b>Name</b><br />
<small>(not visible to the public)</small></td> <small>Not visible to the public.</small></td>
<td>{{ profile.name|default:"N/A" }}</td> <td width="70%">
{{ profile.name|default:"N/A" }}
</td>
</tr> </tr>
<tr> <tr>
<td> <td>
<b>Description</b><br /> <b>Description</b><br />
<small>(not visible to the public)</small> <small>Not visible to the public.</small>
</td> </td>
<td>{{ profile.description|default:"N/A" }}</td> <td>{{ profile.description|default:"N/A" }}</td>
</tr> </tr>
<tr> <tr>
<td> <td>
<b>Public Credit Name</b><br /> <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>
<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> {{ 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>
<tr> <tr>
<td> <td>
<b>NickServ username</b><br /> <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>
<td> <td>
{{ profile.nickserv_username|default:"N/A" }} {{ profile.nickserv_username|default:"N/A" }}
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</div> </div>

View file

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