mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
CSS
This commit is contained in:
parent
46bdefd2ef
commit
ac77465228
3 changed files with 521 additions and 494 deletions
|
@ -5,14 +5,15 @@ Activate service | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container center-block">
|
<div class="panel panel-default">
|
||||||
<div class="panel panel-default text-center">
|
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h1 class="panel-title">
|
<h1 class="panel-title">
|
||||||
<a href="{{ url_for('HomeView:index') }}">{{ config['PUBLIC_CONFIG'].site.title }}</a>
|
<a href="{{ url_for('HomeView:index') }}">{{ config['PUBLIC_CONFIG'].site.title }}</a>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row well">
|
||||||
<h3>{% trans %}License{% endtrans %}</h3>
|
<h3>{% trans %}License{% endtrans %}</h3>
|
||||||
<p>{% trans %}Note: Please activate service.{% endtrans %}</p>
|
<p>{% trans %}Note: Please activate service.{% endtrans %}</p>
|
||||||
{{ util.flashed_messages(dismissible=True, container=False) }}
|
{{ util.flashed_messages(dismissible=True, container=False) }}
|
||||||
|
@ -26,12 +27,13 @@ Activate service | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
{{ form_field(form.submit, class="btn") }}
|
{{ form_field(form.submit, class="btn") }}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="text-center">
|
|
||||||
<a href="{{ url_for('UserView:dashboard') }}" role="button" class="btn btn-info">
|
<a href="{{ url_for('UserView:dashboard') }}" role="button" class="btn btn-info">
|
||||||
{% trans %}Dashboard{% endtrans %}
|
{% trans %}Dashboard{% endtrans %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{%- endblock %}
|
{%- endblock %}
|
||||||
|
|
||||||
|
|
|
@ -44,12 +44,20 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
th.stream_actions {
|
th.stream_actions {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
{{super()}}
|
{{super()}}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container-fluid">
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h1 class="panel-title"><a
|
||||||
|
href="{{ url_for('HomeView:index') }}">{{ config['PUBLIC_CONFIG'].site.title }}</a></h1>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="container-fluid">
|
||||||
<div class="row well">
|
<div class="row well">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
|
@ -100,7 +108,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<a href="{{ url_for('ServiceView:activate') }}" role="button"
|
<a href="{{ url_for('ServiceView:activate') }}" role="button"
|
||||||
{% if (service.status == service.status.INIT) %}
|
{% if (service.status== service.status.INIT) %}
|
||||||
class="btn btn-info disabled"
|
class="btn btn-info disabled"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-info"
|
class="btn btn-info"
|
||||||
|
@ -110,7 +118,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<a href="{{ url_for('ServiceView:sync') }}" role="button"
|
<a href="{{ url_for('ServiceView:sync') }}" role="button"
|
||||||
{% if (service.status == service.status.INIT) %}
|
{% if (service.status== service.status.INIT) %}
|
||||||
class="btn btn-info disabled"
|
class="btn btn-info disabled"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-info"
|
class="btn btn-info"
|
||||||
|
@ -130,7 +138,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<a href="{{ url_for('ServiceView:ping') }}" role="button"
|
<a href="{{ url_for('ServiceView:ping') }}" role="button"
|
||||||
{% if (service.status == service.status.ACTIVE) %}
|
{% if (service.status== service.status.ACTIVE) %}
|
||||||
class="btn btn-info"
|
class="btn btn-info"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-info disabled"
|
class="btn btn-info disabled"
|
||||||
|
@ -140,7 +148,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<a href="{{ url_for('ServiceView:stop') }}" role="button"
|
<a href="{{ url_for('ServiceView:stop') }}" role="button"
|
||||||
{% if (service.status == service.status.ACTIVE) %}
|
{% if (service.status== service.status.ACTIVE) %}
|
||||||
class="btn btn-warning"
|
class="btn btn-warning"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-warning disabled"
|
class="btn btn-warning disabled"
|
||||||
|
@ -151,7 +159,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
{% if (role == 3) %}
|
{% if (role == 3) %}
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<a href="{{ url_for('ServiceView:get_log') }}" role="button"
|
<a href="{{ url_for('ServiceView:get_log') }}" role="button"
|
||||||
{% if (service.status == service.status.ACTIVE) %}
|
{% if (service.status== service.status.ACTIVE) %}
|
||||||
class="btn btn-success"
|
class="btn btn-success"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-success disabled"
|
class="btn btn-success disabled"
|
||||||
|
@ -285,7 +293,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
<td>{{ rev.timestamp - rev.loop_start_time }}</td>
|
<td>{{ rev.timestamp - rev.loop_start_time }}</td>
|
||||||
<td>
|
<td>
|
||||||
<button type="submit"
|
<button type="submit"
|
||||||
{% if (service.status == service.status.ACTIVE) %}
|
{% if (service.status== service.status.ACTIVE) %}
|
||||||
class="btn btn-success btn-xs"
|
class="btn btn-success btn-xs"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-success btn-xs" disabled
|
class="btn btn-success btn-xs" disabled
|
||||||
|
@ -294,7 +302,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
{% trans %}Start{% endtrans %}
|
{% trans %}Start{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
<button type="submit"
|
<button type="submit"
|
||||||
{% if (service.status == service.status.ACTIVE) %}
|
{% if (service.status== service.status.ACTIVE) %}
|
||||||
class="btn btn-success btn-xs"
|
class="btn btn-success btn-xs"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-success btn-xs" disabled
|
class="btn btn-success btn-xs" disabled
|
||||||
|
@ -303,7 +311,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
{% trans %}Stop{% endtrans %}
|
{% trans %}Stop{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
<button type="submit"
|
<button type="submit"
|
||||||
{% if (service.status == service.status.ACTIVE) %}
|
{% if (service.status== service.status.ACTIVE) %}
|
||||||
class="btn btn-success btn-xs"
|
class="btn btn-success btn-xs"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-success btn-xs" disabled
|
class="btn btn-success btn-xs" disabled
|
||||||
|
@ -321,7 +329,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
</button>
|
</button>
|
||||||
{% if (role == 3) %}
|
{% if (role == 3) %}
|
||||||
<button type="submit"
|
<button type="submit"
|
||||||
{% if (service.status == service.status.ACTIVE) %}
|
{% if (service.status== service.status.ACTIVE) %}
|
||||||
class="btn btn-success btn-xs"
|
class="btn btn-success btn-xs"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-success btn-xs" disabled
|
class="btn btn-success btn-xs" disabled
|
||||||
|
@ -335,7 +343,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
{% trans %}View log{% endtrans %}
|
{% trans %}View log{% endtrans %}
|
||||||
</a>
|
</a>
|
||||||
<button type="submit"
|
<button type="submit"
|
||||||
{% if (service.status == service.status.ACTIVE) %}
|
{% if (service.status== service.status.ACTIVE) %}
|
||||||
class="btn btn-success btn-xs"
|
class="btn btn-success btn-xs"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-success btn-xs" disabled
|
class="btn btn-success btn-xs" disabled
|
||||||
|
@ -363,13 +371,15 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
<button class="btn btn-success btn-send col-md-2" onclick="add_encode_stream()">
|
<button class="btn btn-success btn-send col-md-2" onclick="add_encode_stream()">
|
||||||
{% trans %}Add encode{% endtrans %}
|
{% trans %}Add encode{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-success btn-send col-md-2" onclick="add_timeshift_recorder_stream()">
|
<button class="btn btn-success btn-send col-md-2"
|
||||||
|
onclick="add_timeshift_recorder_stream()">
|
||||||
{% trans %}Add timeshift recorder{% endtrans %}
|
{% trans %}Add timeshift recorder{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-success btn-send col-md-2" onclick="add_catchup_stream()">
|
<button class="btn btn-success btn-send col-md-2" onclick="add_catchup_stream()">
|
||||||
{% trans %}Add catchup{% endtrans %}
|
{% trans %}Add catchup{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-success btn-send col-md-2" onclick="add_timeshift_player_stream()">
|
<button class="btn btn-success btn-send col-md-2"
|
||||||
|
onclick="add_timeshift_player_stream()">
|
||||||
{% trans %}Add timeshift player{% endtrans %}
|
{% trans %}Add timeshift player{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-success btn-send col-md-2" onclick="add_test_life_stream()">
|
<button class="btn btn-success btn-send col-md-2" onclick="add_test_life_stream()">
|
||||||
|
@ -419,7 +429,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
<td>{{ vod.timestamp - vod.loop_start_time }}</td>
|
<td>{{ vod.timestamp - vod.loop_start_time }}</td>
|
||||||
<td>
|
<td>
|
||||||
<button type="submit"
|
<button type="submit"
|
||||||
{% if (service.status == service.status.ACTIVE) %}
|
{% if (service.status== service.status.ACTIVE) %}
|
||||||
class="btn btn-success btn-xs"
|
class="btn btn-success btn-xs"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-success btn-xs" disabled
|
class="btn btn-success btn-xs" disabled
|
||||||
|
@ -432,7 +442,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
{% trans %}Edit{% endtrans %}
|
{% trans %}Edit{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
<button type="submit"
|
<button type="submit"
|
||||||
{% if (service.status == service.status.ACTIVE) %}
|
{% if (service.status== service.status.ACTIVE) %}
|
||||||
class="btn btn-success btn-xs"
|
class="btn btn-success btn-xs"
|
||||||
{% else %}
|
{% else %}
|
||||||
class="btn btn-success btn-xs" disabled
|
class="btn btn-success btn-xs" disabled
|
||||||
|
@ -468,6 +478,8 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="stream_dialog" class="modal fade" tabindex=-1 role="dialog">
|
<div id="stream_dialog" class="modal fade" tabindex=-1 role="dialog">
|
||||||
|
@ -788,5 +800,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -17,7 +17,13 @@ Settings | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
{{super()}}
|
{{super()}}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container">
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h1 class="panel-title"><a
|
||||||
|
href="{{ url_for('HomeView:index') }}">{{ config['PUBLIC_CONFIG'].site.title }}</a></h1>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="container-fluid">
|
||||||
<div class="row well">
|
<div class="row well">
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<p>{% trans %}Settings{% endtrans %}</p>
|
<p>{% trans %}Settings{% endtrans %}</p>
|
||||||
|
@ -60,14 +66,16 @@ Settings | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
<td>{{ loop.index }}</td>
|
<td>{{ loop.index }}</td>
|
||||||
<td>{{ server.name }}</td>
|
<td>{{ server.name }}</td>
|
||||||
<td>
|
<td>
|
||||||
<button type="submit" class="btn btn-success btn-xs" onclick="edit_server('{{ server.id }}')">
|
<button type="submit" class="btn btn-success btn-xs"
|
||||||
|
onclick="edit_server('{{ server.id }}')">
|
||||||
{% trans %}Edit{% endtrans %}
|
{% trans %}Edit{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
<button type="submit" class="btn btn-success btn-xs"
|
<button type="submit" class="btn btn-success btn-xs"
|
||||||
onclick="add_user_to_server('{{ server.id }}')">
|
onclick="add_user_to_server('{{ server.id }}')">
|
||||||
{% trans %}Add user{% endtrans %}
|
{% trans %}Add user{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
<button type="submit" class="btn btn-danger btn-xs" onclick="remove_server('{{ server.id }}')">
|
<button type="submit" class="btn btn-danger btn-xs"
|
||||||
|
onclick="remove_server('{{ server.id }}')">
|
||||||
{% trans %}Remove{% endtrans %}
|
{% trans %}Remove{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
|
@ -78,12 +86,12 @@ Settings | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-2">
|
|
||||||
<button type="submit" class="btn btn-success" onclick="add_server()">
|
<button type="submit" class="btn btn-success" onclick="add_server()">
|
||||||
{% trans %}Add server{% endtrans %}
|
{% trans %}Add server{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="service_dialog" class="modal fade" tabindex=-1 role="dialog">
|
<div id="service_dialog" class="modal fade" tabindex=-1 role="dialog">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
|
@ -206,5 +214,8 @@ Settings | {{ config['PUBLIC_CONFIG'].site.title }}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue