Skip to content

Commit

Permalink
Ordered Cancel button left, Save button right
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnavarro committed Dec 15, 2022
1 parent c982bd4 commit 66b7f31
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 20 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v2.1.0 20221215 JP
- Ordered Cancel button left, Save button right

v2.0.2 20221206 JP
- Improve logging

Expand Down
3 changes: 1 addition & 2 deletions Operations_ServiceIndex_Django/templates/account/logout.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
{% endif %}
<button class="primaryAction btn btn-access-auth" type="submit">{% trans "LOGOUT OF ACCESS CI" %}</button>

<a class="btn btn-secondary" href="{% url 'services:index' %}" role="button">Back</a>
<button class="primaryAction btn btn-access-auth" type="submit">{% trans "LOGOUT OF ACCESS CI" %}</button>
</form>
</div><!-- div card-body -->
</div><!-- div card -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@

<div class="row mt-4">
<div class="col-sm-2">
<input class="btn btn-primary" type="submit" value="Save" />
<a class="btn btn-secondary" href="{% url 'services:events' %}" role="button">Cancel</a>
</div>
<div class="col-sm-2">
<a class="btn btn-secondary" href="{% url 'services:events' %}" role="button">Cancel</a>
<input class="btn btn-primary" type="submit" value="Save" />
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@

<div class="row mt-4">
<div class="col-sm-2">
<input class="btn btn-primary" type="submit" value="Save" />
<a class="btn btn-secondary" href="{% url 'services:people' %}" role="button">Cancel</a>
</div>
<div class="col-sm-2">
<a class="btn btn-secondary" href="{% url 'services:people' %}" role="button">Cancel</a>
<input class="btn btn-primary" type="submit" value="Save" />
</div>
</div>

Expand Down
12 changes: 6 additions & 6 deletions Operations_ServiceIndex_Django/templates/services/service.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,14 @@

<div class="row mt-4">
<div class="col-2">
{% if service_id == 0 %}
<input class="btn btn-primary" type="submit" value="Add Service" />
{% else %}
<input class="btn btn-primary" type="submit" value="Save" />
{% endif %}
<a class="btn btn-secondary" href="{% url 'services:index' %}" role="button">Cancel</a>
</div>
<div class="col-2">
<a class="btn btn-secondary" href="{% url 'services:index' %}" role="button">Cancel</a>
{% if service_id == 0 %}
<input class="btn btn-primary" type="submit" value="Add Service" />
{% else %}
<input class="btn btn-primary" type="submit" value="Save" />
{% endif %}
</div>
</div> <!-- row -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ <h3>{{ hes.host.hostname }}</h3>

<div class="row mt-4">
<div class="col-sm-2">
<input class="btn btn-primary" type="submit" value="Save" />
<a class="btn btn-secondary" href="{% url 'services:event' hes.event.id %}" role="button">Cancel</a>
</div>
<div class="col-sm-2">
<a class="btn btn-secondary" href="{% url 'services:event' hes.event.id %}" role="button">Cancel</a>
<input class="btn btn-primary" type="submit" value="Save" />
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
<div class="card-header"><p class="lead">Login required</p></div>
<div class="card-body">
<form method="POST">
{% csrf_token %}
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
{% endif %}
<button class="primaryAction btn btn-access-auth" type="submit">{% trans "Login to ACCESS CI" %}</button>

{% csrf_token %}
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
{% endif %}
<button class="primaryAction btn btn-access-auth" type="submit">{% trans "Login to ACCESS CI" %}</button>
</form>
</div><!-- div card-body -->
</div><!-- div card -->
Expand Down

0 comments on commit 66b7f31

Please sign in to comment.