Update button styles

Replace Bootstrap 3 button default style with Bootstrap 4 equivalent.
This commit is contained in:
Joel Addison 2020-01-05 12:10:42 +10:00
parent fe7628b36e
commit bf94b789d6
14 changed files with 16 additions and 16 deletions

View file

@ -1,2 +1,2 @@
<input class="btn btn-primary" type="submit" value="Save" /> <input class="btn btn-primary" type="submit" value="Save" />
<a class="btn btn-default" href="{% url "dashboard" %}">Cancel</a> <a class="btn btn-secondary" href="{% url "dashboard" %}">Cancel</a>

View file

@ -18,7 +18,7 @@
<div class="form-actions"> <div class="form-actions">
<a class="btn btn-light" href="{% url "checkout" %}?fix_errors=true">Try fixing these errors</a> <a class="btn btn-light" href="{% url "checkout" %}?fix_errors=true">Try fixing these errors</a>
<a class="btn btn-light" href="{% url "dashboard" %}">Return to dashboard</a> <a class="btn btn-link" href="{% url "dashboard" %}">Return to dashboard</a>
</div> </div>
{% endblock %} {% endblock %}

View file

@ -23,7 +23,7 @@
<div class="form-actions"> <div class="form-actions">
<input class="btn btn-primary" type="submit" value="Apply payment" /> <input class="btn btn-primary" type="submit" value="Apply payment" />
<a class="btn btn-default" href="{% url "invoice" invoice.id %}">Return to invoice</a> <a class="btn btn-secondary" href="{% url "invoice" invoice.id %}">Return to invoice</a>
</div> </div>
</form> </form>

View file

@ -75,14 +75,14 @@
<i class="fa fa-credit-card"></i> Check out and pay <i class="fa fa-credit-card"></i> Check out and pay
</a> </a>
<a class="btn btn-light" href="{% url "dashboard" %}">Return to dashboard</a> <a class="btn btn-link" href="{% url "dashboard" %}">Return to dashboard</a>
{% else %} {% else %}
<p>You have no items that need to be paid.</p> <p>You have no items that need to be paid.</p>
<div class="form-actions"> <div class="form-actions">
<a class="btn btn-light" href="{% url "dashboard" %}">Return to dashboard</a> <a class="btn btn-link" href="{% url "dashboard" %}">Return to dashboard</a>
</div> </div>
{% endif %} {% endif %}

View file

@ -15,7 +15,7 @@
<div class="panel-footer"> <div class="panel-footer">
<input class="btn btn-primary" type="submit" value="Apply voucher code" /> <input class="btn btn-primary" type="submit" value="Apply voucher code" />
<a href="{% url "dashboard" %}" class="btn btn-default">Back to dashboard</a> <a href="{% url "dashboard" %}" class="btn btn-link">Return to dashboard</a>
</div> </div>
</div> </div>
</form> </form>

View file

@ -10,6 +10,6 @@
{% csrf_token %} {% csrf_token %}
<p>Are you sure you want to cancel <b>{{ proposal.title }}</b>?</p> <p>Are you sure you want to cancel <b>{{ proposal.title }}</b>?</p>
<input class="btn btn-danger" type="submit" value="I am sure" /> <input class="btn btn-danger" type="submit" value="I am sure" />
<a class="btn btn-default" href="{% url "proposal_detail" proposal.pk %}">{% trans 'No, keep it for now' %}</a> <a class="btn btn-secondary" href="{% url "proposal_detail" proposal.pk %}">{% trans 'No, keep it for now' %}</a>
</form> </form>
{% endblock %} {% endblock %}

View file

@ -22,7 +22,7 @@
<a class="btn btn-lg btn-success" role="button" href="{% url "proposal_speaker_manage" proposal.id %}">Manage Additional Speakers</a> <a class="btn btn-lg btn-success" role="button" href="{% url "proposal_speaker_manage" proposal.id %}">Manage Additional Speakers</a>
<a class="btn btn-lg btn-danger" href="{% url "proposal_cancel" proposal.pk %}">{% trans "Cancel this proposal" %}</a> <a class="btn btn-lg btn-danger" href="{% url "proposal_cancel" proposal.pk %}">{% trans "Cancel this proposal" %}</a>
{% else %} {% else %}
<a href="{% url "proposal_leave" proposal.pk %}" class="btn btn-default">{% trans "Remove me from this proposal" %}</a> <a href="{% url "proposal_leave" proposal.pk %}" class="btn btn-secondary">{% trans "Remove me from this proposal" %}</a>
{% endif %} {% endif %}
{% else %} {% else %}
{% trans 'Cancelled' %} {% trans 'Cancelled' %}
@ -61,7 +61,7 @@
<h2 class="my-4">{% trans 'Conversation with Reviewers' %}</h2> <h2 class="my-4">{% trans 'Conversation with Reviewers' %}</h2>
</div> </div>
</div> </div>
{% for message in proposal.messages.all %} {% for message in proposal.messages.all %}
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">

