Change footer

This commit is contained in:
Thomas 2019-08-11 10:27:57 +02:00
parent fdda0c1c3b
commit f215d0b8ce
5 changed files with 30 additions and 9 deletions

BIN
public/img/FediPlan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

1
public/js/moment.js Normal file

File diff suppressed because one or more lines are too long

View file

@ -13,6 +13,7 @@
<link rel="stylesheet" href="{{ asset('css/style.css') }}"> <link rel="stylesheet" href="{{ asset('css/style.css') }}">
{% block stylesheets %} {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}"> <link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
{% endblock %} {% endblock %}
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
@ -36,10 +37,9 @@
<footer class="footer"> <footer class="footer">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-4" style="margin-top: 10px; text-align: center;"> <div class="col-md-4" style="text-align: center;">
FediPlan -{{ "now"|date("Y") }} <br/> <img src="{{ asset('img/FediPlan.png') }}" width="80" style=" border-radius: 5%;margin-top: 10px; margin-bottom: 10px; "><br/>
License: <a href="https://www.gnu.org/licenses/gpl-3.0.fr.html" target="_blank">GPL 3</a><br/> FediPlan -{{ "now"|date("Y") }}
<a href="https://framagit.org/tom79/fediplan" target="_blank">Source code</a>
</div> </div>
<div class="col-md-4" style="margin-top: 10px; text-align: center;"> <div class="col-md-4" style="margin-top: 10px; text-align: center;">
Author: Thomas<br/> Author: Thomas<br/>
@ -47,6 +47,10 @@
Framagit: <a href="https://framagit.org/tom79/" target="_blank">@tom79</a><br/> Framagit: <a href="https://framagit.org/tom79/" target="_blank">@tom79</a><br/>
Github: <a href="https://github.com/stom79/" target="_blank">@stom79</a><br/> Github: <a href="https://github.com/stom79/" target="_blank">@stom79</a><br/>
</div> </div>
<div class="col-md-4" style="margin-top: 10px; text-align: center;">
License: <a href="https://www.gnu.org/licenses/gpl-3.0.fr.html" target="_blank">GPL 3</a><br/>
<a href="https://framagit.org/tom79/fediplan" target="_blank">Source code</a>
</div>
</div> </div>
</div> </div>
</footer> </footer>

View file

@ -15,8 +15,12 @@
<div class=" col-md-4"> <div class=" col-md-4">
<div class="form-group has-feedback"> <div class="form-group has-feedback">
{{ form_label(form.host) }} {{ form_label(form.host) }}
{{ form_widget(form.host, {'attr': {'class': 'form-control'}}) }} <div class="input-group">
<span class="fa fa-globe form-control-feedback"></span> <div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"><i class="fa fa-globe"></i></span>
</div>
{{ form_widget(form.host, {'attr': {'class': 'form-control'}}) }}
</div>
{% if not form.host.vars.errors is empty %} {% if not form.host.vars.errors is empty %}
<span class="label label-danger"> <span class="label label-danger">
{% for errorItem in form.host.vars.errors %} {% for errorItem in form.host.vars.errors %}
@ -40,8 +44,13 @@
<div class=" col-md-4"> <div class=" col-md-4">
<div class="form-group has-feedback"> <div class="form-group has-feedback">
{{ form_label(form.code) }} {{ form_label(form.code) }}
{{ form_widget(form.code, {'attr': {'class': 'form-control'}}) }} <div class="input-group">
<span class="fa fa-key form-control-feedback"></span> <div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"><i class="fa fa-key"></i></span>
</div>
{{ form_widget(form.code, {'attr': {'class': 'form-control'}}) }}
</div>
{% if not form.code.vars.errors is empty %} {% if not form.code.vars.errors is empty %}
<span class="label label-danger"> <span class="label label-danger">
{% for errorItem in form.code.vars.errors %} {% for errorItem in form.code.vars.errors %}
@ -57,7 +66,7 @@
{% endif %} {% endif %}
{{ form_widget(form) }} {{ form_widget(form) }}
<div class="row"> <div class="row">
<div class="col-xs-2"> <div class="col-md-2">
<input type="submit" class="btn btn-primary btn-block btn-flat" value="{{ 'common.next'|trans }}"/> <input type="submit" class="btn btn-primary btn-block btn-flat" value="{{ 'common.next'|trans }}"/>
</div> </div>
</div> </div>

View file

@ -362,6 +362,7 @@
<script src="{{ asset('js/jQuery-File-Upload-10.1.0/js/jquery.fileupload-video.js') }}"></script> <script src="{{ asset('js/jQuery-File-Upload-10.1.0/js/jquery.fileupload-video.js') }}"></script>
<script src="{{ asset('js/jQuery-File-Upload-10.1.0/js/jquery.fileupload-validate.js') }}"></script> <script src="{{ asset('js/jQuery-File-Upload-10.1.0/js/jquery.fileupload-validate.js') }}"></script>
<script src="{{ asset('js/jQuery-File-Upload-10.1.0/js/jquery.fileupload-ui.js') }}"></script> <script src="{{ asset('js/jQuery-File-Upload-10.1.0/js/jquery.fileupload-ui.js') }}"></script>
<script src="{{ asset('js/moment.js') }}"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
'use strict'; 'use strict';
@ -455,6 +456,12 @@
var id = $(this).attr('data-id'); var id = $(this).attr('data-id');
$('#media_container_' + id).remove(); $('#media_container_' + id).remove();
}) })
var language = navigator.languages && navigator.languages[0] ||
navigator.language ||
navigator.userLanguage;
var format = 'YYYY/MM/DD HH:mm:ss ZZ';
moment(time, format).tz(zone).format(format);
var currentDate = new Date().toLocaleString(language, { timeZone: timezone })
}); });
</script> </script>
{% endblock %} {% endblock %}