mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 20:40:17 +02:00
Added Date Time Picker to Fleet Operations
This commit is contained in:
parent
5d896b1974
commit
f542b225de
@ -8,7 +8,7 @@ class opForm(forms.Form):
|
|||||||
doctrine = forms.CharField(max_length=254, required=True, label='Doctrine')
|
doctrine = forms.CharField(max_length=254, required=True, label='Doctrine')
|
||||||
system = forms.CharField(max_length=254, required=True, label="System")
|
system = forms.CharField(max_length=254, required=True, label="System")
|
||||||
location = forms.CharField(max_length=254, required=True, label="Location")
|
location = forms.CharField(max_length=254, required=True, label="Location")
|
||||||
start = forms.DateTimeField(required=True, label="Start Time MM/DD/YYYY HH:MM:SS")
|
start = forms.DateTimeField(required=True, label="Start Time")
|
||||||
duration = forms.CharField(max_length=254, required=True, label="Duration")
|
duration = forms.CharField(max_length=254, required=True, label="Duration")
|
||||||
operation_name = forms.CharField(max_length=254, required=True, label="Operation Name")
|
operation_name = forms.CharField(max_length=254, required=True, label="Operation Name")
|
||||||
fc = forms.CharField(max_length=254, required=True, label="Fleet Commander")
|
fc = forms.CharField(max_length=254, required=True, label="Fleet Commander")
|
||||||
|
@ -1,38 +1,38 @@
|
|||||||
{% extends "public/base.html" %}
|
{% extends "public/base.html" %}
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load staticfiles %}
|
{% load staticfiles %}
|
||||||
|
|
||||||
{% block title %}Alliance Auth - Fleet Operation Create{% endblock %}
|
{% block title %}Alliance Auth - Fleet Operation Create{% endblock %}
|
||||||
|
|
||||||
{% block page_title %}Create Operation{% endblock page_title %}
|
{% block page_title %}Create Operation{% endblock page_title %}
|
||||||
{% block extra_css %}
|
{% block extra_css %}
|
||||||
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
|
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<h1 class="page-header text-center">Create Fleet Operation</h1>
|
<h1 class="page-header text-center">Create Fleet Operation</h1>
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="col-md-4 col-md-offset-4">
|
<div class="col-md-4 col-md-offset-4">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<form class="form-signin" role="form" action="" method="POST">
|
<form class="form-signin" role="form" action="" method="POST">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form|bootstrap }}
|
{{ form|bootstrap }}
|
||||||
<br/>
|
<br/>
|
||||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Create Fleet Operation</button>
|
<button class="btn btn-lg btn-primary btn-block" type="submit">Create Fleet Operation</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
{% block extra_script %}
|
{% block extra_script %}
|
||||||
|
|
||||||
$('#id_eve_time').datetimepicker({
|
$('#id_start').datetimepicker({
|
||||||
maskInput: true,
|
maskInput: true,
|
||||||
format: 'Y-m-d H:i',minDate:0
|
format: 'Y-m-d H:i',minDate:0
|
||||||
});
|
});
|
||||||
|
|
||||||
{% endblock extra_script %}
|
{% endblock extra_script %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user