Skip to content

Commit

Permalink
Replace btn-default with btn-outline-secondary
Browse files Browse the repository at this point in the history
  • Loading branch information
np5 committed Oct 27, 2023
1 parent a51f070 commit 5192e7a
Show file tree
Hide file tree
Showing 27 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion server/templates/accounts/delete_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h3>Delete {{ user_to_delete.get_type_display }} {{ user_to_delete }}</h3>
<p>Please confirm you want to delete the {{ user_to_delete.get_type_display }}: {{ user_to_delete }}.</p>
<form class="form" method="POST">{% csrf_token %}
<p>
<a href="{% url 'accounts:users' %}" class="btn btn-default">Cancel</a>
<a href="{% url 'accounts:users' %}" class="btn btn-outline-secondary">Cancel</a>
<button type="submit" class="btn btn-danger">Delete {{ user_to_delete.get_type_display }}</button>
</p>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<h2>Detach {{ bu }}</h2>
<form method="POST" class="form">{% csrf_token %}
<p>Please confirm that you would like to detach {{ bu }} from {{ mbu }}</p>
<a href="{{ mbu.get_absolute_url }}" class="btn btn-default">Cancel</a>
<a href="{{ mbu.get_absolute_url }}" class="btn btn-outline-secondary">Cancel</a>
<button type="submit" class="btn btn-primary">Detach</button>
</form>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h2 class="mb-0">Group{{ object_list|length|pluralize }} ({{ object_list|length
</td>
<td>
{% for link in group.links.all %}
<a href="{{ link.url }}" class="btn btn-default">
<a href="{{ link.url }}" class="btn btn-outline-secondary">
{{ group.source.name }} - {{ link.anchor_text }}
</a>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2>Tag{{ tags|length|pluralize }} ({{ tags|length }})</h2>
<td class="text-end py-0">
{% if type == "machine" %}
<form action="{% url 'inventory:remove_machine_tag' machine.get_urlsafe_serial_number tag.id %}" method="POST">{% csrf_token %}
<button class="btn btn-default">
<button class="btn btn-outline-secondary">
<span class="bi bi-trash" aria-hidden="true" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Delete Tag"></span>
</button>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h2 class="m-0">Business unit{{ page_obj.paginator.count|pluralize }} ({{ page_o
<td>{{ bu.name }}</td>
<td>
{% for link in bu.links.all %}
<a href="{{ link.url }}" class="btn btn-default">
<a href="{{ link.url }}" class="btn btn-outline-secondary">
{{ bu.source.name }} - {{ link.anchor_text }}
</a>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
<td>{{ bu.name }}</td>
<td>
{% for link in bu.links.all %}
<a href="{{ link.url }}" class="btn btn-default">
<a href="{{ link.url }}" class="btn btn-outline-secondary">
{{ bu.source.name }} - {{ link.anchor_text }}
</a>
{% endfor %}
</td>
<td>
{% if bu.can_be_detached %}
<a href="{% url 'inventory:detach_bu' object.id bu.id %}" class="btn btn-default">
<a href="{% url 'inventory:detach_bu' object.id bu.id %}" class="btn btn-outline-secondary">
Detach
</a>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h2>Tag{{ tags|length|pluralize }} ({{ tags|length }})</h2>
<td>{% inventory_tag tag %}</td>
<td class="text-end py-0">
<form action="{% url 'inventory:remove_mbu_tag' meta_business_unit.id tag.id %}" method="POST">{% csrf_token %}
<button class="btn btn-default">
<button class="btn btn-outline-secondary">
<span class="bi bi-trash" aria-hidden="true" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Delete Tag"></span>
</button>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h2>Merge business units</h2>
<td>{{ bu.name }}</td>
<td>
{% for link in bu.links.all %}
<a href="{{ link.url }}" class="btn btn-default">
<a href="{{ link.url }}" class="btn btn-outline-secondary">
{{ bu.source.name }} - {{ link.anchor_text }}
</a>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h3>Add {{ artifact }} to blueprint</h3>
</div>
{% endif %}
<p>
<a href="{% url 'mdm:artifact' artifact.pk %}" class="btn btn-default">Cancel</a>
<a href="{% url 'mdm:artifact' artifact.pk %}" class="btn btn-outline-secondary">Cancel</a>
<button type="submit" class="btn btn-primary">Save</button>
</p>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h3>Block device {{ object }}</h3>
<form method="post">{% csrf_token %}
<p>Do you really want to block this device?</p>
<p>
<a href="{{ object.get_absolute_url }}" class="btn btn-default">Cancel</a>
<a href="{{ object.get_absolute_url }}" class="btn btn-outline-secondary">Cancel</a>
<button type="submit" class="btn btn-danger">Yes</button>
</p>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h3>Delete FileVault configuration <i>{{ object }}</i></h3>
<form method="post">{% csrf_token %}
<p>Do you really want to delete this FileVault configuration?</p>
<p>
<a class="btn btn-default" href="{{ object.get_absolute_url }}">Cancel</a>
<a class="btn btn-outline-secondary" href="{{ object.get_absolute_url }}">Cancel</a>
<button type="submit" class="btn btn-danger">Delete</button>
</p>
</form>
Expand Down
2 changes: 1 addition & 1 deletion zentral/contrib/mdm/templates/mdm/usercommand_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h3>User command{{ page_obj.paginator.count|pluralize }}</h3>
<td>
{{ command.get_status_display|default:"-" }}
{% if command.result %}
<a class="btn btn-default btn-xs" href="{% url 'mdm:download_enrolled_user_command_result' command.uuid %}">
<a class="btn btn-outline-secondary btn-xs" href="{% url 'mdm:download_enrolled_user_command_result' command.uuid %}">
<span class="glyphicon glyphicon-download" aria-hidden="true"></span>
</a>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h2>Package name{{ name_number|pluralize }} ({{ name_number }}) / Package{{ in
<td>
{% if pkg_info.local %}
{% if perms.monolith.change_pkginfo %}
<a class="btn btn-default" href="{% url 'monolith:update_package' pkg_info.pk %}">
<a class="btn btn-outline-secondary" href="{% url 'monolith:update_package' pkg_info.pk %}">
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
</a>
{% endif %}
Expand All @@ -117,7 +117,7 @@ <h2>Package name{{ name_number|pluralize }} ({{ name_number }}) / Package{{ in
{% endif %}
{% else %}
{% if perms.monolith.change_pkginfo and manual_catalog_management %}
<a class="btn btn-default" href="{% url 'monolith:update_pkg_info_catalog' pkg_info.pk %}">
<a class="btn btn-outline-secondary" href="{% url 'monolith:update_pkg_info_catalog' pkg_info.pk %}">
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
</a>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h4>Version{{ pkg_infos|length|pluralize }} ({{ pkg_infos|length }})</h4>
<td>
{% if pkg_info.local %}
{% if perms.monolith.change_pkginfo %}
<a class="btn btn-default" href="{% url 'monolith:update_package' pkg_info.pk %}">
<a class="btn btn-outline-secondary" href="{% url 'monolith:update_package' pkg_info.pk %}">
<span class="bi bi-square-edit" aria-hidden="true"></span>
</a>
{% endif %}
Expand All @@ -137,7 +137,7 @@ <h4>Version{{ pkg_infos|length|pluralize }} ({{ pkg_infos|length }})</h4>
{% endif %}
{% else %}
{% if perms.monolith.change_pkginfo and manual_catalog_management %}
<a class="btn btn-default" href="{% url 'monolith:update_pkg_info_catalog' pkg_info.pk %}">
<a class="btn btn-outline-secondary" href="{% url 'monolith:update_pkg_info_catalog' pkg_info.pk %}">
<span class="bi bi-edit" aria-hidden="true"></span>
</a>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2>Delete enrollment</h2>
<p>Please ensure you do not re-use any packages previously associated with this specific enrollment.</p>
{% endif %}
<p>
<a class="btn btn-default" href="{{ object.get_absolute_url }}">Cancel</a>
<a class="btn btn-outline-secondary" href="{{ object.get_absolute_url }}">Cancel</a>
<button class="btn btn-danger" type="submit">Delete</button>
</p>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2>Bump enrollment version</h2>
<form method="POST">{% csrf_token %}
<p>Do you really want to bump this enrollment version?</p>
<p>
<a class="btn btn-default" href="{{ enrollment.get_absolute_url }}">No</a>
<a class="btn btn-outline-secondary" href="{{ enrollment.get_absolute_url }}">No</a>
<button class="btn btn-primary" type="submit">Yes</button>
</p>
</form>
Expand Down
2 changes: 1 addition & 1 deletion zentral/contrib/munki/templates/munki/install_probe.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h3>Munki install</h3>
</table>
<div class="panel-footer">
<div class="btn-group" role="group">
<a class="btn btn-default" href="{% url 'munki:update_install_probe' object.id %}">
<a class="btn btn-outline-secondary" href="{% url 'munki:update_install_probe' object.id %}">
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions zentral/contrib/puppet/templates/puppet/instance_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ <h2>Puppet instance <i>{{ object }}</i></h2>

<div class="btn-group" role="group">
{% if perms.puppet.change_instance %}
<a href="{% url 'puppet:update_instance' object.pk %}" class="btn btn-default">
<a href="{% url 'puppet:update_instance' object.pk %}" class="btn btn-outline-secondary">
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span> Update
</a>
{% endif %}
Expand All @@ -179,12 +179,12 @@ <h2>Puppet instance <i>{{ object }}</i></h2>
</a>
{% endif %}
{% if show_events_link %}
<a class="btn btn-default" href="{% url 'puppet:instance_events' object.pk %}">
<a class="btn btn-outline-secondary" href="{% url 'puppet:instance_events' object.pk %}">
<span class="glyphicon glyphicon-list" aria-hidden="true"></span> Events
</a>
{% endif %}
{% for link, anchor_text in store_links %}
<a class="btn btn-default" href="{{ link }}">
<a class="btn btn-outline-secondary" href="{{ link }}">
<span class="glyphicon glyphicon-link" aria-hidden="true"></span> {{ anchor_text }}
</a>
{% endfor %}
Expand Down
4 changes: 2 additions & 2 deletions zentral/contrib/puppet/templates/puppet/instance_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ <h2>{% if object %}Update Puppet instance {{ object }}{% else %}Create Puppet in
{{ form }}
<p>
{% if object %}
<a href="{{ object.get_absolute_url }}" class="btn btn-default">Cancel</a>
<a href="{{ object.get_absolute_url }}" class="btn btn-outline-secondary">Cancel</a>
{% else %}
<a href="{% url 'puppet:instances' %}" class="btn btn-default">Cancel</a>
<a href="{% url 'puppet:instances' %}" class="btn btn-outline-secondary">Cancel</a>
{% endif %}
<button class="btn btn-primary">Save</button>
</p>
Expand Down
4 changes: 2 additions & 2 deletions zentral/contrib/puppet/templates/puppet/instance_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h2>{{ instance_count }} Puppet instance{{ instance_count|pluralize }}</h2>

{% if perms.puppet.add_instance %}
<p>
<a href="{% url 'puppet:create_instance' %}" class="btn btn-default">Create</a>
<a href="{% url 'puppet:create_instance' %}" class="btn btn-outline-secondary">Create</a>
</p>
{% endif %}

Expand All @@ -34,7 +34,7 @@ <h2>{{ instance_count }} Puppet instance{{ instance_count|pluralize }}</h2>
</td>
{% if perms.puppet.change_instance %}
<td>
<a href="{% url 'puppet:update_instance' instance.pk %}" class="btn btn-default">
<a href="{% url 'puppet:update_instance' instance.pk %}" class="btn btn-outline-secondary">
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span> Update
</a>
</td>
Expand Down
4 changes: 2 additions & 2 deletions zentral/contrib/santa/templates/santa/pick_rule_binary.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>Pick Santa rule binary</h2>
<div class="form-group">
{{ form.name }}
</div>
<button type="submit" class="btn btn-default">Search</button>
<button type="submit" class="btn btn-outline-secondary">Search</button>
</form>

{% if binaries %}
Expand Down Expand Up @@ -60,7 +60,7 @@ <h2>Pick Santa rule binary</h2>
<td>
{% if rule %}
{% if not rule.ruleset %}
<a class="btn btn-default" href="{% url 'santa:update_configuration_rule' configuration.pk rule.pk %}">
<a class="btn btn-outline-secondary" href="{% url 'santa:update_configuration_rule' configuration.pk rule.pk %}">
Update rule
</a>
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions zentral/contrib/santa/templates/santa/pick_rule_bundle.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>Pick Santa rule bundle</h2>
<div class="form-group">
{{ form.name }}
</div>
<button type="submit" class="btn btn-default">Search</button>
<button type="submit" class="btn btn-outline-secondary">Search</button>
</form>

{% if bundles %}
Expand All @@ -40,7 +40,7 @@ <h2>Pick Santa rule bundle</h2>
<td>
{% if rule %}
{% if not rule.ruleset %}
<a class="btn btn-default" href="{% url 'santa:update_configuration_rule' configuration.pk rule.pk %}">
<a class="btn btn-outline-secondary" href="{% url 'santa:update_configuration_rule' configuration.pk rule.pk %}">
Update rule
</a>
{% else %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>Pick Santa rule certificate</h2>
<div class="form-group">
{{ form.query }}
</div>
<button type="submit" class="btn btn-default">Search</button>
<button type="submit" class="btn btn-outline-secondary">Search</button>
</form>

{% if certificates %}
Expand All @@ -40,7 +40,7 @@ <h2>Pick Santa rule certificate</h2>
<td>
{% if rule %}
{% if not rule.ruleset %}
<a class="btn btn-default" href="{% url 'santa:update_configuration_rule' configuration.pk rule.pk %}">
<a class="btn btn-outline-secondary" href="{% url 'santa:update_configuration_rule' configuration.pk rule.pk %}">
Update rule
</a>
{% else %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>Pick Santa rule signing ID</h2>
<div class="form-group">
{{ form.query }}
</div>
<button type="submit" class="btn btn-default">Search</button>
<button type="submit" class="btn btn-outline-secondary">Search</button>
</form>

{% if signing_ids %}
Expand All @@ -34,7 +34,7 @@ <h2>Pick Santa rule signing ID</h2>
<td>
{% if rule %}
{% if not rule.ruleset %}
<a class="btn btn-default" href="{% url 'santa:update_configuration_rule' configuration.pk rule.pk %}">
<a class="btn btn-outline-secondary" href="{% url 'santa:update_configuration_rule' configuration.pk rule.pk %}">
Update rule
</a>
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions zentral/contrib/santa/templates/santa/pick_rule_team_id.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>Pick Santa rule team ID</h2>
<div class="form-group">
{{ form.query }}
</div>
<button type="submit" class="btn btn-default">Search</button>
<button type="submit" class="btn btn-outline-secondary">Search</button>
</form>

{% if team_ids %}
Expand All @@ -36,7 +36,7 @@ <h2>Pick Santa rule team ID</h2>
<td>
{% if rule %}
{% if not rule.ruleset %}
<a class="btn btn-default" href="{% url 'santa:update_configuration_rule' configuration.pk rule.pk %}">
<a class="btn btn-outline-secondary" href="{% url 'santa:update_configuration_rule' configuration.pk rule.pk %}">
Update rule
</a>
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion zentral/core/probes/templates/probes/feed_probe.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h2>
<h3>{{ probe_sources|length }} Probe{{ probe_sources|length|pluralize }}</h3>

{% if perms.probes.add_probesource %}
<a href="{% url 'probes:import_feed_probe' object.feed_id object.id %}" class="btn btn-default">Import probe</a>
<a href="{% url 'probes:import_feed_probe' object.feed_id object.id %}" class="btn btn-outline-secondary">Import probe</a>
{% endif %}

<table class="table">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h2>{% if add_filter %}Add{% else %}Update{% endif %} {{ section }} filter</h2>
{% endfor %}
</div>
<p>
<a class="btn btn-default" href="#" id="add-filter-item">
<a class="btn btn-outline-secondary" href="#" id="add-filter-item">
<span class="bi bi-plus" aria-hidden="true"></span> attribute
</a>
</p>
Expand Down

0 comments on commit 5192e7a

Please sign in to comment.