from dkrz_forms import form_widgets
form_widgets.show_status('form-generation')

"""
Explanation: Create your DKRZ data ingest request form
To generate a data submission form for you, please edit the cell below to include your name, email as well as the project your data belogs to
Then please press "Shift" + Enter to evaluate the cell
a link to the newly generated data submission form will be provided
please follow this link to edit your personal form
Attention: remember the form password provided to you
the password is needed to retrieve your form at a later point e.g. for completion
Currently the following ingest requests are supported:

"CORDEX": CORDEX data ingest requests - CORDEX data to be published in ESGF, the form is aligned to the original CORDEX data ingest exel sheet used for ingest requests at DKRZ
"CMIP6":  CMIP6 data ingest request form for data providers - CMIP6 data to be ingested and published in ESGF and which will be long term archived as part of the WDCC
"ESGF_replication" : CMIP6 data request form for data users - request for CMIP6 data to be replicated and made available as part of the DKRZ national archive 
"DKRZ_CDP": data ingest request for (CMIP6 related) data collections to be included in the DKRZ CMIP data pool (CDP) e.g. for model evaluation purposes    
"test": for demo and testing puposes
End of explanation
"""


from dkrz_forms import form_widgets
form_widgets.create_form()

"""
Explanation: Create a data form
Evaluate the cell below ("Shift-Enter") in case no input fields are visible
The form will be created as soon as you press "Enter" in the last input field below 
<br />To fill the form follow the url shown as as result of the form generation.
<br />In case you want to retrieve and complete the form later on, please follow the steps outlined below in "Retrieve your DKRZ data form"
End of explanation
"""


from dkrz_forms import form_widgets
form_widgets.show_status('form-retrieval')

"""
Explanation: Retrieve your DKRZ data form
Via this form you can retrieve previously generated data forms and make them accessible via the Web again for completion.
<br/> Additionally you can get information on the data ingest process status related to your form based request.
End of explanation
"""


MY_LAST_NAME = "aa"   # e.gl MY_LAST_NAME = "schulz" 


#-------------------------------------------------
from dkrz_forms import form_handler, form_widgets
form_info = form_widgets.check_and_retrieve(MY_LAST_NAME)

"""
Explanation: Please provide your last name
please set your last name in the cell below and evaluate the cell (press "Shift-Return")
- when entering the key identifying your form the form is retrieved and accessible via the url presented. (The identifying key was provided to you as part of the form generation step)
End of explanation
"""


