#!/usr/bin/python3
# -*- coding: utf-8 -*-

import django_tables2 as tables
from django_tables2.utils import A
from .models import Indicator, CollectedData


TEMPLATE = '''
<div class="btn-group btn-group-xs">
   <a type="button" class="btn btn-warning" href="/indicators/indicator_update/{{ record.id }}">Edit</a>
   <a type="button" class="btn btn-default" href="/indicators/data/{{ record.id }}">View</a>
</div>
'''


class IndicatorTable(tables.Table):
    edit = tables.TemplateColumn(TEMPLATE)

    class Meta:
        model = Indicator
        attrs = {"class": "paleblue"}
        fields = ('programs', 'sector', 'indicator_type', 'name', 'number', 'key_performance_indicator', 'source',
                  'definition', 'disaggregation', 'baseline', 'lop_target', 'means_of_verification',
                  'data_collection_method', 'responsible_person', 'method_of_analysis', 'information_use',
                  'reporting_frequency', 'create_date', 'edit_date')
        sequence = ('programs', 'sector', 'indicator_type', 'name', 'number', 'key_performance_indicator', 'source',
                    'definition', 'disaggregation', 'baseline', 'lop_target', 'means_of_verification',
                    'data_collection_method', 'responsible_person', 'method_of_analysis', 'information_use',
                    'reporting_frequency', 'create_date', 'edit_date')


class IndicatorDataTable(tables.Table):

    agreement = tables.LinkColumn(
        'projectagreement_update', args=[A('agreement_id')])

    class Meta:
        model = CollectedData
        attrs = {"class": "paleblue"}
        fields = ('targeted', 'achieved', 'description',
                  'indicator', 'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description',
                    'indicator', 'agreement', 'complete')


class CollectedDataTable(tables.Table):

    agreement = tables.LinkColumn(
        'projectagreement_update', args=[A('agreement_id')])

    class Meta:
        model = CollectedData
        attrs = {"class": "paleblue"}
        fields = ('targeted', 'achieved', 'description', 'indicator',
                  'sector', 'community', 'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description', 'indicator',
                    'sector', 'community', 'agreement', 'complete')

527c657ebce6b0547f1d2e34e67c9bd09c091efa
<mask token>


class IndicatorDataTable(tables.Table):
    agreement = tables.LinkColumn('projectagreement_update', args=[A(
        'agreement_id')])


    class Meta:
        model = CollectedData
        attrs = {'class': 'paleblue'}
        fields = ('targeted', 'achieved', 'description', 'indicator',
            'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description', 'indicator',
            'agreement', 'complete')


class CollectedDataTable(tables.Table):
    agreement = tables.LinkColumn('projectagreement_update', args=[A(
        'agreement_id')])


    class Meta:
        model = CollectedData
        attrs = {'class': 'paleblue'}
        fields = ('targeted', 'achieved', 'description', 'indicator',
            'sector', 'community', 'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description', 'indicator',
            'sector', 'community', 'agreement', 'complete')

<mask token>


class IndicatorTable(tables.Table):
    edit = tables.TemplateColumn(TEMPLATE)


    class Meta:
        model = Indicator
        attrs = {'class': 'paleblue'}
        fields = ('programs', 'sector', 'indicator_type', 'name', 'number',
            'key_performance_indicator', 'source', 'definition',
            'disaggregation', 'baseline', 'lop_target',
            'means_of_verification', 'data_collection_method',
            'responsible_person', 'method_of_analysis', 'information_use',
            'reporting_frequency', 'create_date', 'edit_date')
        sequence = ('programs', 'sector', 'indicator_type', 'name',
            'number', 'key_performance_indicator', 'source', 'definition',
            'disaggregation', 'baseline', 'lop_target',
            'means_of_verification', 'data_collection_method',
            'responsible_person', 'method_of_analysis', 'information_use',
            'reporting_frequency', 'create_date', 'edit_date')


class IndicatorDataTable(tables.Table):
    agreement = tables.LinkColumn('projectagreement_update', args=[A(
        'agreement_id')])


    class Meta:
        model = CollectedData
        attrs = {'class': 'paleblue'}
        fields = ('targeted', 'achieved', 'description', 'indicator',
            'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description', 'indicator',
            'agreement', 'complete')


class CollectedDataTable(tables.Table):
    agreement = tables.LinkColumn('projectagreement_update', args=[A(
        'agreement_id')])


    class Meta:
        model = CollectedData
        attrs = {'class': 'paleblue'}
        fields = ('targeted', 'achieved', 'description', 'indicator',
            'sector', 'community', 'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description', 'indicator',
            'sector', 'community', 'agreement', 'complete')

<mask token>
TEMPLATE = """
<div class="btn-group btn-group-xs">
   <a type="button" class="btn btn-warning" href="/indicators/indicator_update/{{ record.id }}">Edit</a>
   <a type="button" class="btn btn-default" href="/indicators/data/{{ record.id }}">View</a>
</div>
"""


class IndicatorTable(tables.Table):
    edit = tables.TemplateColumn(TEMPLATE)


    class Meta:
        model = Indicator
        attrs = {'class': 'paleblue'}
        fields = ('programs', 'sector', 'indicator_type', 'name', 'number',
            'key_performance_indicator', 'source', 'definition',
            'disaggregation', 'baseline', 'lop_target',
            'means_of_verification', 'data_collection_method',
            'responsible_person', 'method_of_analysis', 'information_use',
            'reporting_frequency', 'create_date', 'edit_date')
        sequence = ('programs', 'sector', 'indicator_type', 'name',
            'number', 'key_performance_indicator', 'source', 'definition',
            'disaggregation', 'baseline', 'lop_target',
            'means_of_verification', 'data_collection_method',
            'responsible_person', 'method_of_analysis', 'information_use',
            'reporting_frequency', 'create_date', 'edit_date')


