mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
* Initial testing of paplink functionality. More fancy interfaces coming. * Removed a invalid view reference. * Added a link on the front page. * Fixed some bad references and incorrect in game browser header usages. * Started work on statistics-pages. * Added an initial modify-paplink page where the pap itself can be deleted and characters removed. * Added a very simple statistics page. Also some name change for ~reasons~. * Small but crucial fix of syntax. * Added personal statistics page. * Corputils page now include fatlinkstats. * Added link to the personal statistics page. Moved other buttons for clarity. * Removed some unused code and imports * Added more statistics, and all corps in alliance are now visible even if no paps are registered. * Now requesting trust for the right domain. And some redundant imports and commented lines are removed.
16 lines
591 B
Python
16 lines
591 B
Python
from django import forms
|
|
from optimer.models import optimer
|
|
|
|
def get_fleet_list():
|
|
fleets = optimer.objects.all()
|
|
fleetlist = [("None", "None")]
|
|
for fleet in fleets:
|
|
fleetlist.append((fleet.operation_name, fleet.operation_name))
|
|
fleetlist.sort()
|
|
return fleetlist
|
|
|
|
|
|
class FatlinkForm(forms.Form):
|
|
fatname = forms.CharField(label='Name of fat-link', required=True)
|
|
duration = forms.IntegerField(label="Duration of fat-link", required=True, initial=30, min_value=1, max_value=2147483647)
|
|
fleet = forms.ChoiceField(label="Fleet", choices=get_fleet_list()) |