Skip to content
Snippets Groups Projects
edit.pug 2.59 KiB
Newer Older
h2 Post a resource

p Thank you for enriching our database !

sib-form(
    bind-resources
    fields="mandatory_information(header_mandatory, name, country, language, uri,\
            format, field, author, publication_year, skills),\
            complementary_information(header_complementary, description, iframe_link,\
            preview_image, tags),classification(header_classification, target, type, steps),\
            access(header_access, sharing),related_section(header_related, related)"
    
    widget-header_mandatory='cs-section_header'
    widget-header_complementary='cs-section_header'
    widget-header_classification='cs-section_header'
    widget-header_access='cs-section_header'
    widget-header_related='cs-section_header'

    range-type=`${endpoints.types}`
    range-format=`${endpoints.formats}`
    range-steps=`${endpoints.steps}`
    range-language=`${endpoints.languages}`
    range-field=`${endpoints.fields}`
    range-related=`${endpoints.resources}`
    label-header_mandatory='Mandatory information'
    label-header_complementary='Complementary information'
    label-header_classification='Classification'
    label-header_access='Access'
    label-header_related='Related resources'

    label-name='Title*'
    label-country='Country*'
    label-language='Language*'
    label-uri='Location/weblink*'
    label-format='Format*'
    label-field='Field*'
    label-author='Resource author*'
    label-publication_year='Year of publication*'
    label-skills='Learning outcomes, skills*'
    label-description='Description'
    label-iframe_link='For videos, report iframe link'
    label-preview_image='Upload preview image'
    label-tags='Add tags'
    label-target='Resource target*'
    label-type='Type of content*'
    label-steps='Categorisation*'

    label-sharing='Share with*'
    multiple-field='sib-multiple-select'
    widget-field='sib-form-auto-completion'
    multiple-type='sib-multiple-select'
    widget-type='sib-form-auto-completion'

    multiple-format='sib-multiple-select'
    widget-format='sib-form-auto-completion'

    multiple-steps='sib-multiple-select'
    widget-steps='sib-form-auto-completion'

    multiple-language='sib-multiple-select'
    widget-language='sib-form-auto-completion'

    multiple-related='sib-multiple-select'
    widget-related='sib-form-auto-completion'

    widget-description='sib-form-textarea'
    widget-skills='sib-form-textarea'
    widget-publication_year='sib-form-number'
    next="resource-creation-confirmation"