View file

@ -11,7 +11,7 @@
<fieldset> <fieldset>
{% include "_form_snippet.html" with form=form %} {% include "_form_snippet.html" with form=form %}
<input class="btn btn-primary" type="submit" value="Save" /> <input class="btn btn-primary" type="submit" value="Save" />
<a class="btn btn-default" href="{% url "proposal_detail" proposal.pk %}">Cancel</a> <a class="btn btn-secondary" href="{% url "proposal_detail" proposal.pk %}">Cancel</a>
</fieldset> </fieldset>
</form> </form>

View file

@ -14,7 +14,7 @@
You will be able to edit your proposal after it has been submitted. The program committee may ask questions, provide feedback, and even suggest changes to your proposal as part of the review processes. You will be able to edit your proposal after it has been submitted. The program committee may ask questions, provide feedback, and even suggest changes to your proposal as part of the review processes.
</p> </p>
<input class="btn btn-primary" type="submit" name="finish" value="Submit" /> <input class="btn btn-primary" type="submit" name="finish" value="Submit" />
<input class="btn btn-default" type="submit" name="add-speakers" value="Submit and Add Additional Speakers" /> <input class="btn btn-secondary" type="submit" name="add-speakers" value="Submit and Add Additional Speakers" />
</fieldset> </fieldset>
</form> </form>
{% endblock %} {% endblock %}

View file

@ -26,7 +26,7 @@
<div class="dropdown-menu pull-right"> <div class="dropdown-menu pull-right">
<input type="submit" name="result_submit" value="accept" class="btn btn-block btn-xs btn-success" /> <input type="submit" name="result_submit" value="accept" class="btn btn-block btn-xs btn-success" />
<input type="submit" name="result_submit" value="standby" class="btn btn-block btn-info btn-xs" /> <input type="submit" name="result_submit" value="standby" class="btn btn-block btn-info btn-xs" />
<input type="submit" name="result_submit" value="undecide" class="btn btn-block btn-default btn-xs" /> <input type="submit" name="result_submit" value="undecide" class="btn btn-block btn-secondary btn-xs" />
</div> </div>
{% else %} {% else %}
{% if proposal.result.status == "standby" %} {% if proposal.result.status == "standby" %}

View file

@ -18,7 +18,7 @@
<div class="form-actions pad-buttons"> <div class="form-actions pad-buttons">
<br/> <br/>
<input class="btn btn-primary" type="submit" value="Add" /> <input class="btn btn-primary" type="submit" value="Add" />
<a class="btn btn-default" href="{% url "dashboard" %}">Cancel</a> <a class="btn btn-secondary" href="{% url "dashboard" %}">Cancel</a>
</div> </div>
</form> </form>
</div> </div>

View file

@ -22,7 +22,7 @@
{{ form|bootstrap_horizontal }} {{ form|bootstrap_horizontal }}
<div class="form-actions"> <div class="form-actions">
<input class="btn btn-primary" type="submit" value="Apply" /> <input class="btn btn-primary" type="submit" value="Apply" />
<a class="btn btn-default" href="{% url "dashboard" %}">Cancel</a> <a class="btn btn-secondary" href="{% url "dashboard" %}">Cancel</a>
<p class="help-block"> <p class="help-block">
<small>By submitting this sponsor application you are agreeing to the <small>By submitting this sponsor application you are agreeing to the
{% comment %} {% comment %}

View file

@ -33,7 +33,7 @@
<div class="form-actions"> <div class="form-actions">
<input class="btn btn-primary" type="submit" value="Save" /> <input class="btn btn-primary" type="submit" value="Save" />
<a class="btn btn-default" href="{% url "dashboard" %}">Cancel</a> <a class="btn btn-secondary" href="{% url "dashboard" %}">Cancel</a>
</div> </div>
</form> </form>

View file

@ -16,7 +16,7 @@
{% if can_leave %} {% if can_leave %}
<form class="form-horizontal" method="post" action="{% url "team_leave" team.slug %}"> <form class="form-horizontal" method="post" action="{% url "team_leave" team.slug %}">
{% csrf_token %} {% csrf_token %}
<input type="submit" class="btn btn-default" value="leave"> <input type="submit" class="btn btn-secondary" value="leave">
</form> </form>
{% endif %} {% endif %}