Ejemplo n.º 1
0
    class Meta:
        model = DocumentAsset

        fields = [
            'title',
            'description',
            'attribution',
            # 'document',
            'asset_type',
            # 'senstive',
        ]

        widgets = {
            'title': _TextInput('Asset Title'),
            'description': _Textarea('Description', rows=3),
            'attribution': _Textarea('Attribution', rows=3),
            'asset_type': _Select(),
            # 'sensitive': CheckboxInput(),
        }
Ejemplo n.º 2
0
    class Meta:
        model = AudioAsset

        fields = [
            'title',
            'description',
            'attribution',
            # 'audio',
            'link',
            'asset_type',
            # 'senstive',
        ]

        widgets = {
            'title': _TextInput('Asset Title'),
            'description': _Textarea('Description', rows=3),
            'attribution': _Textarea('Attribution', rows=3),
            'link': _TextInput('Link'),
            'asset_type': _Select(),
            # 'sensitive': CheckboxInput(),
        }
Ejemplo n.º 3
0
    class Meta:
        model = InternalImage

        fields = [
            'title',
            'description',
            # 'photo',
        ]

        widgets = {
            'title': _TextInput('Title'),
            'description': _Textarea('Description', rows=3),
        }
Ejemplo n.º 4
0
    class Meta:
        model = InternalDocument

        fields = [
            'title',
            'description',
            'document',
        ]

        widgets = {
            'title': _TextInput('Title'),
            'description': _Textarea('Description', rows=3),
        }
Ejemplo n.º 5
0
    class Meta:
        model = InternalAudio

        fields = [
            'title',
            'description',
            'audio',
        ]

        widgets = {
            'title': _TextInput('Title'),
            'description': _Textarea('Description', rows=3),
        }
Ejemplo n.º 6
0
    class Meta:
        model = FreelanceInvoice
        fields = [
            'reference_code',
            'text',
            'total_due',
        ]

        widgets = {
            'reference_code': _TextInput('Reference Code'),
            'text': _Textarea('Details of Invoice', rows=6),
            'total_due': NumberInput(attrs={'class': 'form-control'}),
        }
Ejemplo n.º 7
0
    class Meta:
        model = NewsOrganization
        fields = [
            'website',
            'mission_statement',
            'list_publicly',
            'display_business_structure',
            'business_structure',
            'display_platforms',
            'platform_print',
            'platform_online',
            'platform_social',
            'platform_network_tv',
            'platform_cable_tv',
            'platform_radio',
            'platform_podcast',
            'platform_newsletter',
            'platform_streaming_video',
            'display_audience',
            'audience',
            'display_ownership',
            'ownership',
            'display_business_model',
            'business_model',
            'display_unionization',
            'unionization',
            'display_diversity',
            'diversity',
            'display_strengths',
            'strengths',
            'display_partner_qualities',
            'partner_qualities',
            'display_best_coverage',
            'best_coverage',
            'display_collab_experience',
            'collab_experience',
            'display_seeking_collabs',
            'seeking_collabs',
            'display_seeking_partners',
            'seeking_partners',
        ]

        widgets = {
            'website': _TextInput('Website'),
            'mission_statement': _Textarea('Mission Statement', rows=3),
            'list_publicly': CheckboxInput(),
            'display_business_structure': CheckboxInput(),
            'business_structure': _TextInput('Business Structure'),
            'display_platforms': CheckboxInput(),
            'platform_print': CheckboxInput(),
            'platform_online': CheckboxInput(),
            'platform_social': CheckboxInput(),
            'platform_network_tv': CheckboxInput(),
            'platform_cable_tv': CheckboxInput(),
            'platform_radio': CheckboxInput(),
            'platform_podcast': CheckboxInput(),
            'platform_newsletter': CheckboxInput(),
            'platform_streaming_video': CheckboxInput(),
            'display_audience': CheckboxInput(),
            'audience': _TextInput('Audience'),
            'display_ownership': CheckboxInput(),
            'ownership': _Textarea('Ownership', rows=3),
            'display_business_model': CheckboxInput(),
            'business_model': _Textarea('Business Model', rows=3),
            'display_unionization': CheckboxInput(),
            'unionization': CheckboxInput(),
            'display_diversity': CheckboxInput(),
            'diversity': _Textarea('Diversity', rows=3),
            'display_strengths': CheckboxInput(),
            'strengths': _Textarea('Strengths', rows=3),
            'display_partner_qualities': CheckboxInput(),
            'partner_qualities': _Textarea('Partner Qualities', rows=3),
            'display_best_coverage': CheckboxInput(),
            'best_coverage': _Textarea('Best Coverage', rows=3),
            'display_collab_experience': CheckboxInput(),
            'collab_experience': _Textarea('Collaboration Experience', rows=3),
            'display_seeking_collabs': CheckboxInput(),
            'seeking_collabs': CheckboxInput(),
            'display_seeking_partners': CheckboxInput(),
            'seeking_partners': CheckboxInput(),
        }