class IndicatorDataTable(tables.Table):
    agreement = tables.LinkColumn('projectagreement_update', args=[A(
        'agreement_id')])


    class Meta:
        model = CollectedData
        attrs = {'class': 'paleblue'}
        fields = ('targeted', 'achieved', 'description', 'indicator',
            'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description', 'indicator',
            'agreement', 'complete')


class CollectedDataTable(tables.Table):
    agreement = tables.LinkColumn('projectagreement_update', args=[A(
        'agreement_id')])


    class Meta:
        model = CollectedData
        attrs = {'class': 'paleblue'}
        fields = ('targeted', 'achieved', 'description', 'indicator',
            'sector', 'community', 'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description', 'indicator',
            'sector', 'community', 'agreement', 'complete')

import django_tables2 as tables
from django_tables2.utils import A
from .models import Indicator, CollectedData
TEMPLATE = """
<div class="btn-group btn-group-xs">
   <a type="button" class="btn btn-warning" href="/indicators/indicator_update/{{ record.id }}">Edit</a>
   <a type="button" class="btn btn-default" href="/indicators/data/{{ record.id }}">View</a>
</div>
"""


class IndicatorTable(tables.Table):
    edit = tables.TemplateColumn(TEMPLATE)


    class Meta:
        model = Indicator
        attrs = {'class': 'paleblue'}
        fields = ('programs', 'sector', 'indicator_type', 'name', 'number',
            'key_performance_indicator', 'source', 'definition',
            'disaggregation', 'baseline', 'lop_target',
            'means_of_verification', 'data_collection_method',
            'responsible_person', 'method_of_analysis', 'information_use',
            'reporting_frequency', 'create_date', 'edit_date')
        sequence = ('programs', 'sector', 'indicator_type', 'name',
            'number', 'key_performance_indicator', 'source', 'definition',
            'disaggregation', 'baseline', 'lop_target',
            'means_of_verification', 'data_collection_method',
            'responsible_person', 'method_of_analysis', 'information_use',
            'reporting_frequency', 'create_date', 'edit_date')


class IndicatorDataTable(tables.Table):
    agreement = tables.LinkColumn('projectagreement_update', args=[A(
        'agreement_id')])


    class Meta:
        model = CollectedData
        attrs = {'class': 'paleblue'}
        fields = ('targeted', 'achieved', 'description', 'indicator',
            'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description', 'indicator',
            'agreement', 'complete')


class CollectedDataTable(tables.Table):
    agreement = tables.LinkColumn('projectagreement_update', args=[A(
        'agreement_id')])


    class Meta:
        model = CollectedData
        attrs = {'class': 'paleblue'}
        fields = ('targeted', 'achieved', 'description', 'indicator',
            'sector', 'community', 'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description', 'indicator',
            'sector', 'community', 'agreement', 'complete')

#!/usr/bin/python3
# -*- coding: utf-8 -*-

import django_tables2 as tables
from django_tables2.utils import A
from .models import Indicator, CollectedData


TEMPLATE = '''
<div class="btn-group btn-group-xs">
   <a type="button" class="btn btn-warning" href="/indicators/indicator_update/{{ record.id }}">Edit</a>
   <a type="button" class="btn btn-default" href="/indicators/data/{{ record.id }}">View</a>
</div>
'''


class IndicatorTable(tables.Table):
    edit = tables.TemplateColumn(TEMPLATE)

    class Meta:
        model = Indicator
        attrs = {"class": "paleblue"}
        fields = ('programs', 'sector', 'indicator_type', 'name', 'number', 'key_performance_indicator', 'source',
                  'definition', 'disaggregation', 'baseline', 'lop_target', 'means_of_verification',
                  'data_collection_method', 'responsible_person', 'method_of_analysis', 'information_use',
                  'reporting_frequency', 'create_date', 'edit_date')
        sequence = ('programs', 'sector', 'indicator_type', 'name', 'number', 'key_performance_indicator', 'source',
                    'definition', 'disaggregation', 'baseline', 'lop_target', 'means_of_verification',
                    'data_collection_method', 'responsible_person', 'method_of_analysis', 'information_use',
                    'reporting_frequency', 'create_date', 'edit_date')


class IndicatorDataTable(tables.Table):

    agreement = tables.LinkColumn(
        'projectagreement_update', args=[A('agreement_id')])

    class Meta:
        model = CollectedData
        attrs = {"class": "paleblue"}
        fields = ('targeted', 'achieved', 'description',
                  'indicator', 'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description',
                    'indicator', 'agreement', 'complete')


class CollectedDataTable(tables.Table):

    agreement = tables.LinkColumn(
        'projectagreement_update', args=[A('agreement_id')])

    class Meta:
        model = CollectedData
        attrs = {"class": "paleblue"}
        fields = ('targeted', 'achieved', 'description', 'indicator',
                  'sector', 'community', 'agreement', 'complete')
        sequence = ('targeted', 'achieved', 'description', 'indicator',
                    'sector', 'community', 'agreement', 'complete')
