mirror of https://git.48k.eu/ogcp
ogcp: improve page heading style
Make headings take less space and have a dashed line under them.master
parent
977b457d5c
commit
5ad2d2e72c
|
@ -80,3 +80,10 @@ a.nav-link:not(.collapsed):not(.disabled)[data-toggle="collapse"]::before {
|
|||
transform: rotate(90deg);
|
||||
font-size: 0.7em;
|
||||
}
|
||||
|
||||
.subhead-heading {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
border-bottom: 1px solid lightgray;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_center_add %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Add center')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Add center')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
action=url_for('action_center_add'),
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_room_add %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Add room')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Add room')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
action=url_for('action_room_add'),
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{% block nav_server_add %}active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Add a server')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Add a server')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
action=url_for('server_add_post'),
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Manage Cache') }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
<p>{{ _('Check free cache space in the client\'s bubbles:') }}</p>
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_center_details %} active {% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Center details')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Center details')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
method='post',
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_folder_update %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Update center')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Update center')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
method='post',
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{% block nav_client_add %}active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Add client')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Add client')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
method='post',
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{% block nav_client_add %}active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Client details')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Client details')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
method='post',
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Move %(ip_count)d client(s)', ip_count=ip_count) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_center_delete %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Delete center')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Delete center')}}</h2>
|
||||
<p class="text-left mx-5">The following center and its content will be deleted</p>
|
||||
<table class="table table-hover mx-5">
|
||||
<thead class="thead-light">
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Delete %(ip_count)d client(s)', ip_count=ip_count) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
|
||||
{{ args }}
|
||||
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Delete image %(image_name)s', image_name=image_name) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
action=url_for('action_image_delete'),
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{% block nav_repos_add %}active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Delete repo')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Delete repo')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
action=url_for('action_repo_delete'),
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_room_delete %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Delete room')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Delete room')}}</h2>
|
||||
|
||||
{% if children %}
|
||||
<p class="text-left mx-5">The following room and its content will be deleted</p>
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
|
||||
{{ args }}
|
||||
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Delete server %(server_name)s', server_name=form.name.data) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
action=url_for('server_delete_post'),
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_folder_add %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Add folder')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Add folder')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
method='post',
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_folder_delete %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Delete folder')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Delete folder')}}</h2>
|
||||
|
||||
<p class="text-left mx-5">The following folder and its content will be deleted</p>
|
||||
<table class="table table-hover mx-5">
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_folder_update %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Update folder')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Update folder')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
method='post',
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_inventory_hardware %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Hardware inventory')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Hardware inventory')}}</h2>
|
||||
|
||||
<h2 class="mb-3 mx-5">{{ _('Selected client:') }} {{ form.ips.data }}</h1>
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_image_create %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Create a partition image')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Create a partition image')}}</h2>
|
||||
|
||||
<h2 class="mx-5">
|
||||
{{ _('Selected client') }}: {{ form.ip.data }}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Image details')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Image details')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
method='post',
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Restore partition image to %(ip_count)d computer(s)', ip_count=ip_count) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{% block nav_image_update %}active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Update partition image')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Update partition image')}}</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_clients_import %}active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Import clients')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Import clients')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
action=url_for('action_clients_import_post'),
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_logs_log %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Client log')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Client log')}}</h2>
|
||||
|
||||
<pre>{{ log }}</pre>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('List images')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('List images')}}</h2>
|
||||
{% for server in servers %}
|
||||
{% for repo, images in server['repos'] %}
|
||||
<h4 class="mx-5">{{repo}}</h4>
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Changing boot mode of %(ip_count)d computer(s)', ip_count=ip_count) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
</br>
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Changing ogLive of %(ip_count)d computer(s)', ip_count=ip_count) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Power off %(ip_count)d client(s)', ip_count=ip_count) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Reboot %(ip_count)d client(s)', ip_count=ip_count) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{% block nav_repos_info %}active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Repo details')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Repo details')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form, extra_classes="mx-5") }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{% block nav_repos_add %}active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Add repo')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Add repo')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
action=url_for('action_repo_add'),
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{% block nav_repos_update %}active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Update repo')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Update repo')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
action=url_for('action_repo_update'),
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_room_details %} active {% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Room details')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Room details')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
method='post',
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_room_add %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Update room')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Update room')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
method='post',
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
{% block nav_script_output %} active {% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Script output') }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Run script for %(ip_count)d client(s)', ip_count=ip_count) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Partitioning %(ip_count)d client(s)', ip_count=ip_count) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Start %(ip_count)d client(s) session', ip_count=ip_count) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{% block nav_setup_setup %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Partition and Format')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Partition and Format')}}</h2>
|
||||
|
||||
<form method="GET" id="changeDiskForm">
|
||||
<input type="hidden" name="ips" value="{{ ips }}"/>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_inventory_software %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Software Inventory')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Software Inventory')}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
action=url_for('action_software'),
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% block nav_inventory_software %} active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Software inventory')}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Software inventory')}}</h2>
|
||||
|
||||
<h2 class="mb-3 mx-5">{{ _('Selected client:') }} {{ form.ips.data }}</h1>
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
{% set ip_list = form.ips.data.split(' ') %}
|
||||
{% set ip_count = ip_list | length %}
|
||||
<h1 class="m-5">
|
||||
<h2 class="mx-5 subhead-heading">
|
||||
{{ _('Powering on %(ip_count)d computer(s)', ip_count=ip_count) }}
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
{{ macros.cmd_selected_clients(selected_clients) }}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{% block nav_user_edit %}active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{{_('Delete user {}').format(form.username.data)}}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Delete user {}').format(form.username.data)}}</h2>
|
||||
|
||||
{{ wtf.quick_form(form,
|
||||
action=url_for('user_delete_post'),
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{% block nav_user_add %}active{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="m-5">{% block subhead_heading %}{% endblock %}</h1>
|
||||
<h2 class="mx-5 subhead-heading">{% block subhead_heading %}{% endblock %}</h2>
|
||||
|
||||
<form action="{% block form_action %}{% endblock %}" method="post" class="form">
|
||||
{{ form.hidden_tag() }}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<link rel="stylesheet" href="{{ url_for('static', filename='AdminLTE/plugins/fontawesome-free/css/all.min.css') }}">
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='AdminLTE/dist/css/adminlte.min.css') }}">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/soleta.css') }}?v=2" />
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/soleta.css') }}?v=3" />
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
{% endmacro %}
|
||||
|
||||
{% macro selected_clients() -%}
|
||||
<hr><h2>{{_('Selected clients')}}</h2>
|
||||
<h2 class="mx-5 subhead-heading">{{_('Selected clients')}}</h2>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<ul id="clients-color-legend" class="d-flex flex-wrap justify-content-center nav ogcp-nav nav-pills">
|
||||
|
|
Loading…
Reference in New Issue