Joakim Strandberg fa05003455 Bug-fix for fleetactivitytracking (#415)
* 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.

* Fixed some issues with trust request and pull-down population.
2016-04-30 04:18:06 -05:00

16 lines
629 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.ModelChoiceField(label="Fleet", queryset=optimer.objects.all().order_by('operation_name'))